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

Method terminalAttach

apps/kimi-web/src/api/daemon/ws.ts:198–205  ·  view source on GitHub ↗
(sessionId: string, terminalId: string, sinceSeq?: number)

Source from the content-addressed store, hash-verified

196 }
197
198 terminalAttach(sessionId: string, terminalId: string, sinceSeq?: number): void {
199 const key = terminalKey(sessionId, terminalId);
200 const previous = this.terminalAttachments.get(key);
201 const lastSeq = sinceSeq ?? previous?.lastSeq ?? 0;
202 this.terminalAttachments.set(key, { sessionId, terminalId, lastSeq });
203 if (!this.connected || !this.ws) return;
204 this.sendTerminalAttach(sessionId, terminalId, lastSeq);
205 }
206
207 terminalInput(sessionId: string, terminalId: string, data: string): void {
208 if (!this.connected || !this.ws) return;

Callers

nothing calls this directly

Calls 4

sendTerminalAttachMethod · 0.95
terminalKeyFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected