feat: surface codex thread config progress

This commit is contained in:
AI Bot
2026-06-01 17:18:28 +08:00
parent 591638f35f
commit 26b5e97614
10 changed files with 540 additions and 5 deletions

View File

@@ -520,6 +520,67 @@ rl.on("line", (line) => {
},
});
}
if (process.env.BOSS_CODEX_APP_SERVER_FIXTURE_EMIT_THREAD_CONFIG_EVENTS === "1") {
send({
method: "thread/goal/updated",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
goal: {
threadId: message.params?.threadId,
objective: "完成 App Server 线程目标同步",
status: "active",
tokenBudget: 120000,
tokensUsed: 4800,
timeUsedSeconds: 600,
createdAt: 1770000000,
updatedAt: 1770000300,
},
},
});
send({
method: "thread/settings/updated",
params: {
threadId: message.params?.threadId,
threadSettings: {
cwd: "/Users/kris/code/boss/secret-project",
approvalPolicy: "on-request",
approvalsReviewer: "user",
sandboxPolicy: {
type: "workspaceWrite",
writableRoots: ["/Users/kris/code/boss", "/Users/kris/.codex/memories"],
networkAccess: false,
excludeTmpdirEnvVar: false,
excludeSlashTmp: false,
},
activePermissionProfile: {
id: ":workspace",
extends: null,
},
model: "gpt-5.5",
modelProvider: "openai",
serviceTier: "fast",
effort: "low",
summary: "concise",
collaborationMode: {
mode: "plan",
settings: {
developer_instructions: "internal prompt should not leak",
model_instructions_file: "/Users/kris/.codex/secret-instructions.md",
},
},
personality: "pragmatic",
},
},
});
send({
method: "thread/compacted",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
},
});
}
send({
method: "item/agentMessage/delta",
params: {