fix: 收敛 codex stdio trace 噪声 (#66)
Co-authored-by: Codex <codex@pikas.tech>
This commit is contained in:
@@ -148,6 +148,25 @@ for await (const line of rl) {
|
||||
}, 50);
|
||||
continue;
|
||||
}
|
||||
if (mode === "noisy-reasoning-events") {
|
||||
turnCounter += 1;
|
||||
const turn = { id: `turn_selftest_${turnCounter}`, status: "completed" };
|
||||
notify("turn/started", { turn });
|
||||
notify("item/started", { item: { id: "reasoning_selftest", type: "reasoning", content: [] } });
|
||||
notify("item/reasoning/textDelta", { itemId: "reasoning_selftest", delta: "internal reasoning must not become durable trace text 1" });
|
||||
notify("item/reasoning/textDelta", { itemId: "reasoning_selftest", delta: "internal reasoning must not become durable trace text 2" });
|
||||
notify("thread/tokenUsage/updated", { usage: { inputTokens: 1, outputTokens: 2 } });
|
||||
notify("account/rateLimits/updated", { limit: "selftest" });
|
||||
notify("warning", { message: "low value warning should be summarized" });
|
||||
notify("configWarning", { message: "low value config warning should be summarized" });
|
||||
notify("item/completed", { item: { id: "reasoning_selftest", type: "reasoning", content: ["internal reasoning must not become durable trace text 3"] } });
|
||||
notify("item/started", { item: { id: "tool_after_noise", type: "commandExecution", command: "echo after-noise" } });
|
||||
notify("item/completed", { item: { id: "tool_after_noise", type: "commandExecution", command: "echo after-noise", status: "completed" } });
|
||||
notify("item/completed", { item: { id: "msg_after_noise", type: "agentMessage", text: "noise filtered final" } });
|
||||
notify("turn/completed", { turn });
|
||||
respond(message.id, { turn });
|
||||
continue;
|
||||
}
|
||||
turnCounter += 1;
|
||||
const turn = { id: `turn_selftest_${turnCounter}`, status: "completed" };
|
||||
notify("turn/started", { turn });
|
||||
|
||||
Reference in New Issue
Block a user