MCPcopy Create free account
hub / github.com/codeaashu/claude-code / buildResumeInputFromSuggestion

Function buildResumeInputFromSuggestion

src/hooks/useTypeahead.tsx:75–80  ·  view source on GitHub ↗
(suggestion: SuggestionItem)

Source from the content-addressed store, hash-verified

73 return newIndex >= 0 ? newIndex : 0;
74}
75function buildResumeInputFromSuggestion(suggestion: SuggestionItem): string {
76 const metadata = suggestion.metadata as {
77 sessionId: string;
78 } | undefined;
79 return metadata?.sessionId ? `/resume ${metadata.sessionId}` : `/resume ${suggestion.displayText}`;
80}
81type Props = {
82 onInputChange: (value: string) => void;
83 onSubmit: (value: string, isSubmittingSlashCommand?: boolean) => void;

Callers 1

useTypeaheadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected