Skip to content

fix(web): update dialog groups running work under each machine in plain words - #1353

Merged
incognitojam merged 3 commits into
mainfrom
styal/update-dialog-clarity
Nov 6, 2026
Merged

incognitojam merged 3 commits into
mainfrom
styal/update-dialog-clarity

Conversation

@incognitojam

@incognitojam incognitojam commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

The update confirmation made you cross-reference a table and a separate thread list to work out what a restart would do. "1 running" counted only threads with a live turn, sat under Providers, and didn't match the list below it. "Will be interrupted" listed idle threads tagged with background work, while "Will continue" listed Running threads, which reads backwards at a glance. The title didn't say anything restarts.

The dialog now answers two questions: which machines restart, and what happens to their running work.

  • There is one block per machine, with its icon and name and no divider or kind label. Its threads sit inside it. The table and the running count are gone.
  • This app is listed last and marked "Restarts last" when any other machine also updates, including one that only gets provider updates. Remote servers carry no order label, because they are handed off in parallel in no fixed order. When this app is the only machine, there is no note.
  • Threads are split into "Stops until you message it" and "Resumes on its own". Web and mobile share these headings, and the quit and restart confirmations pick them up too.
  • Tags name what stops: Command, Watcher, Task. Running no longer appears on threads that resume.
  • Title and button say "Update and restart" when every listed machine restarts. A machine that only gets provider updates says "No restart", and its providers move to a muted line.
Before After
Before: table of machines above a separate thread list After: one block per machine with threads inside

After, dark theme

A provider-only machine next to this app, and this app on its own:

A provider-only machine says No restart and this app says Restarts last

This app as the only machine, with no restart note

Validation

Captured from the desktop dev app in Electron, clicking the sidebar update button with three machines connected: the local backend and two paired remote servers. Thread data came from synthetic scenarios on isolated homes, and each server's real activity check supplied the lists, including threads the server reports as resumable. Before and after use the same setup.

These parts were faked for the capture, in uncommitted patches since reverted, because a dev build can't reach this state:

  • The app reported an update as downloaded, since dev builds disable the updater.
  • The remotes reported themselves as able to self-update, since they weren't running under the service launcher.
  • The client stored its connection list in browser storage, since this headless machine has no keyring.
  • Machine names came from a stand-in hostnamectl, and icons from each server's environmentIcon setting.
  • For the two smaller captures, the provider update was injected and the confirmation was forced open, because they have no running work to trigger it. In the provider-only capture the remote server updates were also removed.

Observed: with three machines, the remotes appear first and only this app says "Restarts last". Each thread appears under its own machine, with no restart-order label on either remote. A provider-only remote says "No restart" and the title drops "and restart". I cancelled the dialog each time, so no update ran.

Not exercised in a real client: the track switch dialog (it shares this layout, and its browser test passes), the desktop quit dialog, and the mobile screen, where only the headings and tags changed. Phone width wasn't captured, because shrinking the window closes the sidebar and the dialog with it.

Upstream still has the table (pingdotgg#26210), and pingdotgg#26424 is open and adds a warning line to this dialog, so an intake that brings it will need to place that line in the new layout.

A thread that resumes can still lose background commands the dialog doesn't show, because a live turn hides them. #1348 describes this; it isn't changed here.


Written by an agent (Claude Code, claude-opus-5-5).

@github-actions github-actions Bot added the size:L label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Upstream divergence

Both sides are compared with upstream at the in-order tip a852de0b7b. Excludes .repos/ and pnpm-lock.yaml.

Measure Base This PR Change
Upstream files the fork changes 2,066 2,066 0
Lines changed in them 122,783 122,925 +142
Upstream files the fork removes 64 64 0
Fork-only files 876 876 0
Fork-only lines 155,835 155,861 +26
Upstream files whose difference changes (4)
File Change Now differs by
apps/web/src/components/sidebar/UpdateEverythingDialog.tsx +141 232 lines
apps/web/src/components/settings/UpdateTrackSwitchDialog.tsx +1 71 lines
apps/web/src/components/sidebar/SidebarUpdatePill.browser.test.tsx −1 918 lines
apps/web/src/components/sidebar/SidebarUpdatePill.tsx +1 373 lines

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB +29 B (+0.6%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB +29 B (+2.3%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.6 KiB +41 B (+0.2%) 24.4 KiB ✅
Codex Live turn messages 1 2 +1 (+100.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.1 KiB +6 B (+0.1%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.3 KiB 1.3 KiB +6 B (+0.5%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 2 2 0 (0.0%) 8 ✅

Baseline: 7b76824 · PR result: f985347 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@incognitojam
incognitojam force-pushed the styal/update-dialog-clarity branch from f04096a to f985347 Compare November 6, 2026 20:51
@incognitojam
incognitojam enabled auto-merge (squash) November 6, 2026 20:58
@incognitojam
incognitojam merged commit 9b2be7d into main Nov 6, 2026
52 of 53 checks passed
@incognitojam
incognitojam deleted the styal/update-dialog-clarity branch November 6, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant