
JianMiauandClaude Fable 5
89a8b75b61
LIVE 模式改為雙向對話(codex exec --json + resume 接力)
摘要:
與 claude-office 同功能:側邊面板聊天室,每則訊息 spawn
codex exec --json,捕捉 thread_id 後下一則以 codex exec resume 接力。
根本原因:
單向 /task 看不到回覆也無法追問。
影響:
watcher 新增 POST /chat 與 chat_* SSE 事件;已實測一輪對話
(thread.started → agent_message → turn.completed)正確回傳。
修法:
- watch.mjs:launchChat 解析 --json 事件流(thread_id / agent_message /
turn.completed),chatThreads 記憶 thread
- 前端與 claude-office 同步(ChatPanel / chats store / chat_* 對映)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>