Skip to content

feat(web): give This Machine its own page and remove Providers - #183

Merged
sanchitrk merged 3 commits into
canaryfrom
claude/this-machine-page
Nov 27, 2026
Merged

sanchitrk merged 3 commits into
canaryfrom
claude/this-machine-page

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

This Machine gets its own page, and the Providers page goes away. Everything Providers did for this computer's server now lives under Settings › Machines, so a second server on the same computer is paired like any other machine instead of being managed as an extra provider.

Web (apps/web)

  • This Machine page at /settings/machines/localhost, built like a paired machine's page:
    • Machine: Label, Hostname, ID and Version.
    • Workspace: Link or Unlink.
    • Server: status with Install, Start or Restart/Stop; Executable, Home Directory, Launch Arguments; the start command, shortened on screen with the full command on copy.
    • Environment: the variables editor.
    • Server stopped or broken: the page still opens, the Label locks until the server runs, and Start stays within reach.
  • Machines list:
    • This Machine is a single row that opens its page and shows its link state ("Not Linked · v0.8.0").
    • Health Check Interval sits right after This Machine, since one timer covers every machine. Its stepper is one joined control: − and + share the field's border and height, the number uses tabular figures, and keyboard focus rings the whole control.
    • Check Again moved into the page header.
  • Providers removed: the route, the sidebar entry, Add Provider and Make Default. The problem button in the sidebar and composer is now "Open Machine Settings" and opens This Machine.
  • Review fixes across both machine pages:
    • Label and Hostname use the same wording on both pages, and a paired machine's page now shows its ID.
    • A cut-off status shows its full text on hover.
    • Approve and Add keep their width while they work.
    • Path fields show the whole path on hover.
    • The loading placeholders match the real sections.

App server (apps/server, apps/contract)

  • servers.setDefault and the local form of servers.add are removed; pairing still uses servers.add. There's no migration, since we're still in development.
  • servers.service now fails when a stop or restart leaves the old server running, naming the CLI and server versions. An older codework reports success against a newer server it can't reach, which made Stop look like it worked when it didn't.

Testing

  • New E2E cases:
    • launch.test.ts: a CLI that can't reach the server makes Stop and Restart fail with a message while the server keeps running; the real CLI then stops it (launch.blind.json).
    • health.test.ts: at a 1s interval, a changed CLI version shows up within 2s on its own; at 0 it stays stale; a manual check picks it up (health.interval.json).
  • Updated artifacts:
    • health.json no longer covers an extra local server.
    • schema.json drops the removed servers.setDefault refusal.
  • App-server suite (vp test --project server): 16 files, 53 tests pass, 1 skipped.
  • Checks: vp run verify, vp check on apps/, and the web and app-server typechecks pass.
  • Walked in the real Electron app with the dev RPC server and Relay:
    • Navigation: opening This Machine by click and by keyboard, the back link, and reload.
    • Label: a long label, then clearing it back to the hostname.
    • Server lifecycle, on a throwaway server: stopped, started with arguments and a plain and a sensitive variable, restarted, stopped, a bad executable, then reset.
    • Health Check Interval stepper: + and − step by 30 and save, typing a value then Enter saves, Tab moves − → field → +, − turns off at 0, and reset returns 300.
    • Health Check Interval: saved and kept across a reload; at 1s a new CLI version showed up 311ms after it changed; at 0 it stayed stale; Check Again picked it up.
    • Problem button: with a real stopped-server problem, it opened This Machine.
    • Workspace: connect, Approve and Unlink with a real pending machine against the dev Relay.
    • Paired machine page: checked.
  • Not done:
    • The public docs in sites/ still say "Settings → Providers"; they'll be updated separately.
    • Pairing a second local server at localhost:<port> wasn't exercised, and a loopback address still shows "Insecure".
    • The This Machine page's Server card still grows about 35px when it loads.

Done with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

sanchitrk and others added 3 commits November 27, 2026 18:32
This Machine opens /settings/machines/localhost, laid out like a paired
machine's page, with the server settings Providers had: start, restart and
stop, executable, home, launch arguments, environment and the start command.
The Machines list shows it as one row with its link state. Health Check
Interval moves under This Machine, Check Again into the Machines header, and
the problem button now opens This Machine.

Providers is gone, along with servers.setDefault and adding a local server:
another server on the same computer is paired like any machine.

Stop and restart now fail plainly when the CLI leaves the server running, as
an older codework does with a newer server it can't reach.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The minus and plus buttons sat flush against the field with no shared edge,
so "− 300 +" read as three loose pieces. They now share the field's border at
its height, the field uses tabular numbers, keyboard focus rings the whole
control, and the description fits on one line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The id rode on the description line, the row's second line, while the status
and chevron are centred in the row, so it sat low. It is now a column of its
own, centred like the status, and still lines up down the list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sanchitrk
sanchitrk merged commit 9e8c140 into canary Nov 27, 2026
1 check passed
@sanchitrk
sanchitrk deleted the claude/this-machine-page branch November 27, 2026 13:14
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