Skip to content

feat: give machines a nickname that shows on every device - #2

Merged
deanseniorverse merged 1 commit into
denofrom
2026-11-machine-nickname
Nov 6, 2026
Merged

deanseniorverse merged 1 commit into
denofrom
2026-11-machine-nickname

Conversation

@deanseniorverse

Copy link
Copy Markdown
Owner

A machine's name came from the OS at pairing time ("Dean's Macbook Pro"), and the only way to change it was to rename the computer. Spec 2026-11-machine-nickname (D-732).

How

  • Setting: environmentLabel is a server setting on the machine itself, so every device connected to it shows the same name. Blank or null goes back to the machine's name.
  • Descriptor: reports the nickname as label and the machine's name as machineLabel, plus an environmentLabel capability so older builds lock the rename. ServerEnvironment now takes ServerSettingsService as a declared dependency and reads the nickname per request.
  • Clients: RpcSession.configChanges feeds a registry watcher that renames the saved entry in place (setLabel, entryWithLabel). Names update live without reconnecting and persist while the machine is offline. Mobile gets this through the shared registry.
  • UI: Rename… in the ⋯ menu of this machine's row and each saved environment in Settings → Connections. It is locked, with the reason shown, when disconnected, without settings access, or on an older build.
  • MCP: t3_environment_preferences_update sets it; t3_environment_read reports it. Agent context budget updated (+140 bytes).
  • Docs: FORK.md entry docs: point the update skill at the personal script that updates every machine #12.

Verification

  • Typecheck: contracts, client-runtime, server, web, mobile and desktop pass.
  • Tests: contracts and client-runtime pass in full. Server environment, MCP and settings tests pass except the known deno failure ("publishes proven install ownership…"). build-desktop-artifact › "cross-architecture Windows payloads" also fails; it is unchanged from deno and unrelated.
  • Headless server: the descriptor returned label: "Dean's M3P", machineLabel: "Dean's M5P". Clearing the setting live switched label back with no restart.
  • Dev web app: Rename → "Dean's M3P" updated the header and every sidebar row immediately. Reopening started from the new name, and clearing restored "Dean's M5P".
  • Not covered: Rename on a saved remote environment and the locked state (no remote environment in the dev data). Browser tests didn't run because Playwright's Chromium isn't installed. Before/after screenshots are not attached: they were taken locally and couldn't be uploaded from the CLI.

🤖 Generated with Claude Code

A machine's name came from the OS at pairing time, and the only way to
change it was to rename the computer. The nickname is now the server's own
`environmentLabel` setting, so every device connected to it shows the same
name. Blank or null goes back to the machine's name.

- The descriptor reports the nickname as `label` and the machine's name as
  `machineLabel`, plus an `environmentLabel` capability.
- Settings → Connections: Rename… in the machine's and each saved
  environment's ⋯ menu, locked with the reason shown when unavailable.
- Each device follows the server's name live and saves it, without
  reconnecting.
- `t3_environment_preferences_update` sets it; `t3_environment_read` shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deanseniorverse
deanseniorverse merged commit 461afea into deno Nov 6, 2026
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