mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The goal evaluator now treats TaskCreate/TaskUpdate transcript state as a hard liveness gate, so a goal cannot complete while task entries remain pending or in_progress. Background agent completion now notifies the parent before classifier or worktree cleanup, which keeps the main session from waiting forever when post-completion cleanup hangs. The desktop store also marks tabs idle on message_complete so completed transcripts do not leave stale running chrome. Constraint: Desktop /goal relies on transcript task notifications to resume after background agents. Rejected: Let optional cleanup run before notification | cleanup can hang and leaves the parent loop stuck. Confidence: high Scope-risk: moderate Directive: Do not gate task-notification delivery on classifier or worktree cleanup without a timeout-backed liveness test. Tested: bun test src/goals/goalEvaluator.test.ts src/tools/AgentTool/agentToolUtils.test.ts Tested: bun run check:server Tested: cd desktop && bun run test src/stores/chatStore.test.ts -t "marks the tab idle when a message completes"