Repository navigation
fix(desktop): recover signed-out sidecar and non-servers.json servers - #2282
Merged
Merged
Conversation
…\n\nAuto-reconnect the managed local sidecar on HTTP 401 health probes and\nnudge health immediately when the event stream drops with 401/403 so\nrotated local credentials recover without leaving the session header\nstuck in Signed out of this server. Always render an actionable\nrecovery control in signed_out_status, signed_out, and Home's\nsidecar auth action for every server kind (Edit server, web page\nsign-in, plugin re-authentication, managed sidecar reconnect, or\nSettings > Servers).\n\nFixes #2260
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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
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
Fixes #2260.
apps/desktop/src/workspace/servers/health.rs: callsidecar::reconnect()onProbeResult::Unauthorizedas well asProbeResult::Unreachablefor the managed local sidecar, so rotated local credentials or a staleservice.jsonrecover automatically instead of stickingServerKey::sidecar()inSignedOut.apps/desktop/src/workspace/lifecycle/reconnect.rs: nudgeservers::healthimmediately whenEvent::StreamDowntransitions a server intoLink::SignedOut, and avoid reportingstreaming(..., true)when transitioning intoSignedOutorIncompatible.apps/desktop/src/shell/view/server_unavailable.rs: add an explicitRecoverymapping used by bothsigned_outandsigned_out_statusso every server kind renders an actionable control instead of a dead-endSigned out of this serverlabel:servers.jsonHTTP server -> Sign in again (opens Edit server dialog).apps/web) -> Sign in again (page_sign_in::sign_out()).plugin_host::servers::reauthenticate, falling back to health nudge + Settings > Servers).--server/OPENCODE_SERVER_URLor unlisted server -> Reconnect (wakes reconnects, nudges health, and opens Settings > Servers).apps/desktop/src/plugin_host/bridge/servers.rs: addreauthenticatehelper for signed-out plugin servers.apps/desktop/src/shell/view/home/servers.rs: wireServerConn::Sidecarinauthenticate()toserver_unavailable::recover_signed_outinstead of a no-op.Verification
cargo check -j 1 -p opencode-desktop— passed on Windows.cargo clippy -j 1 -p opencode-desktop --no-deps -- -D warnings— 0 diagnostics in touched files.pwsh scripts/guardrails.ps1— 11/11 passed.