feat: add controlled codex thread archive

This commit is contained in:
AI Bot
2026-06-03 13:47:50 +08:00
parent 0fb588e339
commit 0bcdcbfb9d
11 changed files with 493 additions and 0 deletions

View File

@@ -619,6 +619,42 @@ rl.on("line", (line) => {
return;
}
if (message.method === "thread/archive") {
send({
id: message.id,
result: {},
});
send({
method: "thread/archived",
params: {
threadId: message.params?.threadId,
archivedThreadSecret: "thread-archive-secret-should-not-leak",
},
});
return;
}
if (message.method === "thread/unarchive") {
send({
id: message.id,
result: {
thread: {
id: message.params?.threadId,
name: "private unarchived thread name should not leak",
archived: false,
},
},
});
send({
method: "thread/unarchived",
params: {
threadId: message.params?.threadId,
unarchivedThreadSecret: "thread-unarchive-secret-should-not-leak",
},
});
return;
}
if (message.method === "thread/read") {
send({
id: message.id,