fix: 收敛 stale thread 和 tool-call 错误归因

This commit is contained in:
Codex
2026-06-02 12:08:38 +08:00
parent 0092f55249
commit 40a274d52b
6 changed files with 55 additions and 26 deletions
+15
View File
@@ -100,6 +100,21 @@ for await (const line of rl) {
respond(message.id, { turn });
continue;
}
if (mode === "provider-invalid-tool-call") {
turnCounter += 1;
const turn = {
id: `turn_selftest_${turnCounter}`,
status: "failed",
error: {
message: "invalid params, invalid function arguments json string, tool_call_id: call_function_selftest_2 (2013)",
code: "invalid_prompt",
},
};
notify("turn/started", { turn: { id: turn.id, status: "running" } });
notify("turn/completed", { turn });
respond(message.id, { turn });
continue;
}
if (mode === "provider-503-retry-event") {
turnCounter += 1;
const turn = {