Skip to content

Work on another computer fails, disagrees, or says offline when it isn't #2287

Todo

Description

@TheAnimatrix

Problem

Work on another of your computers fails or disagrees in ways that look unrelated but share a few causes:

  • Calls say " is offline" while it is connected (Start from pull request, images sent to a thread, opening a thread).
  • The two computers list different machines and projects.
  • An image sent to a thread there goes up in a separate upload step whose failures read as "offline".
  • The laptop misses Codex's "Use it" route offer, keeps an old model list after pairing, hides a bot's Agent settings despite Full bot access, and shows a generic face for a bot's messages.

The causes: the window loses an error's kind and guesses it from its English text; each part of the app decides "online" on its own, from its own link; there are five ways to call another computer, each with its own deadlines, retries and words; and a few features read only this computer's state.

Goal

One online status, one way to call another computer, and errors that say what really happened, with every cross-device feature built on them.

Done when

Each stage merges on its own. Connection state and access levels each become one explicit state with defined transitions, replacing scattered flags whose combinations are undefined.

End-to-end check

Several Mousse services in Docker (based on scripts/net-qa/packaging/linux/Dockerfile), with a local relay, a direct "LAN" network and a relay-only "WAN" network, and a fake model server. Faults are injected (tc netem, network disconnect, pause, restart, fewer stream slots, an older build), and each scenario checks the exact error kind and its timing.

Out of scope

#2172 (Quick Tunnel route learning, belongs in mousse-net), #552, and Codex's close reasons and cold-start time.

Activity

  1. self-assigned this
    on Nov 29, 2026
  2. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 3b (follow-up to #2280) is in progress on branch routed-upload-resume: upload resumes from the receiver's saved offset after a restart on either side, and several parts go out at once with a deadline that follows progress.

  3. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 9 (a bot's effective access travels on its feed) is in progress on branch bot-grant-on-feed.

  4. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 7 (Codex setup works for any computer) on branch codex-setup-any-computer. PR to follow.

  5. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP on stage 1 (errors keep their kind to the window), branch issue-2287-ipc-error-kinds. It lands in two PRs: first, a failed window call keeps its code and details across the window boundary; then, the fixed set of kinds replaces the text matching in src/shared/bridge/computerErrors.ts and "needs update" gets its own code.

  6. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 10 (a bot's messages show its face on every computer) is in progress on branch bot-sender-face-any-computer.

  7. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 9a (bots on different computers see and message each other) is in progress on branch bots-across-computers. Cause: bot_list and bot_send only read this computer's own bots; the other computer's bots, already kept from its feed, never reached the bot tools. Separate from stage 9's grant path.

  8. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    Stage 3b is done in #2303 (merged): an upload in parts resumes from the receiver's saved state after a restart on either side, keeps up to eight parts in flight, and ends only when it stops moving.

  9. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 2 (one online status per computer) is in progress on branch issue-2287-one-online-status. First slice: one explicit state per paired computer in the background service, pushed to windows, with a call back at once when the other computer connects in. Windows, daemon consumers and #2279's connect wait follow as their own slices.

  10. TheAnimatrix commented on Nov 29, 2026

    @TheAnimatrix
    CollaboratorAuthor

    Stage 2 plan: docs/plans/online-status.md (in #2350).

    • 2a feat(net): one online status per computer, pushed, and a call back when the other computer connects in #2350: one status per computer in the background service (offline, connecting, online, needs update, denied; both directions; last seen), moved by one transition. The engine's online and connecting answers and bridge.nodes read it, each change is pushed to windows, and a computer whose connection comes up here is called back at once.
    • 2b (after 2a): windows patch the pushed status into the computers store and the Run on menu, and stop re-reading the list every 15 s for online state. Files: src/renderer/lib/computers.ts, src/renderer/components/sideCard/deviceMenu.ts. Check: a renderer test that mounts the Run on menu and pushes a status.
    • 2c (after 2a, parallel with 2b): RoutedClient's connect wait waits for the status to turn online instead of polling every 150 ms; agent tools (computer.online), RemoteLaunchedThreads, routed/remoteComputers.ts, MergedLists retries and bots' availability read it and retry on its online change. Fixes Switching to another computer's thread is slow and shows nothing while it opens #1969 as far as presence goes.
    • mousse-net: a host connecting in again makes the helper probe its own outbound paths to that host and close dead ones, so a link lost while the other computer slept is not used until the transport's idle timeout.
  11. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 4 (one list of computers and projects) on branch computers-projects-store. Includes #2124.

  12. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP on stage 3 (one way to call another computer). Mapping every call path first (hub calls, the agents' remaining online checks, bot calls, remote speech), then a slice plan here, built on stage 2's status and stage 1's kinds. Stage 4 stays separate.

  13. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    Related work merged beside this plan. It removes gates that blocked the owner's own computers, agents and bots. Stage 7 (Codex setup on any computer) and stage 9 (a bot's effective access on its feed) were left to this plan and are not touched.

  14. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: 3.5 (editor links, updateThere, accessThere, net.info onto the status gate) is in progress on branch issue-2287-editor-update-routed.

  15. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 6 (attachments travel with the message) on branch stage6-attachments-receiver (6a, receiver side), then 6b (sender) on its own branch. Design note goes in docs/plans/attachments-with-message.md.

  16. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    Stage 6 plan: docs/plans/attachments-with-message.md (in #2404).

    Rules: one send id per request; a manifest of the values (size, digest, in order); the receiver reserves room for the whole send before any byte and saves offsets; bytes on the bulk lane (mousse.put) from the saved offset; the message is accepted only when every value of its send is complete; a retry with the same send id gets the first receipt; messages to one thread keep their order. Each side's send state is one explicit state with one transition function.

    What stays for older computers: routed.stage (whole upload) for computers from before parts; routed.stage.open / routed.stage.part for computers from before routed.send.open; bots.stage until 6c, then for computers from before it. Nothing is removed while a supported peer version still lacks the new path; there is no minimum peer version today, so retirement waits for one.

    Not in stage 6: the window matching an unconfirmed send by text instead of its receipt (the council's second finding).

  17. TheAnimatrix commented on Nov 30, 2026

    @TheAnimatrix
    CollaboratorAuthor

    WIP: stage 8 (model lists follow changes) on branch model-list-revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions