Skip to content

desktop: session header shows 'Signed out of this server' with no 'Sign in again' action or recovery path #2260

Done

Description

@chirag127

Summary

In the desktop session header, Signed out of this server (session.error.signedOut) is rendered with no Sign in again link and no way to re-authenticate or recover when the active server is not found in servers.json (for example, the local sidecar ServerKey::sidecar() or a non-servers.json server).

Root cause in source

  1. apps/desktop/src/session/meta/state.rs:212-213 maps Link::SignedOut to server_unavailable::signed_out_status(p, key).
  2. apps/desktop/src/shell/view/server_unavailable.rs:119-134 builds signed_out_status:
    • label renders t!("session.error.signedOut") ("Signed out of this server").
    • link depends on saved_url(server), which only searches crate::servers::list() for ServerConn::http_server(&x.url).
    • When saved_url(server) returns None, the header shows bare Signed out of this server next to the token/cost indicator (123k · $0.00) with no clickable action, no tooltip/explanation, and no way to re-authenticate or reconnect from the header.
  3. Similarly, server_unavailable::signed_out (apps/desktop/src/shell/view/server_unavailable.rs:100-115) omits the Sign in again button whenever saved_url(server) is None.

Expected behavior

  • If the active server is the local sidecar or another non-servers.json server, either:
    • Do not enter Link::SignedOut without a valid auth recovery path, or
    • Provide an actionable recovery button/link in signed_out_status / signed_out (e.g., reconnect / restart sidecar / open server settings) instead of a dead-end Signed out of this server label.

Environment

  • OS: Windows 11
  • Commit: 00541cb5

Activity

  1. Hona commented on Dec 3, 2026

    @Hona
    Member

    Fixed in PR #2282 (merged to dev in 4ceb37ba2a750a700d3efeaf2d06a59d782503b6).

    What changed:

    • Managed local sidecars now trigger sidecar::reconnect() on HTTP 401 (ProbeResult::Unauthorized) health probes as well as Unreachable, and a 401/403 SSE stream drop immediately nudges health so rotated local credentials recover automatically instead of getting stuck in Signed out of this server.
    • signed_out_status (session header), signed_out (signed-out panel), and Home's sidecar auth action now always render an actionable recovery control for every server kind: Sign in again (Edit server for saved servers.json entries, page sign-in for web, plugin re-authentication for plugin servers) or Reconnect (local sidecar reconnect/restart, or health nudge + Settings > Servers for --server/OPENCODE_SERVER_URL/unlisted servers).

    Verification:

    • Verified locally on Windows via cargo check -j 1 -p opencode-desktop, cargo clippy -j 1 -p opencode-desktop --no-deps -- -D warnings (0 diagnostics in touched files), and pwsh scripts/guardrails.ps1 (11/11 passed).
    • Verified cross-platform builds green in GitHub Actions CI (build-windows x64/arm64, build-macos, build-linux x64/arm64, guardrails).
    • Not verified interactively in a live GUI window on hardware; please reopen if you still hit a dead-end signed-out state.
  2. added a commit that references this issue on Dec 3, 2026
    4ceb37b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions