Skip to content

Make ‘This machine’ mean the client-local daemon - #2004

Merged
ymichael merged 2 commits into
mainfrom
bb/thr_mxrcaekqaq
Aug 20, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/thr_mxrcaekqaq

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

What was wrong

The UI reused the server-resolved primary host as the meaning of “This machine” in Machines and Updates. On remote and multi-host clients, that could label an execution default or server host as the device running the client. The primary-host fallback could also leak into removal policy.

What changed

  • Drive “This machine” only from the daemon reachable on the client device, and suppress the badge when only one host is known.
  • Keep authoritative primary-host policy and primary markers separate from client-local identity.
  • Avoid promoting the first-connected fallback into primary-host removal policy.
  • On mobile, use “Primary” only where multi-host disambiguation is useful and never claim the phone is a bb machine.
  • Clarify nearby copy that means the selected or primary machine. No server/daemon wire contract changed, so the protocol version is unchanged.

How you verified

  • pnpm exec turbo run test --filter=@bb/app -- src/components/settings/MachinesSettingsSection.test.tsx src/views/MachineSettingsView.test.tsx src/components/settings/UpdatesSettingsSection.test.tsx (48 tests passed)
  • pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/mobile
  • pnpm exec turbo run test --filter=@bb/app --filter=@bb/mobile (3,858 tests passed, 3 skipped)
  • pnpm exec turbo run lint --filter=@bb/app --filter=@bb/mobile (0 errors; existing warnings only)
  • git diff --check

Fixes: N/A (no linked issue)

AGENT GENERATED: by GPT-5

@ymichael
ymichael merged commit 2590dfc into main Aug 20, 2026
13 checks passed
@ymichael
ymichael deleted the bb/thr_mxrcaekqaq branch August 20, 2026 05:36
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