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

Method terminalClose

apps/kimi-web/src/api/daemon/ws.ts:235–243  ·  view source on GitHub ↗
(sessionId: string, terminalId: string)

Source from the content-addressed store, hash-verified

233 }
234
235 terminalClose(sessionId: string, terminalId: string): void {
236 this.terminalAttachments.delete(terminalKey(sessionId, terminalId));
237 if (!this.connected || !this.ws) return;
238 this.send({
239 type: 'terminal_close',
240 id: this.nextId(),
241 payload: { session_id: sessionId, terminal_id: terminalId },
242 });
243 }
244
245 /** Close the socket. Stops reconnect attempts. */
246 close(): void {

Callers

nothing calls this directly

Calls 4

sendMethod · 0.95
nextIdMethod · 0.95
terminalKeyFunction · 0.85
deleteMethod · 0.65

Tested by

no test coverage detected