feat(agent): enhance Codex reasoning summary with Markdown rendering and improve message history merging

This commit is contained in:
HouYunFei
2026-07-29 16:34:44 +08:00
parent a9243b6c2e
commit bd8cf318f7
7 changed files with 24 additions and 5 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ export async function resumeCodexThread(emit: AgentEmit, threadId: string, cwd?:
const thread = await app.resumeThread(threadId, cwd);
assertThreadWorkspace(thread, cwd);
codexThreadId = String(field(thread, "id") || threadId);
return { thread, messages: threadMessages(thread, app.planUpdates(threadId)) };
const historyThread = await loadCodexThread(emit, codexThreadId, cwd, true);
return { thread, messages: threadMessages(historyThread, app.planUpdates(threadId)) };
}
/** 查询当前工作空间中的 Codex 线程。 */