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

Method setThreadGoal

src/providers/codex/plugin.ts:181–201  ·  view source on GitHub ↗
({
    providerProfile,
    threadId,
    objective = null,
    status = null,
    suppressAutoTurn = false,
  }: {
    providerProfile: ProviderProfile;
    threadId: string;
    objective?: string | null;
    status?: string | null;
    suppressAutoTurn?: boolean;
  })

Source from the content-addressed store, hash-verified

179 }
180
181 async setThreadGoal({
182 providerProfile,
183 threadId,
184 objective = null,
185 status = null,
186 suppressAutoTurn = false,
187 }: {
188 providerProfile: ProviderProfile;
189 threadId: string;
190 objective?: string | null;
191 status?: string | null;
192 suppressAutoTurn?: boolean;
193 }): Promise<ProviderThreadGoal | null> {
194 const client = await this.ensureClient(providerProfile);
195 return client.setThreadGoal({
196 threadId,
197 objective,
198 status,
199 suppressAutoTurn,
200 });
201 }
202
203 async clearThreadGoal({
204 providerProfile,

Callers

nothing calls this directly

Calls 2

ensureClientMethod · 0.95
setThreadGoalMethod · 0.65

Tested by

no test coverage detected