The 2 deferred F3 items from the #595/#599 reviews:
- agent watch: wrap the interactive attach in try/finally and kill the grouped
viewer session in finally — so an attach that throws or an interrupted process
never leaves a stray <agent>-watch-<pid> session behind (the leak you found).
- test-start-agent-session.sh Test 1: pane_current_path briefly reflects the tmux
server's cwd until the pane process establishes its -c start dir; poll until it
settles. Fixes the cwd-dependent false failure that aborted the suite before the
heartbeat tests (6/7) — those now run.
Verified: full shell suite green from /tmp (was failing); prettier clean.
Refs #588#542
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>