MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / cancelRunningShellCommand

Method cancelRunningShellCommand

apps/kimi-code/src/tui/kimi-tui.ts:1019–1027  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1017 }
1018
1019 cancelRunningShellCommand(): void {
1020 const session = this.session;
1021 if (session === undefined) return;
1022 for (const commandId of this.shellOutputStreams.keys()) {
1023 void session.cancelShellCommand(commandId).catch((error: unknown) => {
1024 this.showError(`Failed to cancel shell command: ${formatErrorMessage(error)}`);
1025 });
1026 }
1027 }
1028
1029 private finishShellOutput(
1030 commandId: string,

Callers

nothing calls this directly

Calls 4

showErrorMethod · 0.95
formatErrorMessageFunction · 0.90
keysMethod · 0.80
cancelShellCommandMethod · 0.45

Tested by

no test coverage detected