Skip to content

Treat a machine that's away as normal, and keep errors for machines that need you (851-4469) - #1516

Merged
dylanplayer merged 3 commits into
mainfrom
codevisor/boysenberry
Nov 28, 2026
Merged

dylanplayer merged 3 commits into
mainfrom
codevisor/boysenberry

Conversation

@dylanplayer

@dylanplayer dylanplayer commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Linear: 851-4469

Normal disconnects no longer look like errors. Each machine now reads as ready, quiet (connecting, away, or this device offline), busy (starting / updating / restarting: main's screens kept), needs you (update needed, removed) or failed (this Mac's own server), and the UI follows that.

  • Blips: nothing changes. Live tabs only switch to a spinner after the machine has been away 5s.
  • Machine away: chats open from the cache with no "Reconnecting…" text. Sends keep their progress bar and go out if the machine is back within 30 seconds; after that they show main's "Not Delivered" with Try Again, which sends again with another 30 seconds. The same applies when this device is offline. Older history in a partly cached chat shows a top spinner and loads by itself when the machine is back. Terminal, files, browser and other live tabs show a plain spinner. The iOS full-screen "Can't Reach" screen is gone.
  • Never-opened chat, machine away: a plain spinner on both apps, replacing "Waiting for the server..." (Mac) and "Connecting / Can't Reach Studio" (iOS).
  • This device offline: if this device can't reach the cloud for 5s, there's one "Offline" hint (Mac sidebar footer, iOS home toolbar).
  • Older history, machine away: scrolling up past what's cached shows the top spinner and loads by itself when the machine is back. It used to show "Studio is offline / Retry" and never retried.
  • Needs you: one card with "Open Settings" in that machine's workspaces. Sends to it fail with the reason.

Root causes fixed:

  • On a lost connection, first connect and capabilities now wait for the machine and retry. Before, capabilities raised a Retry rail and connect showed "Waiting for the server...".
  • A connect failure now sets only the error row, not also the composer error.
  • The machine-level and stream-level "Reconnecting…" sources are both removed.

The cache stays read-only: sends still go to the machine as before.

Tophat

Tested in the Mac dev app and iOS simulator with Codex signed in. The away machine is a second dev server ("Studio") signed into the worktree's dev cloud. I stopped it for "away", paused it for a blip, and paused the dev cloud and relays for "device offline". Covered: cold launch with Studio unreachable, a 4s blip, device offline, Studio coming back with sends waiting on both devices (both went out and got replies), and a send left over 30 seconds with Studio away (Not Delivered on both devices; Try Again after Studio was back delivered and got replies).

Not exercised live:

  • Needs an update: couldn't make the dev server come up without a tunnel. Unit-tested instead.
  • Removed: main deletes a removed machine's workspaces on both apps, so there's no workspace left to show the card in.

Checks

bun run swift:test passes. bun run swift:lint is clean.

🤖 Generated with Claude Code

dylanplayer and others added 3 commits November 27, 2026 16:29
…hat need you (851-4469)

A machine that's asleep or briefly unreachable no longer shows errors or
banners. Each machine now reads as ready, quiet (connecting, away, or this
device offline), busy (starting, updating, restarting), needs-you (update
needed, removed) or failed (this Mac's own server), and the UI follows that:

- Chats on an away machine open from the cache with no "Reconnecting…" text;
  sends keep their progress bar and go out when the machine is back, with no
  10-minute cap. Sends to a machine that needs you fail with its reason.
- First connect and capabilities wait for the machine and retry on their own
  instead of raising "Waiting for the server…" or a Retry rail, and a connect
  failure no longer sets both an error row and a composer error.
- A chat never opened on this device, and terminal, files, browser and other
  live tabs, show a plain spinner while the machine is away (after 5s, so
  blips change nothing). iOS drops the full-screen "Can't Reach" screen.
- When this device can't reach the cloud for 5s, the Mac sidebar footer and
  the iOS home toolbar show one "Offline" hint.
- A machine that needs you shows one card with "Open Settings" in its
  workspaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…469)

Scrolling up in a partly cached chat while its machine was away or this
device was offline turned the failed page into the chat's error row ("Studio
is offline", Retry), left no spinner at the top, and never retried. An older
page that loses its connection now keeps loading, so the top spinner stays,
waits for the machine and loads by itself once it's back. Other failures
still show their error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…4469)

A send to a machine that's away, or from a device that's offline, now waits
30 seconds and is then marked Not Delivered with Try Again, using the
existing row. Try Again sends it again with another 30 seconds. Shorter
blips still just show the progress bar and go through. This applies both
while the send waits for its machine and after it loses its connection
mid-send, and a give-up is not reported as an error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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