Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/machines-p0-6-mobile
branch
6 times, most recently
from
October 19, 2026 15:58
2e92cf6 to
fe67f1c
Compare
This was referenced Oct 20, 2026
This was referenced Oct 20, 2026
nwparker
force-pushed
the
nwparker/machines-p0-6-mobile
branch
2 times, most recently
from
October 20, 2026 09:53
fb0b079 to
9092271
Compare
nwparker
force-pushed
the
nwparker/machines-p0-2b-progress
branch
2 times, most recently
from
October 20, 2026 21:25
3b3b52b to
6708b4c
Compare
nwparker
force-pushed
the
nwparker/machines-p0-6-mobile
branch
6 times, most recently
from
October 21, 2026 01:27
93e59c8 to
9e4e577
Compare
nwparker
force-pushed
the
nwparker/machines-p0-2b-progress
branch
from
October 21, 2026 03:55
62e6ad2 to
eec0f9c
Compare
nwparker
force-pushed
the
nwparker/machines-p0-6-mobile
branch
from
October 21, 2026 03:55
9e4e577 to
4f378cb
Compare
machines.list/get/wake/sleep join the methods the paired desktop answers itself, since providers are plugins it runs. Create, archive and delete are not runtime RPC methods, so they stay off the phone.
The host screen shows a Machines button once the desktop answers machines.list with at least one provider; an older desktop, Machines off, or a server with no providers hides it. The page lists each provider's machines with state, lifetime, expiry on the provider's clock and detail, offers Wake on sleeping or archived machines and Sleep on running ones, and refreshes on focus and every minute while foregrounded. Create, archive and delete stay on the desktop.
…ouble Builds the mobile web bundle, opens /h/<host>/machines with replies for machines.list and machines.wake, checks the rows and states, and that Wake sends the machine's selector. ORCA_MOBILE_WEB_MACHINES_SCREENSHOT saves the rendered page.
… device Dispatches machines.wake as a mobile-scoped caller: it is admitted, the wake is logged with the phone's device id, and a machine verb outside read, wake and sleep is refused.
- Polls re-read the desktop's cached list; only opening the page, returning to the app and a manual refresh ask providers (which can be billed cloud calls). - A wake or sleep that loses the connection says "Lost contact; checking what happened" and re-lists, instead of reporting a refusal; every request is caught, so nothing rejects unhandled or sticks on Loading. - A failed refresh keeps the rows, dimmed, with how old they are. - Sleep asks for confirmation; machines use the Box glyph. - The header's Machines check resets on disconnect and re-runs when the app returns, so turning Machines on or off shows up. - One unreadable machine row is dropped, not the whole list; unknown lifetimes show nothing; far expiries name the year. - Toolbar button hit area and the busy spinner's spoken label. - Wake and sleep logs carry a short hash of the device id, not the id.
- Polls re-read the desktop's cached list; only opening the page, returning to the app and a manual refresh ask providers (which can be billed cloud calls). - A wake or sleep that loses the connection says "Lost contact; checking what happened" and re-lists, instead of reporting a refusal; every request is caught, so nothing rejects unhandled or sticks on Loading. - A failed refresh keeps the rows, dimmed, with how old they are. - Sleep asks for confirmation; machines use the Box glyph. - The header's Machines check resets on disconnect and re-runs when the app returns, so turning Machines on or off shows up. - One unreadable machine row is dropped, not the whole list; unknown lifetimes show nothing; far expiries name the year. - Toolbar button hit area and the busy spinner's spoken label. - Wake and sleep logs carry a short hash of the device id, not the id.
Providers may now report `stopping` for a sleep or archive they accepted but have not finished; the row shows it busy instead of Unknown.
The row model uses shared/machine-display, so the phone shows the desktop's words (Starting, Sleeping…, Error, Unreachable), and a state from a newer desktop reads Unreachable, not blank. Wake and Sleep are offered only if the provider declares those verbs. A desktop that sends no capabilities still gets both, as before.
nwparker
force-pushed
the
nwparker/machines-p0-2b-progress
branch
from
October 21, 2026 19:01
eec0f9c to
f204f6d
Compare
nwparker
force-pushed
the
nwparker/machines-p0-6-mobile
branch
from
October 21, 2026 19:01
4f378cb to
439ec25
Compare
nwparker
marked this pull request as ready for review
October 21, 2026 19:02
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
You can now see your machines from your phone, and wake or sleep them there. A paired phone gets a Machines page for the desktop it's paired with. The page lists every machine the desktop's machine plugins manage, shows whether each one is running, sleeping or gone, and has a Wake or Sleep button. Creating, archiving and deleting machines still happens only on the desktop.
What Changed
Before: the desktop could list, wake and sleep machines over runtime RPC, but a phone could not reach those calls, and the mobile app had no place to show machines.
After:
machines.listwith at least one provider. An older desktop, a desktop with Machines turned off, or a headless server with no providers never shows it. The check resets when the connection drops and runs again when the app returns to the foreground, so turning Machines on or off on the desktop shows up./h/<host>/machines). Each provider is a section, and each machine row shows:Mechanism:
machines.list|get|wake|sleepare added to the methods the paired desktop answers itself (PAIRED_DESKTOP_METHODS), because the machine providers are plugins installed and run on that desktop.mobile/src/machines/).method_not_foundorforbidden(an older desktop) andunsupported(Machines off) as unavailable. They drop a single unreadable machine row rather than failing the whole list.machineMsUntilExpiry. A lifetime value the app doesn't know shows nothing, and expiries more than a day away name the date (and the year when it isn't this year).Why
Linked Issue
Fixes #
Visual Proof
The Machines page as rendered in a browser by the new render test (390×844), with one running, one sleeping (Temporary, with a deletion date) and one gone machine:
Testing
Hook tests (mobile,
use-host-machines.test.tsx):Unit tests (mobile):
method_not_foundandunsupportedread as unavailable; other failures carry the provider message./h/<host>/machineswith providers.Browser render test (
config/scripts/mobile-web-app-machines-render.test.mjs). It builds the mobile web bundle and opens the page in headless Chromium against the shell double, which answersmachines.listandmachines.wake. It checks the rows and states, that tapping Wake sends{ providerKey, machineId }, and that the page logs no errors.Runtime:
machines.wakeas a mobile-scoped caller. It is admitted and logged with a hashed device id that doesn't contain the raw id, andmachines.createis refused.Mobile suite: typecheck, lint, format check, the tests-typecheck ratchet and the full suite (1,057 files) pass.
Census tests: the page-route, grant, haptics and external-link census tests pass.
Platforms:
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
forbiddenormethod_not_found, which hides the button.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)