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

Method cancelShellCommand

packages/node-sdk/src/session.ts:128–131  ·  view source on GitHub ↗

Cancel a running `!` shell command by its commandId (e.g. on Esc / Ctrl+C).

(commandId: string)

Source from the content-addressed store, hash-verified

126
127 /** Cancel a running `!` shell command by its commandId (e.g. on Esc / Ctrl+C). */
128 async cancelShellCommand(commandId: string): Promise<void> {
129 this.ensureOpen();
130 return this.rpc.cancelShellCommand({ sessionId: this.id, commandId });
131 }
132
133 async steer(input: string | PromptInput): Promise<void> {
134 this.ensureOpen();

Callers 2

cancelShellCommandFunction · 0.45

Calls 1

ensureOpenMethod · 0.95

Tested by

no test coverage detected