Skip to content

feat(computers): create bots and schedules on any linked computer - #176

Merged
nixuuu merged 1 commit into
feat/linked-shared-config-6from
feat/linked-shared-config-7
Nov 5, 2026
Merged

nixuuu merged 1 commit into
feat/linked-shared-config-6from
feat/linked-shared-config-7

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

Stage 7 of 7, the last stage of shared configuration across linked computers. The design is in docs/linked-computers.md, which now marks the plan as done.

  • Bots and schedules on any computer: the worker picker chooses where a bot runs or where a schedule's thread lives. Creating, editing, archiving and deleting go through routing to that home. If the home is unreachable, the action fails at once; nothing is queued.
  • Workers from other computers in settings: Providers (workers per instance), Agent environment (machine overrides and preview), Worktrees (worker scope) and Connectors (worker access) list workers from all computers, grouped by computer. Remote workers are editable while online and read-only while offline.
  • Proxy override from another computer: proxy_id is translated through aliases. Worker-scoped proxies never leave their home.

No migration. Additive RPCs: GetInstanceWorker, GetWorkerEnvironment, SetWorkerEnvironmentOverride, plus fields for worker identity, inherited runtime, environment overrides, revision and library version hashes.

Tests: 93 integration tests across 12 files, including:

  • a bot created on B's worker from A lands and runs on B;
  • a schedule targeting B lands on B;
  • an unreachable home fails at once;
  • remote workers appear in the lists and are read-only while offline;
  • a remote proxy override works, and a worker-scoped proxy stays home;
  • owner scoping.

Copy audit (docs/copy.md §8): "Linked computers set their own overrides" is replaced by direct editing at the worker's home. Terms, actions and error recovery were checked, and long names wrap correctly.

@nixuuu
nixuuu added this pull request to stack #165 November 5, 2026 13:37
@nixuuu
nixuuu force-pushed the feat/linked-shared-config-7 branch from a07d1f6 to 72e8145 Compare November 5, 2026 14:43
@nixuuu
nixuuu marked this pull request as ready for review November 5, 2026 14:44
@nixuuu
nixuuu merged commit 87e6f78 into dev Nov 5, 2026
16 of 18 checks passed
@nixuuu
nixuuu deleted the feat/linked-shared-config-7 branch November 5, 2026 14:51
nixuuu added a commit that referenced this pull request Nov 5, 2026
Linked computers now show the real provider status of each other's
workers, and no longer report equal shared settings as conflicts.

**1. A remote worker's instance status was dropped** (introduced by
#176)

On each Mac, the other computer's worker showed only "Available", with
no auth, version or connection details. So each Mac looked as if the
other used the device login, though both used the proxy.

- **Fix:** overview snapshots and updates carry the home worker's
report: auth kind, CLI version, effective connection kind (with
per-worker overrides) and check time.
- **Older peer:** a peer that does not send the report gets an explicit
"unavailable" status instead.

**2. Conflicts were recorded for equal values** (introduced by #164)

Conflict detection compared stored representations:
- re-encrypted secrets, whose ciphertext differs on each computer;
- proxy aliases;
- defaults versus explicit values.

So almost every field looked different. It now compares effective
values: the secret plaintext inside the gateway, canonical proxy aliases
and effective defaults. HLC ordering is unchanged, and a reused clock
with a different value is still rejected.

**3. Stale notices stayed open** (introduced by #157)

Notices whose values have converged are now dismissed automatically,
including stored legacy notices and after a restart. Real conflicts keep
Restore and Dismiss. No migration is needed.

**Tests:** 8 new regression tests across two linked gateways:
- remote provider rows on both sides;
- identical encrypted values give no notice;
- a real divergent edit gives exactly one notice;
- convergence clears notices, also after a restart;
- version skew and clock ties.

`check:tmp`: 1406 passed, 0 failed.

**Checked** in a browser with two linked gateways: light and dark,
desktop, narrow and phone width, with long names, real conflict notices
and automatic clearing.

**Copy audit (§8):** explicit unknown states, sentence case, no
duplicated "Proxy" label, and no meaning carried by colour alone.

**After updating both Macs:** both provider rows should show Proxy with
auth, version and check time, and the equal stale notices should
disappear. `native` stays the instance id; "Proxy" names its connection.

Fixes: #176
Fixes: #164
Fixes: #157
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