MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / handleCancel

Function handleCancel

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

Source from the content-addressed store, hash-verified

215 }
216
217 function handleCancel() {
218 if (onCancel) {
219 // Abort exit and return to the session
220 onCancel();
221 return;
222 }
223 // Fallback: treat Escape as "keep" if no onCancel provided
224 void handleSelect('keep');
225 }
226
227 const removeDescription =
228 hasUncommitted || hasCommits ? 'All changes and commits will be lost.' : 'Clean up the worktree directory.';

Callers

nothing calls this directly

Calls 2

handleSelectFunction · 0.70
onCancelFunction · 0.50

Tested by

no test coverage detected