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

Function resolveProviderThreadId

packages/mission-control/src/api.ts:1181–1185  ·  view source on GitHub ↗
(
  input: Pick<CreateMissionCommandInput | RetryMissionInput, 'providerThreadId' | 'codexThreadId'>,
)

Source from the content-addressed store, hash-verified

1179}
1180
1181function resolveProviderThreadId(
1182 input: Pick<CreateMissionCommandInput | RetryMissionInput, 'providerThreadId' | 'codexThreadId'>,
1183): string | null {
1184 return normalizeText(input.providerThreadId) ?? normalizeText(input.codexThreadId);
1185}
1186
1187function buildMissionArtifactRefs(resultArtifacts: unknown[]): MissionArtifactRefView[] {
1188 return resultArtifacts

Callers 2

handleCreateMissionMethod · 0.85
handleRetryMissionMethod · 0.85

Calls 1

normalizeTextFunction · 0.70

Tested by

no test coverage detected