Skip to content

feat(native): complete sidebar updates and channel-switch parity - #350

Merged
rynfar merged 1 commit into
nativefrom
nw/100-sb-updates-done
Nov 13, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/100-sb-updates-done

Conversation

@rynfar

@rynfar rynfar commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #100

Problem

SB-UPDATES remained partial in apps/native/parity/LEDGER.md with three open follow-ups (disconnected SavedEnvironment label fallback, exact non-terminal remote provider failure message, and per-environment busy state) plus missing web parity for channel-switch / track-only updates, per-machine progress capsule & popover retry/dismiss, saved run-result restore & handoff resume, provider pill recency gating (visible_after / max(checked_at)), severity precedence, auto-dismiss, Settings keyboard focus, and UpdateEverythingDialog disappearance handling.

Summary of Changes

  • P3 fixes:
    • apps/native/crates/app/src/updates/mod.rs: disconnected entries (config: None) fall back to SavedEnvironment.label before owner.saved_id; plan_with checks per-environment unsettled run state instead of global busy state.
    • apps/native/crates/client/src/updates.rs: non-terminal Ok server.updateProvider replies emit "remote update is unresolved".
  • Channel-switch / track-only planner & transport:
    • apps/native/crates/core/src/server_config.rs, apps/native/crates/core/src/updates/: added desktop_app_channel_switch and database_migration metadata, UpdateTrack / ChannelSwitchPlan / collect_channel_switch / awaits_track_switch / channel_switch_block_reason (excluding track_only desktop hosts from plan.servers / capsule machines).
    • apps/native/crates/client/src/updates.rs: added release_channel option on ServerRequestOptions, capture_channel_switch, and run_channel_switch_with_progress supporting boot-service/respawn switches (channel: None in RPC, collect_channel_switch gating via release_channel) plus update_with_options returning Ok(()) when options.track_only && result["updateId"].is_null() before desktop-app token verification and reporting server response targetVersion on ServerHandedOff.
  • Per-machine capsule, popover, handoff & dialog parity:
    • apps/native/crates/core/src/updates/, apps/native/crates/app/src/updates/: UpdateEverythingRun, UpdateControl, per-machine capsule (#update-capsule) & anchored frosted-glass popover (#update-capsule-popover using crate::glass::backdrop with Retry / Dismiss gated to settled failures + Escape), persisted SavedUpdateEverythingResult preserving partial provider/server counts & failures across mid-run ServerHandedOff / MachineSettled, "<label> is still restarting." relaunch notice + reconcile_handed_off_at completion/timeout toast (!updates::behind with server targetVersion), provider pill visible_after (max(checked_at)) / severity precedence / 3s auto-dismiss / Settings keyboard navigation, and UpdateDialog disappearance + Escape focus restore.
    • apps/native/parity/LEDGER.md: marked SB-UPDATES done (Electron local-bundle self-update stays n/a).

Offscreen evidence

Draft release: https://github.com/rynfar/t3code/releases/tag/untagged-64d470c17d87c0737a0f (native-parity-evidence-350)

  • Provider error pill (Dark / Light):
    provider-error-dark
    provider-error-light
  • Per-machine failed capsule + warning provider pill (Dark / Light):
    capsule-dark
    capsule-light
  • Update capsule anchored frosted-glass popover with Retry/Dismiss (Dark / Light):
    popover-dark
    popover-light
  • Update confirmation dialog (Dark / Light):
    dialog-dark
    dialog-light

Verification (HEAD 6fbd88cf9464569d8ac5e3e7947bbfd83559ca44)

  • cargo test -p t3-core: 1257 unit + 8 integration passed, 0 failed
  • cargo test -p t3-client --features test-support: 113 passed, 0 failed
  • cargo test -p t3-native --features snapshot -- updates snapshot: 6 passed, 0 failed (130 filtered out)
  • cargo clippy --workspace --all-targets -- -D warnings: passed (0 warnings)
  • cargo clippy -p t3-native --no-deps --all-targets --features snapshot: 0 warnings/errors in crates/app/src/updates/
  • cargo build -p t3-native: passed
  • node scripts/gen-theme.ts --check, node --test parity/sync.test.ts (42/42 passed), node conformance/generate.ts --check: passed
  • vp fmt --check apps/native/parity/LEDGER.md: passed
  • vp run check:changed fork/native: passed (format, typecheck 40/40 packages, test 1 file / 2 tests)

Model: GPT-5.4 (Antigravity)

Completes SB-UPDATES (#100) parity in the native GPUI client: resolves the three open P3s (disconnected SavedEnvironment label fallback, exact remote-update unresolved warning string, and per-environment busy checking), adds channel-switch / track-only planning and transport before the desktop token check, per-machine update capsule with retry/dismiss popover, persisted run-result restore and handoff resume, provider pill cutoff/precedence/auto-dismiss/Settings keyboard focus, and UpdateDialog disappearance guard.

Model: GPT-5.4 (Antigravity)
@rynfar
rynfar force-pushed the nw/100-sb-updates-done branch from 4240dee to 6fbd88c Compare November 13, 2026 02:26
@rynfar

rynfar commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

Addressed review findings at 6fbd88cf9464569d8ac5e3e7947bbfd83559ca44:

  • Gated #update-capsule-popover footer actions (Retry / Dismiss) on settled runs with failures (!has_active_machine && has_failed) and renamed Retry failed -> Retry.
  • Preserved prior completed provider/server outcomes and failures in persisted SavedUpdateEverythingResult across mid-run ServerHandedOff / MachineSettled, restored "<label> is still restarting." toast when no immediate parts/failures exist, and settled resumed handoffs using !updates::behind against server targetVersion with completion/timeout toast emission.
  • Wired release_channel through ServerRequestOptions, added capture_channel_switch and run_channel_switch_with_progress in t3_client::updates, and excluded track_only hosts from ChannelSwitchPlan.servers / capsule machine tracking.
  • Switched #update-capsule-popover to crate::glass::backdrop, refreshed popover-dark.png and popover-light.png on native-parity-evidence-350, and corrected the visible_after (max(checked_at)) summary wording.

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