MCPcopy
hub / github.com/claude-code-best/claude-code / onExit

Function onExit

src/components/ExitFlow.tsx:19–22  ·  view source on GitHub ↗
(resultMessage?: string)

Source from the content-addressed store, hash-verified

17
18export function ExitFlow({ showWorktree, onDone, onCancel }: Props): React.ReactNode {
19 async function onExit(resultMessage?: string) {
20 onDone(resultMessage ?? getRandomGoodbyeMessage());
21 await gracefulShutdown(0, 'prompt_input_exit');
22 }
23
24 if (showWorktree) {
25 return <WorktreeExitDialog onDone={onExit} onCancel={onCancel} />;

Callers 14

constructorMethod · 0.85
handleKeyDownFunction · 0.85
handleSelectFunction · 0.85
handleSelectFunction · 0.85
PermissionRuleListFunction · 0.85
WorkspaceTabFunction · 0.85
handleCancelFunction · 0.85
SkillsMenuFunction · 0.85
HooksConfigMenuFunction · 0.85
AgentsMenuFunction · 0.85
ArtifactsMenuFunction · 0.85

Calls 3

getRandomGoodbyeMessageFunction · 0.70
onDoneFunction · 0.50
gracefulShutdownFunction · 0.50

Tested by

no test coverage detected