Skip to content

fix(config): show linked provider status and stop false conflicts - #224

Merged
nixuuu merged 3 commits into
devfrom
fix/linked-provider-status
Nov 5, 2026
Merged

nixuuu merged 3 commits into
devfrom
fix/linked-provider-status

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

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

Carry the home worker report through overview snapshots and updates. Show its authentication, CLI version, reported connection kind and check time, including worker overrides. Older peers show an explicit unavailable status.

Fixes: #176
Compare secret plaintext inside the gateway, canonical proxy aliases and optional settings defaults. Preserve HLC ordering and reject reused clocks with different wire values. Cover identical encrypted values, edits, restart, version skew, clock ties and local routes with two linked gateways.

Fixes: #164

Related: #157
Dismiss stored notices automatically once their effective values match the current configuration, retaining history and genuine deletion or resurrection notices. Cover convergence, legacy equal settings and re-encrypted secret recovery across linked gateways and restart.

Fixes: #157
@nixuuu
nixuuu merged commit a963213 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/linked-provider-status branch November 5, 2026 21: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