feat(codex): upgrade Codex CLI to version 0.145.0 and refactor interrupt handling for improved turn management

This commit is contained in:
HouYunFei
2026-07-29 11:14:15 +08:00
parent 40c47dd7ff
commit 1f6a652799
8 changed files with 150 additions and 54 deletions
+1 -4
View File
@@ -181,10 +181,7 @@ export function startHttpServer() {
throw error;
}
}));
app.post("/agent/codex/interrupt", (req, res) => {
const ok = interruptCodexTurn(String(req.body?.threadId || ""));
res.json({ ok });
});
app.post("/agent/codex/interrupt", route(async (req, res) => res.json({ ok: await interruptCodexTurn(String(req.body?.threadId || "")) })));
app.post("/agent/claude/turn", (req, res) => {
runClaudeTurn(String(req.body?.prompt || ""), emit);
res.json({ ok: true });