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

Method compactThread

src/providers/codex/plugin.ts:214–228  ·  view source on GitHub ↗
({
    providerProfile,
    threadId,
    onTurnStarted = null,
  }: {
    providerProfile: ProviderProfile;
    threadId: string;
    onTurnStarted?: ((meta: Record<string, unknown>) => Promise<void> | void) | null;
  })

Source from the content-addressed store, hash-verified

212 }
213
214 async compactThread({
215 providerProfile,
216 threadId,
217 onTurnStarted = null,
218 }: {
219 providerProfile: ProviderProfile;
220 threadId: string;
221 onTurnStarted?: ((meta: Record<string, unknown>) => Promise<void> | void) | null;
222 }) {
223 const client = await this.ensureClient(providerProfile);
224 return client.compactThread({
225 threadId,
226 onTurnStarted,
227 });
228 }
229
230 async listThreads({
231 providerProfile,

Callers

nothing calls this directly

Calls 2

ensureClientMethod · 0.95
compactThreadMethod · 0.65

Tested by

no test coverage detected