fix(task-board): fix orphan detection and add session linking#419
fix(task-board): fix orphan detection and add session linking#419dimakis wants to merge 4 commits into
Conversation
Read the existing token from ~/.mitzo/internal-token on startup instead of generating a new one every time. Only generates a fresh token when the file is missing or corrupt. Fixes 401 errors for agents and hooks after every Mitzo restart. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address Centaur review: 7 tests covering read existing, reject corrupt, regenerate on missing, trim whitespace, consistency. Also accept uppercase hex tokens in validation regex. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address second Centaur review: extract function with configurable path, test the real implementation instead of a copy, add write failure test, use path.dirname instead of string splitting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Orphan detection compared task clientIds against SDK sessionIds, so dead tasks were never reclaimed. Now getActiveSessionIds() returns clientIds to match. Running tasks show a clickable session hash that navigates to the chat. Sessions spawned from Telos items or Task Board goals display a tappable source link in the session banner. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Centaur ReviewFound 6 issue(s) (1 critical) (3 warning).
|
Summary
getActiveSessionIds()was returning SDK session IDs but tasksessionIdstores client IDs — comparison never matched, so dead tasks stayed "running" forever. Now returns client IDs.Test plan
🤖 Generated with Claude Code