refactor(opencode): add root global HttpApi coverage - #1383
Conversation
|
Warning Review limit reached
More reviews will be available in 24 minutes and 5 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
7e465de to
62bae4a
Compare
Summary
Add local Effect HttpApi coverage for root instance and global JSON/control routes while keeping production routing on the existing Hono server.
Why
This moves the #936 route inventory forward for ordinary non-streaming root/global routes without touching automation, session, SSE, WebSocket, static, or production server switching surfaces.
POST /logis intentionally excluded because live source ownership ispackages/opencode/src/server/control/index.ts, not the root instance route owner in this slice.Related Issue
Related to #936
Human Review Status
Pending
Review Focus
Please check the raw handler parity for
GET /vcs/diff/raw,POST /vcs/apply, global config patch validation, and global dispose request-context bridging.Risk Notes
No production server switch is included; these are local HttpApi declarations and handlers only. After rebasing onto #1382, route inventory keeps the union of #1382 experimental coverage and this PR's root/global coverage. A future production HttpApi switch should revisit group-level global request-context parity for all global routes and chunked oversized request handling for
POST /vcs/apply. Visible UI/copy check skipped because this PR changes no UI or copy. Platform/packaging check skipped because this PR changes no platform, packaging, updater, signing, paths, shell, or permissions surface. Docs/release/dependency/permission/generated/local-file checklist item skipped because none of those surfaces changed.How To Verify
Screenshots or Recordings
Not applicable: no visible UI changes.
Checklist
bug,enhancement,task,documentation. Type labels are author-added; the labeler bot does NOT assign them. Add the label in the GitHub UI, then tick this.app,ui,platform,harness,ci. The labeler bot assigns these on PR open based on changed paths. Confirm the bot's choice (or override if wrong), then tick this.P0,P1,P2,P3. The priority-triage bot suggests one on PR open. Confirm or override, then tick this.Pending,Approved by @<reviewer>, orNot required: <reason>(default isPending; "not required" is restricted to bot-authored low-risk PRs).dev, and my PR title and commit messages use Conventional Commits in English.