Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Accept native turn errors at sampling failure boundary

shenjiacheng14589ae7e26b
diff --git a/packages/maker-core/src/agents/codex/translator.ts b/packages/maker-core/src/agents/codex/translator.ts
index f6f3d86f92..36e56986e2 100644
--- a/packages/maker-core/src/agents/codex/translator.ts
+++ b/packages/maker-core/src/agents/codex/translator.ts
@@ -420,7 +420,7 @@ function failSamplingSegment(rt: CodexRuntimeState, threadId: string, turnId: st
/** A stopped retry remains auditable; a successful turn never marks its last reply failed. */
export function finishCodexSamplingTurn(
rt: CodexRuntimeState, threadId: string, turnId: string, status: string,
- error?: ErrorNotification['params']['error'] | null,
+ error?: Parameters<typeof classifyCodexError>[0],
) {
const key = JSON.stringify([threadId, turnId]);
const segment = rt.samplingSegments.get(key);