From bda15f42428aa5bbef4eb3417b76342dc7c5a2b9 Mon Sep 17 00:00:00 2001 From: AndyMik90 Date: Tue, 17 Feb 2026 10:49:38 +0100 Subject: [PATCH] auto-claude: subtask-1-1 - Confirm root cause by reading task-log-service.ts Verified three root causes by reading actual source files: 1. RC1 CONFIRMED: mergeLogs() oscillation at lines 134-139 - condition falls back to main logs when worktree coding phase resets to pending during agent retry 2. RC2 CONFIRMED: Stale cache emitted in startWatching() polling loop (lines 329-413) when JSON parse fails mid-write, stale cache is emitted as logs-changed 3. RC3 NOTE: useTaskDetail.ts onTaskLogsChanged already uses additive setExpandedPhases pattern (lines 256-260) - fix appears already applied, subtask-2-3 should verify Investigation complete - findings documented in build-progress.txt. No code changes in this investigation-only subtask. Co-Authored-By: Claude Sonnet 4.5