feat: surface codex reasoning summaries

This commit is contained in:
AI Bot
2026-06-01 18:20:04 +08:00
parent 2ca2737520
commit 5d62560217
11 changed files with 338 additions and 7 deletions

View File

@@ -818,6 +818,58 @@ rl.on("line", (line) => {
},
});
}
if (process.env.BOSS_CODEX_APP_SERVER_FIXTURE_EMIT_REASONING_PLAN_EVENTS === "1") {
send({
method: "item/completed",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
item: {
type: "plan",
id: "plan-secret-should-not-leak",
text: "1. 回读官方 App Server item 协议\n2. 补充 reasoning summary 安全映射",
},
},
});
send({
method: "item/started",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
item: {
type: "reasoning",
id: "reasoning-secret-should-not-leak",
summary: [
{
text: "正在判断哪些思考摘要可以展示。",
},
],
content: [
{
text: "raw hidden reasoning token=sk-secret-should-not-leak",
},
],
},
},
});
send({
method: "item/completed",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
item: {
type: "reasoning",
id: "reasoning-secret-should-not-leak",
summary: ["确认只展示官方 summary不展示 raw content。"],
content: [
{
text: "raw hidden chain of thought token=sk-secret-should-not-leak",
},
],
},
},
});
}
send({
method: "item/agentMessage/delta",
params: {