feat: map codex thread collaboration progress

This commit is contained in:
AI Bot
2026-06-01 17:52:29 +08:00
parent defa3da185
commit 2a5dccf5cb
11 changed files with 317 additions and 7 deletions

View File

@@ -642,6 +642,53 @@ rl.on("line", (line) => {
},
});
}
if (process.env.BOSS_CODEX_APP_SERVER_FIXTURE_EMIT_COLLAB_EVENTS === "1") {
send({
method: "item/started",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
item: {
type: "collabToolCall",
id: "collab-call-1",
tool: "send_input",
status: "running",
senderThreadId: "thread-source-secret-should-not-leak",
receiverThreadId: "thread-target-secret-should-not-leak",
prompt: "internal prompt token=sk-secret-should-not-leak",
agentStatus: "running",
},
},
});
send({
method: "item/completed",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
item: {
type: "collabToolCall",
id: "collab-call-1",
tool: "send_input",
status: "completed",
senderThreadId: "thread-source-secret-should-not-leak",
receiverThreadId: "thread-target-secret-should-not-leak",
prompt: "internal prompt token=sk-secret-should-not-leak",
agentStatus: "completed",
},
},
});
send({
method: "item/completed",
params: {
threadId: message.params?.threadId,
turnId: "turn-fixture",
item: {
type: "contextCompaction",
id: "context-compaction-secret-should-not-leak",
},
},
});
}
send({
method: "item/agentMessage/delta",
params: {