- Add reconcileStuckDirection() to scan transcripts and recover sessions that became stuck while daemon was down - Add paneExists() to verify tmux pane still exists before enqueuing - Add detectStuckFromTranscriptTail() to detect stuck state from transcript tail - Add getSessionsNotInQueue() to DB layer for finding non-queued sessions - Call reconcileStuckDirection() on daemon startup to recover dropped events - Remove duplicate AS-4 test code Acceptance criteria: - Extended test-walking-skeleton.sh AS-4 to full plan scenario (daemon restart with transcript tail scan) - All AS-1..AS-7 tests pass - Session appears in /queue within one sweep after daemon restart Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| claude-adapter.ts | ||
| db.ts | ||
| index.ts | ||
| reconcile.ts | ||
| schema.sql | ||
| types.ts | ||