Skip to content

fix: session ID consistency + peek reliability + login detection#137

Merged
c-h- merged 1 commit into
mainfrom
fix/session-bugs
Mar 12, 2026
Merged

fix: session ID consistency + peek reliability + login detection#137
c-h- merged 1 commit into
mainfrom
fix/session-bugs

Conversation

@c-h-

@c-h- c-h- commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Closes #135, closes #134, closes #122

#134: pollForSessionId() now detects auth/login errors and fails fast. Added resolveSessionIdFromHistory() fallback for canonical ID resolution.

#135: peek() falls back to reading launch log when session JSONL is missing (short-lived sessions).

#122: Daemon startup detects sessions stuck at enqueue/dequeue (>5min, no assistant output) and marks them errored + kills the process. 7 new regression tests, all 517 pass.

 #135, closes #134, closes #122)

- #134: pollForSessionId now detects auth/login errors in launch log and
  fails fast instead of returning a fallback UUID. Added history.jsonl
  fallback to resolve canonical session ID when log polling fails.
- #135: peek() falls back to launch log (stored in session meta) when
  session JSONL file is not found. Server peek handler also reads from
  launch log as secondary fallback.
- #122: Added stuck session detection at daemon startup — sessions
  running >5 min with no assistant output are marked as errored and
  their processes are killed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@c-h- c-h- merged commit 63853ca into main Mar 12, 2026
1 check passed
@c-h- c-h- deleted the fix/session-bugs branch March 12, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant