-
Notifications
You must be signed in to change notification settings - Fork 2.4k
fix: prevent repeated 404 errors when accessing deleted sessions #5644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
- Add simple deleted session tracking in useAgent.ts to avoid repeated API calls - Implement graceful session recovery in pair.tsx when encountering 404 errors - Clear problematic session IDs from URL when detected as deleted - Prevent users from getting stuck on "Session not found" errors - Maintain a Set of deleted session IDs to skip future attempts - Reset deleted session tracking when starting new chat sessions Signed-off-by: sheikhlimon <[email protected]>
9ecf8c8 to
7a02b0f
Compare
DOsinga
approved these changes
Nov 10, 2025
Rodriguespn
pushed a commit
to Rodriguespn/goose
that referenced
this pull request
Nov 10, 2025
…ck#5644) Signed-off-by: sheikhlimon <[email protected]> Signed-off-by: Pedro Rodrigues <[email protected]>
Rodriguespn
pushed a commit
to Rodriguespn/goose
that referenced
this pull request
Nov 10, 2025
…ck#5644) Signed-off-by: sheikhlimon <[email protected]> Signed-off-by: Pedro Rodrigues <[email protected]>
tiensi
added a commit
to tiensi/goose
that referenced
this pull request
Nov 11, 2025
* main: (83 commits) silence copilot on minor text issues (block#5665) fix: disallow runaway subagent chains (block#5659) chore: remove usage of non-existent env var for log dir (block#5658) clarify agent instructions (block#5655) feat: add check-everything for unified style checks (block#5650) Show errors on failure (block#5643) custom instructions for copilot reviews (block#5646) fix: prevent repeated 404 errors when accessing deleted sessions (block#5644) Flake.nix corrected main (block#5600) fix: goose recipe list can return duplicated entries (block#5645) fix: bedrock creds refresh (block#5599) Fix Claude Code provider to default to Auto mode (block#5638) (block#5642) Scheduler cleanup (block#5571) Better search paths and handling of CLI providers (block#5554) docs: description required for "Add Extension" in cli - phase 2 (block#5635) Remove some logging (block#5631) Use session IDs as task IDs for subagents instead of UUIDs (block#5398) Fix the naming (block#5628) fix: default tetrate model is broken, replace with haiku-4.5 (block#5535) (block#5587) Fetch less and use the right SHA (block#5621) ...
michaelneale
added a commit
that referenced
this pull request
Nov 11, 2025
* main: silence copilot on minor text issues (#5665) fix: disallow runaway subagent chains (#5659) chore: remove usage of non-existent env var for log dir (#5658) clarify agent instructions (#5655) feat: add check-everything for unified style checks (#5650) Show errors on failure (#5643) custom instructions for copilot reviews (#5646) fix: prevent repeated 404 errors when accessing deleted sessions (#5644) Flake.nix corrected main (#5600) fix: goose recipe list can return duplicated entries (#5645) fix: bedrock creds refresh (#5599)
Rodriguespn
pushed a commit
to Rodriguespn/goose
that referenced
this pull request
Nov 12, 2025
…ck#5644) Signed-off-by: sheikhlimon <[email protected]>
Surendhar-N-D
pushed a commit
to Surendhar-N-D/goose
that referenced
this pull request
Nov 17, 2025
…ck#5644) Signed-off-by: sheikhlimon <[email protected]>
arul-cc
pushed a commit
to arul-cc/goose
that referenced
this pull request
Nov 17, 2025
…ck#5644) Signed-off-by: sheikhlimon <[email protected]>
BlairAllan
pushed a commit
to BlairAllan/goose
that referenced
this pull request
Nov 29, 2025
…ck#5644) Signed-off-by: sheikhlimon <[email protected]> Signed-off-by: Blair Allan <[email protected]>
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.
Summary
When a session is deleted (e.g., from the sessions list), the user might still have the session ID in their URL. Instead of showing a fatal error, we:
This prevents users from getting stuck on "Agent init failure: [object Object]" which is a "Session not found" error when they try to access deleted session.
When sessions are deleted, we maintain a Set of deleted session IDs to avoid repeatedly trying to access them. This prevents "Agent init failure: [object Object]" which can also be multiple 404 errors and provides a smoother user experience.
Key behaviors:
Type of Change
AI Assistance
Related Issues
Relates to #5637