Skip to content

fix(environment): explain library assignment and add bulk install - #504

Merged
nixuuu merged 2 commits into
devfrom
fix/agent-environment-clarity
Nov 10, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/agent-environment-clarity

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 10, 2026

Copy link
Copy Markdown
Member

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

Clarify shared library contents, installation targets and linked deletion notices on web and mobile. Add bulk skill actions and an import-time installation selector while preserving source-computer defaults and owner checks.

Fixes: #118

Related: #455
Filter empty metadata parts before joining marketplace, plugin, skill and instruction rows on web and mobile.

Fixes: #118
@nixuuu
nixuuu merged commit ab3208b into dev Nov 10, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/agent-environment-clarity branch November 10, 2026 14:52
nixuuu added a commit that referenced this pull request Nov 23, 2026
## Summary

- Compute library row status from the reports for the matching skill,
plugin or instruction harness. Keep the computer's aggregate status in
Computers & preview.
- Preserve category-wide destination errors and require a current worker
report before showing Synced.
- Cover the regression with an actual worker report where one installed
skill has local edits and the other is synced. Update the agent
environment documentation.

Fixes: #504

## Verification

- `bun run check:tmp ./tests/integration/agent-skills.test.ts` (10
passed, no temp files left)
- Lint and formatting on the two edited TypeScript files, plus `git diff
--check`.
- Full verification is left to CI. The exact error from the reported
MacBook Pro was unavailable.
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