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

Method terminalDetach

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

Source from the content-addressed store, hash-verified

223 }
224
225 terminalDetach(sessionId: string, terminalId: string): void {
226 this.terminalAttachments.delete(terminalKey(sessionId, terminalId));
227 if (!this.connected || !this.ws) return;
228 this.send({
229 type: 'terminal_detach',
230 id: this.nextId(),
231 payload: { session_id: sessionId, terminal_id: terminalId },
232 });
233 }
234
235 terminalClose(sessionId: string, terminalId: string): void {
236 this.terminalAttachments.delete(terminalKey(sessionId, terminalId));

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