fix: session ID consistency + peek reliability + login detection#137
Merged
Conversation
#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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #135, closes #134, closes #122
#134:
pollForSessionId()now detects auth/login errors and fails fast. AddedresolveSessionIdFromHistory()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.