MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / stop

Method stop

packages/codex-native-api/src/codex_app_client.ts:444–458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

442 }
443
444 async stop(): Promise<void> {
445 this.connected = false;
446 this.socket?.close();
447 this.socket = null;
448 this.childStartError = null;
449 this.childStderrTail = [];
450 const child = this.child;
451 if (child && child.exitCode === null) {
452 await terminateChildProcess(child, this.platform).catch(() => {});
453 }
454 this.child = null;
455 this.pendingApprovals.clear();
456 this.approvedExecutions.clear();
457 this.rejectPending(new Error('Codex app client stopped'));
458 }
459
460 async listThreads({
461 limit = 20,

Callers

nothing calls this directly

Calls 3

rejectPendingMethod · 0.95
clearMethod · 0.80
terminateChildProcessFunction · 0.70

Tested by

no test coverage detected