fix(session): add fallback retry handling and harden pre-push bun path#26192
fix(session): add fallback retry handling and harden pre-push bun path#26192C24-AK wants to merge 1 commit into
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found several related PRs that address similar concerns around retry handling and fallback mechanisms, but no exact duplicates. Here are the most relevant related PRs: Closely Related (retry/fallback functionality):
Related (pre-push hook/bun path):
These PRs address related concerns in the retry and fallback space, but PR #26192 appears to be a distinct implementation combining session fallback behavior with pre-push hook hardening. |
1ef713f to
5cb22ca
Compare
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Sibling PR — #26292 also implements fallback with cooldown and addresses the model attribution gap you identified. Comparison table in the PR description. Would be great to coordinate. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Not sure but
Closes # #25150
Type of change
What does this PR do?
My problem was:
When using Model A which had no more limits I wanted opencode to use the Model B as fallback.
This PR fixes the session fallback behavior so Agents can remain on Model A while reliably falling back to Model B when needed. I removed noisy retry status messaging by suppressing repeated rate-limit retry status updates per session after the first occurrence. (Done by config change experimental.suppress_retry_status_message => true)
Furthermore Ipdates the pre-push hook to resolve Bun in our restricted shell environments, preventing turbo package-manager resolution failures during push checks.
If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!
How did you verify your code works?
bun typecheckbun test test/session/session.test.ts test/server/session-actions.test.tsbun run build --single --skip-embed-web-uiScreenshots / recordings
I dont have recordings
If this is a UI change, please include a screenshot or recording.
Checklist
If you do not follow this template your PR will be automatically rejected.