Repository navigation
Description
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.
- 0. Narrow fixes. fix(net-engine): a stream the other computer refused for lack of room opens again, and reads as busy, never offline #2272 (busy is not offline), fix(remote-threads): a thread of another computer that cannot be opened says why: busy, didn't answer, access denied or update needed #2276 (a thread that can't open says why), fix(pull-requests): Start from pull request says a failure once when the list and the typed pull request fail the same way #2268, fix(projects): Add to machine works from any computer, and a failed project read says so instead of hiding Clone into #2275 (Add to machine, Clone into), fix(bots): a bot chat message stops showing Sending… once it is saved, not once its turn starts #2278 (bot "Sending…"), fix(remote-threads): a call or stream open to a computer whose connection is still coming up waits a moment for it instead of failing as offline #2279 (wait while a connection comes up).
- 9a. Bots on different computers see and message each other (fix(bots): bots on different computers see and message each other #2313) (first priority, with 9). Today a laptop bot can't list or message a bot on the PC, and the PC bot's
bot_listdoesn't show the laptop's bot. Both directions work within each computer's bot access, and a refusal names its reason. - 9. A bot's effective access travels on its feed (first priority): see below. Done in fix(bots): a bot's access on another computer travels on its feed, and a failed check says why instead of falling back to Use #2322.
- 1. Errors keep their kind to the window. (fix(ipc): a failed window call keeps its error's code and details, not only its message #2352, fix(remote-threads): why a call to another computer failed is one fixed kind read from its code, and needs update has its own code #2387) Code and details cross the window boundary; one fixed set of kinds (Connecting, Offline, Busy, Didn't answer, Access denied, Update needed, May have happened); the text matching in
src/shared/bridge/computerErrors.tsgoes; "needs update" stops sharingcomputer_offline. Fixes Updating Mousse fails with "Error invoking…" shown as plain text #410 and Threads on another computer don't fully work from this one #2202 slice 9. - 2. One online status per computer, pushed to windows, bots, automations and agent tools instead of polled, built from both links. Reconnect at once after a wake or network change. Fixes Switching to another computer's thread is slow and shows nothing while it opens #1969.
- 2a. One status per computer in the background service, pushed to windows, with a call back when the other computer connects in (feat(net): one online status per computer, pushed, and a call back when the other computer connects in #2350). Plan:
docs/plans/online-status.md. - 2b. Windows hold the pushed status in one store and stop re-reading devices every 15 s (feat(computers): windows follow each computer's pushed status, with no timed re-read of the list #2357).
- 2c.
RoutedClient's connect wait, agent tools,RemoteLaunchedThreads,remoteComputers.ts,MergedListsand bots read the status (feat(net): the service's parts read each computer's one status #2378). - One-way pairing reads "Not used from here", not offline (fix(net-engine): a computer paired one way says "Not used from here", never offline, and leaves the lists of computers this one can use #2447).
- Follow-up in mousse-net: close a dead outbound connection when the same computer connects back in (Close a dead outbound connection when the same computer connects back in mousse-net#46).
- 2a. One status per computer in the background service, pushed to windows, with a call back when the other computer connects in (feat(net): one online status per computer, pushed, and a call back when the other computer connects in #2350). Plan:
- 3. One way to call another computer. Hub calls, agents' own online checks and bot calls move onto
RoutedClient. Fixes A bot's retried message to another computer is refused after a rename or that computer's update #2010, Remote read aloud and dictation: dropped audio parts, early cancel, and test gaps #2166 and Threads on another computer don't fully work from this one #2202 slice 8; checks Bridge thread copies and replay guards grow without limit #352.
Rules: every app call to another computer goes throughRoutedClient(call,callBot,openStream); nothing readsonline()orpeers.clientto decide whether to call. The computer's status is the only gate: connecting waits (at mostconnectWaitMs), any status that is not callable fails at once with its kind (offline, update →computer_needs_update, denied), with no network attempt. What leaves a call path is a fixed kind (computer_*), never a raw Net code such asincompatible_peer. A write goes out at most once per request id; a retry finds the first result, and display-only fields are not part of what it is matched on. Deadlines and retries live inRoutedClient, not in each caller. Versions are read once per session, never probed before every call.- 3.1 (fix(remote-threads): every call to another computer, bot calls too, is gated on its status, and a cut-off computer is refused as needing an update #2393)
RoutedClientgates every call and stream open on the status (bot calls too), and maps version refusals tocomputer_needs_update. Files:RoutedClient.ts,ThreadRouter.ts,computerErrors.ts. Check: router, bot router, connect-wait and cut-off tests. - 3.2 (fix(bots): calls to another computer's bots are gated on its status, and say connecting or needs update instead of offline #2396) Bots:
RemoteBotRegistryandRemoteBotChatsdirectrpccalls and the bots'online()gates (BotRouter, otherComputersBots, remoteBotFiles, remoteBotApplets, remoteBotViews) move ontoRoutedClientand the status. Depends on 3.1. - 3.3 (fix(remote-threads): agents' calls to another computer are decided by the call, not a status read first, and a bot's retry survives a rename #2401) Agents and automations:
RemoteLaunchedThreadsdrops its own connect limit, retry and unreached set; the per-callversionsprobes andtakesAgentMarkgo;remoteComputersstops reading the status on abort;remoteAutomationsreads the status. Fixes A bot's retried message to another computer is refused after a rename or that computer's update #2010 (agentBotout of the request's fingerprint). Depends on 3.1. - 3.4 (fix(bridge): Bridge Hub requests to another computer go through its status and say its kind #2400)
BridgeHub.callandhub.attachgo throughRoutedClient(CLIbridgecommands, usage and storage, open project, composer options, dispatch, older computers' lists). Fixes Threads on another computer don't fully work from this one #2202 slice 8 for the CLI. Depends on 3.1. - 3.5 (fix(net-engine): editor connections and updating another computer go through its status and say its kind #2403) Editor links,
updateThere/accessThere/net.infomove ontoRoutedClient. Depends on 3.1.
Merged lists'online()gates stay with stage 4. Remote read aloud and dictation: dropped audio parts, early cancel, and test gaps #2166 is about remote speech in feat(speech): manage speech per computer and route TTS/STT to a service computer #2165 (not merged): itsspeech.remote.callgoes throughRoutedClientwhen it lands. Bridge thread copies and replay guards grow without limit #352 is about copies and replay guards, not the call path.
- 3.1 (fix(remote-threads): every call to another computer, bot calls too, is gated on its status, and a cut-off computer is refused as needing an update #2393)
- 3b. Follow-up to fix(net): a large image sent to another computer goes up in parts that survive a dropped link #2280. Done in fix(net): a large upload to another computer survives a restart on either side and keeps several parts in flight #2303. Upload progress survives a restart (resume from the receiver's offset); several parts in flight per answer, with a deadline that follows progress, so slow relays don't time out.
- 4. One list of computers and projects, built the same way on both sides from stage 2's status plus a pushed project list. Fixes New folder does nothing before another computer's folders load, and a failed clone can remove a folder another clone filled #2124. Done in feat(computers): every picker reads one list of each computer's projects, with loading and failed states #2391.
- 5. Terminal and Files across computers checked with the end-to-end setup below.
- 5A. Docker harness (test(net): a Docker harness that checks work across computers under network faults #2470):
node scripts/xdev-e2e.mjsruns three paired computers, an older one and a local relay with a fake model and a fakegh, and checks each cross-computer action under injected faults (error kind and timing). All 27 checks pass, Terminal and Files included. Found: After a pairing, a computer's own connection can be closed as path_replaced and never dialled again mousse-net#50 (a pairing can leave one side without its own connection) and A silently dead link takes 45 s or more to close, so calls hang for over a minute mousse-net#54 (a silently dead link takes 34–77 s to say offline). - 5A fixes. A full computer says busy within 2 s instead of about 10 s (fix(io): a connection's hello takes a control place of its own, not a call's mousse-net#56, fix(net-engine): a connection's hello keeps its own stream place, and a full computer says busy within 2 s #2482). One dial state per host, so a pairing no longer leaves one side without its own connection (fix(helper): one dial state per host, and a refusal from before a change can't park it mousse-net#57, test(xdev-e2e): a computer whose own path to another closes dials it again while the other's path stays up #2485; fixes After a pairing, a computer's own connection can be closed as path_replaced and never dialled again mousse-net#50). A silently dead link says "didn't answer" within 5 s instead of offline after about 75 s (A link whose peer stopped answering closes within seconds, as unresponsive mousse-net#55, A call to a computer that stopped answering says so within seconds instead of offline after 75 s #2480). A thread read from another computer says busy within about 2 s instead of hanging when the connection's stream places run out (fix(net-engine): a remote thread read says busy within 2 s when the connection has no stream place left, instead of hanging #2486).
- 5B. Real three-computer check on nightly .202 (PC, laptop, Mac). Passing in every direction that pairing allows: bot lists; a PC bot's chat on the laptop with its pictures read from the bot's folder (same bytes); the bot's limits and model list read from the PC (fix(bots): show live limits and model choices from the bot’s computer #2476); thread links; Files; the computer and project lists (on the Mac the PC reads "Not used from here"); busy and offline kinds; a picture in another computer's thread; and the one-send path for a 3.3 MB picture both ways (the receiver held every byte with a matching checksum before refusing a deliberately stale send, and the same request again was answered in about 100 ms). Terminal close on macOS is fixed in fix(terminals): signed macOS builds can close terminals again #2487 (not in .202). Terminal close on Windows took 10–12 s; fixed in fix(terminals): an idle Windows terminal closes in about 2 s instead of 9 #2492. No bot reply has a web picture, so feat(chat): pictures from the web in replies show inline, fetched by the computer that has the reply #2474's web pictures weren't checked.
- Possible follow-up: closing a terminal still waits for its Git checkpoint (2.4–3.6 s on Windows) before it answers, since that step frees the thread for its next turn.
- 5A. Docker harness (test(net): a Docker harness that checks work across computers under network faults #2470):
- 6. Attachments travel with the message (replaces the separate upload step). One stable send id with a manifest (ordered attachments, sizes, checksums); the receiver reserves space and keeps offsets; bytes go over the existing bulk channel and resume; the message is accepted only when every attachment is complete; a retry finds the original receipt; same-thread order is kept. Done in feat(net): a message's attachments are held as one send on the computer taking it #2404 (6a receiver), feat(net): a message with images to a thread on another computer goes as one send #2408 (6b sender) and feat(bots): a message with files to a bot on another computer goes as one send #2426 (6c bots), with fix(net): a part taken while its link drops is recorded as done, so the resend gets its answer #2413 (a part whose link drops while it is written is found on resend). The old uploads (
routed.stage,routed.stage.open/stage.part,bots.stage) stay for older computers until there is a minimum peer version. Follow-up: A message's images are lost if the computer running the thread stops while saving them, and retries can't recover #2409 (images lost if the receiver stops while saving them).- 6d. Pictures a reply names by a file's path show on every computer (fix(bots): pictures in a bot's replies show on your other computers, and say why when they can't #2445). A bot's picture in its files folder is read from its computer through the existing bot file path; thread and bot pictures share one load state and say why one can't show (offline, no access, update needed, file not found, not in the bot's folder).
- 7. Codex setup on any computer. (feat(providers): Codex's model provider and setup choice work for any computer #2331) The selected computer reads its own
config.tomland returns a safe route summary; approving the route goes through the shared call path with that computer's permission checks, and the key stays there. One Codex setup with two choices, "Use my existing Codex setup" and "Set up a separate Codex in Mousse", each naming the config it reads on that computer. Follows Codex runs on the model provider its config.toml selects, once agreed #2158 and feat(codex): Mousse's own Codex can run on the provider its config.toml selects #2224. - 8. Model lists follow changes. Done in feat(net): another computer's model list follows changes there, from one store in the window #2412. The host publishes a model-list revision when providers or models change; a paired computer refreshes on it and on reconnect (stage 2). Follows fix(chat): a chat on another computer looks and sends like one on this computer #529.
- 9, details. A bot's effective access travels on its feed. The host sends the effective grant on the bot feed and updates it when policy changes; a grant that can't be read is a typed error, not a silent fall back to Use; every write is still authorized. Follows feat(bots): set up another computer's bots from here with Full bot access, and New bot Lives on #2133.
- 10. A bot's messages show its face on every computer. The sender is resolved by owning computer and bot id, and messages carry display-safe appearance for when the bot record isn't available. Follows fix(chat): a bot's message in a thread shows its words under the bot's face and name, with open for its chat #1354 and feat(bots): other computers' bots in the Bots list, and chatting with them from here #2101. Done in fix(bots): a bot's messages show its face, colour and open on every computer #2315.
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
TheAnimatrix commentedon Nov 29, 2026
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.TheAnimatrix commentedon Nov 29, 2026
WIP: stage 9 (a bot's effective access travels on its feed) is in progress on branch
bot-grant-on-feed.TheAnimatrix commentedon Nov 29, 2026
WIP: stage 7 (Codex setup works for any computer) on branch
codex-setup-any-computer. PR to follow.TheAnimatrix commentedon Nov 29, 2026
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 insrc/shared/bridge/computerErrors.tsand "needs update" gets its own code.TheAnimatrix commentedon Nov 29, 2026
WIP: stage 10 (a bot's messages show its face on every computer) is in progress on branch
bot-sender-face-any-computer.TheAnimatrix commentedon Nov 29, 2026
WIP: stage 9a (bots on different computers see and message each other) is in progress on branch
bots-across-computers. Cause:bot_listandbot_sendonly 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.TheAnimatrix commentedon Nov 29, 2026
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.
TheAnimatrix commentedon Nov 29, 2026
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.TheAnimatrix commentedon Nov 29, 2026
Stage 2 plan: docs/plans/online-status.md (in #2350).
bridge.nodesread it, each change is pushed to windows, and a computer whose connection comes up here is called back at once.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.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,MergedListsretries 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.refactor(computers): a computer cut off for its version has status ki…
TheAnimatrix commentedon Nov 30, 2026
WIP: stage 4 (one list of computers and projects) on branch
computers-projects-store. Includes #2124.TheAnimatrix commentedon Nov 30, 2026
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.
TheAnimatrix commentedon Nov 30, 2026
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.
TheAnimatrix commentedon Nov 30, 2026
WIP: 3.5 (editor links, updateThere, accessThere, net.info onto the status gate) is in progress on branch issue-2287-editor-update-routed.
TheAnimatrix commentedon Nov 30, 2026
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 indocs/plans/attachments-with-message.md.fix(net): another computer may call routed.send.open over the engine
TheAnimatrix commentedon Nov 30, 2026
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.routed.send.open, the send tables and state (receiving → complete → accepted),stage.putonmousse.put, accept only when complete, accepted sends kept as long as the ledger keeps results. Advertised, unused. Files:staging.ts,OwnerRoutes.ts,netEngine/session/{host,client}.ts,limits.ts, allowlist, access classes. Check:sendManifest.test.ts,stagedUpload.test.ts,spike.test.ts.send.openuse it; same-thread order; older computers and v1 links keep the fix(net): a large image sent to another computer goes up in parts that survive a dropped link #2280/fix(net): a large upload to another computer survives a restart on either side and keeps several parts in flight #2303 path. Files:sendUpload.ts,RoutedClient.ts. Check:sendUpload.test.ts,spike.test.ts, two paired dev instances.bots.stage,BotStaging) move onto the send path. A bot message names its files by the send's item ids instead ofbots.stageids, so the bot message rows that take files need a new version. Then retire what every supported peer version no longer needs.What stays for older computers:
routed.stage(whole upload) for computers from before parts;routed.stage.open/routed.stage.partfor computers from beforerouted.send.open;bots.stageuntil 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).
TheAnimatrix commentedon Nov 30, 2026
WIP: stage 8 (model lists follow changes) on branch
model-list-revision.fix(net): taking a message's values does its disk work off the servic…
feat(net): a message's attachments are held as one send on the comput…
feat(net): a message with images to a thread on another computer goes…
feat(net): a message with images to a thread on another computer goes…
fix(bots): pictures in a bot's replies show on your other computers, …
docs(agent-tools): name computer_not_used beside computer_offline in …
test: list the remoteBots full-path picture block as a known failure (#…
fix(net-engine): a computer paired one way says "Not used from here",…
fix(devices): recheck at the save, computers only, receipts for own cuts
test(devices): a lists refusal drops the Devices revision
fix(net-engine): sharing off ends the private streams engine connecti…