fix(server): give slow OpenCode version probes more time #11093
Closedmdiniz97(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromrefs/pull/11093/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
juliusmarminge closed this
Sign in to join this conversation.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
56e5caf1-d0db-44f1-8eb4-41434ea49dd1📥 Commits
Reviewing files that changed from the base of the PR and between d29c56a5c404cb0f58d3b2ac41762fa0d0ac28d4 and 5f6e5fd43b7723490f188600629842ee5638075e.
📒 Files selected for processing (2)
apps/server/src/provider/Layers/OpenCodeProvider.test.tsapps/server/src/provider/Layers/OpenCodeProvider.tsIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The OpenCode CLI version probe timeout increases from 4 to 10 seconds. Tests add configurable command delays and verify successful handling of a 5-second delay and timeout handling after 10 seconds.
Changes#
OpenCode probe behavior
apps/server/src/provider/Layers/OpenCodeProvider.tsapps/server/src/provider/Layers/OpenCodeProvider.test.tsEstimated code review effort: 2 (Simple) | ~10 minutes
Suggested reviewers:
utkarshusername,yashranaway,maria-rcksMerge Risk: ⚪ Minimal · up to
5f6e5OpenCode providers now have up to 10 seconds to complete version detection, reducing false Unavailable states for cold-starting wrappers while retaining timeout handling for hung probes. The change is merge-ready.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands.