Skip to content

feat(gui): clear browser-preview state + documented backed dev loop - #240

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/gui-dev-workflow
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/gui-dev-workflow

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #233. Part of the GUI redesign + dev-workflow epic #238.

Problem

The GUI bootstraps its backend through the Tauri bridge (invoke("api_base_url") / check_cli_health), so a plain-browser npm run dev (:5173) has no backend — and it surfaced as an alarming "CLI Backend Unavailable" error, which made the dev preview look broken. There was also no documented, faithful backed dev loop, and the prebuilt release binary embeds a stale frontend.

Changes

  • Add isTauri() (src/lib/tauri.ts) and short-circuit the health check when there's no Tauri runtime: mark it a browser preview, skip the pointless 30s polling, and surface a calm info banner ("Browser preview — run npm run tauri dev…") + status-bar text instead of an error.
  • Document the canonical backed dev loop (npm run tauri dev) in README.md and docs/development.md, and warn that the prebuilt release binary can be stale and shouldn't be used for QA.

Verification

  • lint:css, lint:css:vars, check:svelte (0 errors), tsc, 316/316 vitest (added a browser-preview test) all green.
  • QA'd live: browser npm run dev now shows the calm "Browser preview" banner + status; npm run tauri dev shows CLI: Ready with a working backend.

Refs #233

The GUI bootstraps its backend through the Tauri bridge (api_base_url /
check_cli_health), so a plain-browser `npm run dev` has no backend. Previously
that surfaced as an alarming "CLI Backend Unavailable" error. Add an isTauri()
helper and short-circuit the health check when no Tauri runtime is present:
mark it a browser preview, skip the pointless 30s polling, and show a calm
"Browser preview" info banner + status (pointing at `npm run tauri dev`).

Document the canonical backed dev loop (`npm run tauri dev`) in the README and
development.md, and warn that the prebuilt release binary can embed a stale
frontend and shouldn't be used for QA.

Refs #233
@CameronBrooks11
CameronBrooks11 merged commit 57e7553 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/gui-dev-workflow branch June 27, 2026 05:05
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.

Establish a backend-connected dev workflow (fix dev preview / sidecar)

1 participant