Skip to content

Fix: Switch to Web UI signs the browser in and no longer fakes a first run - #65

Merged
AhmiDarrow merged 2 commits into
masterfrom
fix/web-ui-handoff
Nov 16, 2026
Merged

AhmiDarrow merged 2 commits into
masterfrom
fix/web-ui-handoff

Conversation

@AhmiDarrow

Copy link
Copy Markdown
Owner

Problem

Switching from Desktop to the WebUI lost the connection and showed the first-run wizard. The sidecar defaults browser token bootstrap off, so the browser had no token, `getSettings` returned 401, and `useAppBootstrap` opened the setup wizard on any settings failure.

Change

  • `switch_to_web_ui` mints a one-time bootstrap link (`POST /api/auth/bootstrap-link`, authenticated with the desktop token) and opens it.
  • A live one-time link now opens the default-off desktop sidecar. An explicit `REMEDY_HTTP_BOOTSTRAP=0` still wins.
  • A failed settings load shows a connection message, not the setup wizard.

Verification

Go `httpapi` tests (2 new), desktop vitest (592), `cargo check --locked` pass. Not exercised: the real Desktop to browser switch (manual smoke needed). Full `prepush.py` matrix not run locally.

🤖 Generated with Claude Code

…t run

The desktop sidecar keeps browser token bootstrap off by default, so the
WebUI opened from the desktop had no token, settings failed with 401, and
the SPA treated that as first run and opened the setup wizard.

Switch to Web UI now mints a one-time bootstrap link (authenticated with the
desktop's own token) and opens that URL. A live one-time link now opens the
default-off sidecar; an explicit REMEDY_HTTP_BOOTSTRAP=0 still wins. A failed
settings load shows a connection message instead of the setup wizard.

Risk: WebUI auth and the shell/browser handoff. Smoke: Switch to Web UI on a
real desktop instance.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Self-improve bot

  • Pass 1 path/secrets: failure
  • Pass 2 behavior scan: success
  • From fork: false

This bot does not merge. Owner (CODEOWNERS) must review.
Clients only receive this after a signed release.

Bump every version surface to 0.70.2. Changelog: Switch to Web UI now signs
the browser in with a one-time link, and a failed settings load no longer
shows the first-run wizard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Self-improve bot

  • Pass 1 path/secrets: failure
  • Pass 2 behavior scan: success
  • From fork: false

This bot does not merge. Owner (CODEOWNERS) must review.
Clients only receive this after a signed release.

@AhmiDarrow
AhmiDarrow merged commit bda5b3a into master Nov 16, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant