feat: surface codex reasoning summaries
This commit is contained in:
52
tests/fixtures/codex-app-server-runtime.mjs
vendored
52
tests/fixtures/codex-app-server-runtime.mjs
vendored
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user