feat: map codex thread collaboration progress
This commit is contained in:
47
tests/fixtures/codex-app-server-runtime.mjs
vendored
47
tests/fixtures/codex-app-server-runtime.mjs
vendored
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user