fix(reload): restart from error page (382) - #410
Conversation
The 'Something went wrong' Restart button was a no-op in the Amicode iframe because platform.restart only did window.location.reload without restarting the underlying opencode server. Upstream harmoniqs/opencode#210 fixes the app's restart to post amicode.restartServer to the extension host before reloading, so the server restarts and the panel recovers. The extension's allowlist already permits that command (chat_bridge), and this documents the trace so a future regression is diagnosable. Fixes #382 Upstream: harmoniqs/opencode#210
|
Warning Review limit reached
Next review available in: 57 minutes Limit details: You’ve used all 3 included reviews currently available under your plan. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
Fixes #382 — Restart button on 'Something went wrong' was non-functional inside the Amicode panel.
Root cause
packages/app/src/entry.tsxplatform.restartonly didwindow.location.reload(). Inside the deck iframe the server may be down/unreachable, so a reload alone kept the panel in the error state.Fix
Upstream fix: google token auth like Claude + revert dock blank + restart opencode#210:
entry.tsxrestart now posts{source:"amicode", kind:"command", command:"amicode.restartServer"}to the extension host before reloading (800 ms grace), so the server restarts and the panel recovers.error.tsxwraps restart in try/catch with fallback reload.This repo (amicode#382): documents the trace in
extension.ts— theamicode.restartServercommand is already allowlisted inchat_bridge.ts, so the iframe's post now reaches the host.Verification
Fixes #382
Upstream harmoniqs/opencode#210