feat: surface codex app server thread visibility

This commit is contained in:
AI Bot
2026-06-03 10:09:07 +08:00
parent c0c88444ec
commit 74b333ba2f
11 changed files with 216 additions and 4 deletions

View File

@@ -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,