feat: sync codex thread goals

This commit is contained in:
AI Bot
2026-06-03 14:21:27 +08:00
parent cc31b0d836
commit 0186ef7057
11 changed files with 397 additions and 2 deletions

View File

@@ -671,6 +671,26 @@ rl.on("line", (line) => {
return;
}
if (message.method === "thread/goal/set") {
send({
id: message.id,
result: {},
});
send({
method: "thread/goal/updated",
params: {
threadId: message.params?.threadId,
goal: {
objective: message.params?.objective,
status: message.params?.status,
tokenBudget: message.params?.tokenBudget,
internalGoalSecret: "thread-goal-secret-should-not-leak",
},
},
});
return;
}
if (message.method === "thread/read") {
send({
id: message.id,