Repository navigation
fix(computers): preserve configured providers when linking - #455
Merged
Merged
Conversation
nixuuu
force-pushed
the
fix/link-config-merge
branch
from
November 9, 2026 20:36
074b4ac to
4e0ea1a
Compare
Track bootstrap intent and preserve concurrent provider and account edits until an explicit choice. Keep local CLI homes and worker overrides, and scope recovery commands to the effective login home. Fixes: #164
nixuuu
force-pushed
the
fix/link-config-merge
branch
from
November 9, 2026 21:16
4e0ea1a to
d2e5c15
Compare
nixuuu
added a commit
that referenced
this pull request
Nov 10, 2026
Imported skills can already be in the shared library while remaining uninstalled. The previous “No computers” and plugin statuses did not explain assignment, review or linked deletion notices. This change adds a compact library summary, explicit installation and review states, and single/bulk skill installation using the existing all/computers/tags selectors. Assigned rows list their computers and use the same Synced / Syncing / Error vocabulary as Computers & preview. Installation counts require current successful worker reports; pending assignments remain separate. Web and mobile now offer installation targets during CLI import, defaulting to the source computer. The additive `ImportLibraryChoice.skill_selector` field uses the existing owner-scoped skill save path. Replace preserves existing assignments. Bulk actions use sequential revision-checked saves, preserve computer overrides and expose partial results; no new bulk RPC or database migration is needed. Linked deletion notices explain shared configuration and offer Keep / Accept deletion plus bulk deletion resolution. Empty instructions and previews point to adding and assigning a document. Polish environment/import documentation is updated. ### Validation - Passed: `bun install`, `bun run gen:check`, `bun run typecheck`, `bun run lint`, `bun run format:check`, and the web production build. - Focused gRPC integration: 19 tests, 361 assertions passed. Covers bulk installation with actual worker reports, stale revision rejection, import source/all/tag assignments, Undo and foreign-owner rejection. - Browser checks used an isolated gateway, worker and Postgres with 25 unassigned skills, 3 installed skills, 2 pending plugins, 3 deletion notices and empty instructions. Checked light/dark at 1280, 820 and 390 px, long names, single/bulk install, bulk removal, review checksum gating, import targets, bulk deletion acceptance and empty preview guidance. Before/after screenshots are kept outside the repository. Checkbox selection required DOM click fallback after the browser locator timed out; resulting saves used the real API. - Full `bun run check:tmp`: **2154 passed, 163 skipped, 2 failed**, with no Canopy temp entries left. Failures were `scripts/release.test.ts` (“Release accepts the event SHA…”, default 5 s timeout) and `tests/integration/linked-thread-liveness.test.ts` (“an event sequence gap…”). Both files are unchanged. Rerunning those files through `check:tmp --timeout 30000` passed **28 tests / 253 assertions** with clean temp cleanup. The initial full run remains red; no baseline run was used to establish whether these failures predate this branch. - Mobile changes are JS only. `bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive` produced unchanged hashes: iOS `6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. No native device interaction was verified. ### Copy audit — docs/copy.md §8 | Before | After | Reason | | --- | --- | --- | | No computers / 0 computers | Not installed + Install… | Names the installation state and next action without duplicate counts. | | Not assigned / Ready to review | Review required + Review | Explains the prerequisite before installation; checksum confirmation remains explicit. | | Restore / Dismiss | Keep / Accept deletion, with shared-library explanation | Makes the result of each deletion decision clear. | | No instructions assigned to this destination | Add a document and assign it to see what agents receive. | Gives the next step in the empty library and preview. | | Instructions, skills and plugins that follow your computers… | Assign library items to computers or tags to install them. | States the assign-to-install rule directly. | New copy uses sentence case, active action labels, correct file plurals and text statuses. Errors and stale-library messages give a recovery action; bulk deletion confirmation names the shared-library and installation effects. Short, typical and long names were checked at desktop, narrow and phone widths in both themes. Status meanings do not depend on color or icons. No new humorous copy was added. Picker ellipses and the longer install-all label follow the explicit task wording. Fixes: #118 Related: #455
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linking a fresh desktop could replace an existing
claude:nativedefinition with its later bootstrap defaults. In particular, resettingownLogincould make the worker remove the instance's existing.credentials.jsonwhile trying to link an absent device login. A two-gateway regression reproduced the overwrite before this fix (Working Claudebecame an empty label).Fixes: #164
Result
Recovery
Migration: 0110_config_field_ancestry, following the merged DB2 migrations 0103–0109 on
dev(a423af85). Rebased onto that commit: provider recording retains DB2's boundedsaveRecordsbatches together with edit intent and per-author ancestry. Configuration store scoping, blob filtering and move redirect batching remain intact. Protobuf additions are additive; generated code is included. Polish merge, ownership and recovery documentation is updated.Validation
editedandseensurvive reopening storage.bun install,bun run typecheck,bun run lint,bun run format:check,bun run gen:check, web build.4e0ea1acfailed 5/5 isolated runs at the same post-replay record assertion; currentdeva423af85passed 5/5. The fixture omitted the intentionaledited=trueandseen=[]field metadata added during transport. Updated the fixture while retaining exact equality and all rollback/cursor/restart assertions. The corrected recovery file passed 5/5 isolated runs (30 passing tests), with a private TMPDIR throughout. The failure did not indicate a production atomicity defect: merge/history/intent writes and cursor updates remain in the samesql.withTransaction.check:tmpdeliberately left to CI as requested. No UI/E2E tests or live provider login. Browser visual inspection remains unverified.Copy audit (
docs/copy.md§8): ambiguous Restore/Dismiss for unresolved conflicts → Use the other’s / Keep this computer’s, so the effect is explicit. Bare CLI login guidance → the selected worker's scoped command, so it reaches the actual account. Text uses English, sentence case, active actions and the existing instance/worker/computer glossary; secret alternatives remain A different key. Layout allows action wrapping and long text, but desktop/phone and light/dark browser inspection has not been performed. No new decorative copy or color-only cues.