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
+2 -2
View File
@@ -25,9 +25,9 @@ export async function runCodexTurn(prompt: string, emit: AgentEmit, attachments:
}
/** 中断当前线程正在执行的 Codex turn。 */
export function interruptCodexTurn(threadId?: string) {
export async function interruptCodexTurn(threadId?: string) {
if (!codexApp || (threadId && threadId !== codexThreadId)) return false;
return codexApp.interruptCurrentTurn();
return await codexApp.interruptCurrentTurn();
}
/** 创建新的 Codex 线程并记录当前线程 ID。 */