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

Function handleCancel

src/components/tasks/BackgroundTasksDialog.tsx:415–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 </Text>] : [])], index => <Text key={`separator-${index}`}> · </Text>);
414 const actions = [<KeyboardShortcutHint key="upDown" shortcut="↑/↓" action="select" />, <KeyboardShortcutHint key="enter" shortcut="Enter" action="view" />, ...(currentSelection?.type === 'in_process_teammate' && currentSelection.status === 'running' ? [<KeyboardShortcutHint key="foreground" shortcut="f" action="foreground" />] : []), ...((currentSelection?.type === 'local_bash' || currentSelection?.type === 'local_agent' || currentSelection?.type === 'in_process_teammate' || currentSelection?.type === 'local_workflow' || currentSelection?.type === 'monitor_mcp' || currentSelection?.type === 'dream' || currentSelection?.type === 'remote_agent') && currentSelection.status === 'running' ? [<KeyboardShortcutHint key="kill" shortcut="x" action="stop" />] : []), ...(agentTasks.some(t => t.status === 'running') ? [<KeyboardShortcutHint key="kill-all" shortcut={killAgentsShortcut} action="stop all agents" />] : []), <KeyboardShortcutHint key="esc" shortcut="←/Esc" action="close" />];
415 const handleCancel = () => onDone('Background tasks dialog dismissed', {
416 display: 'system'
417 });
418 function renderInputGuide(exitState: ExitState): React.ReactNode {
419 if (exitState.pending) {
420 return <Text>Press {exitState.keyName} again to exit</Text>;

Callers 1

Calls 1

onDoneFunction · 0.50

Tested by

no test coverage detected