feat: surface codex app server thread visibility
This commit is contained in:
50
tests/fixtures/codex-app-server-runtime.mjs
vendored
50
tests/fixtures/codex-app-server-runtime.mjs
vendored
@@ -381,6 +381,56 @@ rl.on("line", (line) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.method === "thread/list") {
|
||||
send({
|
||||
id: message.id,
|
||||
result: {
|
||||
data: [
|
||||
{
|
||||
id: "thr-active",
|
||||
name: "Boss App Server rollout",
|
||||
sourceKind: "app",
|
||||
archived: false,
|
||||
updatedAt: "2026-06-03T08:20:00.000Z",
|
||||
cwd: "/Users/kris/code/boss",
|
||||
status: { type: "active", activeFlags: ["running"] },
|
||||
turns: [{ userInput: "secret user text should not leak" }],
|
||||
},
|
||||
{
|
||||
id: "thr-idle",
|
||||
name: "AItoukui planning",
|
||||
sourceKind: "cli",
|
||||
archived: false,
|
||||
updatedAt: "2026-06-03T07:00:00.000Z",
|
||||
cwd: "/Users/kris/code/AItoukui",
|
||||
status: { type: "idle" },
|
||||
},
|
||||
{
|
||||
id: "thr-archived",
|
||||
name: "Old private thread",
|
||||
sourceKind: "app",
|
||||
archived: true,
|
||||
updatedAt: "2026-06-01T01:00:00.000Z",
|
||||
cwd: "/Users/kris/private",
|
||||
status: { type: "notLoaded" },
|
||||
},
|
||||
],
|
||||
nextCursor: null,
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.method === "thread/loaded/list") {
|
||||
send({
|
||||
id: message.id,
|
||||
result: {
|
||||
threadIds: ["thr-active", "thr-idle"],
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.method === "thread/resume") {
|
||||
send({
|
||||
id: message.id,
|
||||
|
||||
Reference in New Issue
Block a user