MCPcopy
hub / github.com/codeaashu/claude-code / handleCancel

Function handleCancel

src/components/WorktreeExitDialog.tsx:194–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 subtitle = 'You are working in a worktree. Keep it to continue working there, or remove it to clean up.';
193 }
194 function handleCancel() {
195 if (onCancel) {
196 // Abort exit and return to the session
197 onCancel();
198 return;
199 }
200 // Fallback: treat Escape as "keep" if no onCancel provided
201 void handleSelect('keep');
202 }
203 const removeDescription = hasUncommitted || hasCommits ? 'All changes and commits will be lost.' : 'Clean up the worktree directory.';
204 const hasTmuxSession = Boolean(worktreeSession.tmuxSessionName);
205 const options = hasTmuxSession ? [{

Callers

nothing calls this directly

Calls 2

handleSelectFunction · 0.70
onCancelFunction · 0.50

Tested by

no test coverage detected