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

Method startThread

test/core/bridge_coordinator.test.ts:320–333  ·  view source on GitHub ↗
({ providerProfile, cwd, title, metadata, ephemeral = null })

Source from the content-addressed store, hash-verified

318 }
319
320 async startThread({ providerProfile, cwd, title, metadata, ephemeral = null }) {
321 this.threadCounter += 1;
322 this.startThreadCalls.push({ providerProfile, cwd, title, metadata, ephemeral });
323 const thread = {
324 threadId: `${providerProfile.id}-thread-${this.threadCounter}`,
325 cwd: cwd ?? `/tmp/${providerProfile.id}`,
326 title: title ?? `${providerProfile.displayName} thread ${this.threadCounter}`,
327 updatedAt: this.nextUpdatedAt(),
328 preview: '',
329 turns: [],
330 };
331 this.threads.set(thread.threadId, thread);
332 return thread;
333 }
334
335 async stop() {
336 this.stopCalls.push({ at: Date.now() });

Callers

nothing calls this directly

Calls 1

nextUpdatedAtMethod · 0.95

Tested by

no test coverage detected