Skip to content

feat(updater): integrate shared update dialog - #62

Merged
ElbertePlinio merged 4 commits into
mainfrom
feat/36-update-dialog
Jul 23, 2026
Merged

ElbertePlinio merged 4 commits into
mainfrom
feat/36-update-dialog

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Integrates @pickforge/[email protected] behind the new studioUpdateDialog flag (default off).

  • Flag on: the shared pickforge-update-dialog controller replaces the window.confirm updater — startup check runs once per process, packaged builds only, and only after the visible main window is ready; the hidden login-autostart window and the floating dictation capsule never surface the prompt.
  • Flag off: legacy window.confirm flow untouched (removal is a later PR per the rollout plan).
  • Startup feed failures stay silent and non-blocking.
  • src/lib/updateFixture.ts provides injected deterministic state for tests; no production mocks.

Validation: bun run check (svelte-check, 0 errors), vitest run 39/39 (incl. 165-line updateStartup.test.ts covering flag gating, deferral, hidden-start exclusion), bun run build clean. node tests/install-script-smoke.mjs fails identically on unmodified main on macOS (known #57, bash 3.2) — Linux CI runs it canonically. Packaged signed-update smoke is owner-gated and deferred to the enablement PR.

Refs pickforge/pickforge-platform#36

🤖 Generated with Claude Code

Gate the shared controller and dialog behind the default-off Studio flag while preserving the legacy updater and visible-main-window startup behavior.

Add injected startup coverage and deterministic development fixtures for visual review.

Refs pickforge/pickforge-platform#36
Panel round 1 on #62: release the focus listener when a
visibility query fails after registration (it leaked for the webview
lifetime), align the new @pickforge dependency specs to the workspace caret
convention, and document that mountStudioUpdater's static eligibility
deliberately leaves visible/focused deferral to scheduleStartupUpdate.

Refs pickforge/pickforge-platform#36
@ElbertePlinio
ElbertePlinio merged commit 5b2f29f into main Jul 23, 2026
3 checks passed
@ElbertePlinio
ElbertePlinio deleted the feat/36-update-dialog branch July 23, 2026 23:10
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