mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
The CLI subprocess runs in --print (non-interactive) mode, which disabled V2 task tools (TaskCreate/TaskUpdate). Only TodoWrite was available, but the frontend only tracked V2 tool names for task refresh — so the Tasks bar never appeared for new WebApp sessions. Changes: - Set CLAUDE_CODE_ENABLE_TASKS=1 in CLI subprocess env to enable V2 tasks - Add TodoWrite to TASK_TOOL_NAMES for backward compat with V1 sessions - Parse TodoWrite input.todos directly into TaskBar state (no disk read) - Extract last TodoWrite from history on session load for V1 sessions - Inline completed task summary into message flow when user continues chat (sticky TaskBar converts to scrollable inline summary) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>