Skip to content

feat(environment): resolve local skill conflicts from the library - #1314

Merged
nixuuu merged 1 commit into
devfrom
feat/resolve-skill-conflicts
Nov 26, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/resolve-skill-conflicts

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Change

  • Resolve local skill conflicts from the Skills library in web and desktop. The dialog identifies the computer, CLI and path for each affected location.
  • Keep the existing directory or link, or confirm an archive and install the library version. Canopy shows the recovery path and the reported sync result.
  • Show other sync errors with details and a way to open the affected computer. The library marks deliberately kept copies separately.

Verification

  • All 13 tests in tests/integration/agent-skills.test.ts passed through bun run check:tmp. The new case verifies that keeping a linked copy preserves both the link and its target while another destination syncs.
  • Focused lint, formatting, whitespace checks and the web, gateway and mobile typechecks passed locally.
  • Exercised the shared renderer in Chromium at 1440 px and 390 px against an isolated gateway and worker. Checked directory and link conflicts, keep, archive and install, recovery paths, error details, long values and keyboard focus after closing the dialog.
  • The full verification suite runs in GitHub CI.

Copy audit

  • Error → Resolve local conflict names the repair in the affected row. Review sync error opens details for other failures.
  • Error after a keep decision → Review kept copy identifies the choice already made and lets the user revisit it.
  • Use library version repeats the confirmation title’s action and explains where the local copy goes. Text identifies each state and action at both viewport widths.

@nixuuu
nixuuu enabled auto-merge (squash) November 26, 2026 13:57
@nixuuu
nixuuu merged commit f5b536e into dev Nov 26, 2026
45 of 47 checks passed
@nixuuu
nixuuu deleted the feat/resolve-skill-conflicts branch November 26, 2026 14:08
nixuuu added a commit that referenced this pull request Nov 28, 2026
## Skill conflict resolution

A single computer can report a conflict for every CLI and every Canopy
agent home. The Skills dialog now asks which copy to use and which
computers should sync the skill. Paths, backups and individual computer
actions are available on demand.

- Install the Canopy version on selected computers with recoverable
backups for the reviewed locations. Previously kept copies stay out of
an active conflict resolution.
- Review a local CLI folder and save its files as the new version of the
existing library skill. The confirmation explains the effect on source
updates and pins. Installing on the source computer has a separate
confirmation.
- Keep user-installed folders and links and remove the skill from the
shared library, or exclude selected computers while keeping the library
entry. The confirmation explains when Canopy removes its own unedited
files.

Grouped installs claim the reviewed tokens from the current worker
connection before dispatch. Each worker checks the local copy again
before moving it. The dialog reports pending, successful and partial
outcomes. Linked exclusions use the home gateway’s assignment revision
and preserve its version pin.

## Verification

- Focused worker and gateway integration checks cover grouped moves,
stale revisions and tokens, concurrent claims, backup recovery, conflict
imports, existing version pins, local ownership and reconciliation after
reconnect.
- Chromium exercised the actual Skills settings page at desktop and
narrow widths with fixture BFF/SSE responses. Checks covered all four
choices, keyboard access, selected request targets, stale reports,
partial failures, recovery and linked exclusions.
- Edited-file lint and formatting and affected package typechecks ran
locally. The repository-wide gate and native builds run in CI.

The thread-mirror handshake test timed out in shard 3 and locally. Its
replacement gateway dialed while the peer listener was closed,
triggering the reconnect backoff. The fixture now opens the listener
before starting the replacement. All 20 tests in
`thread-mirrors.test.ts` passed locally with `check:tmp`.

## Copy audit

Reviewed the ten checks in docs/copy.md §8. The opening list replaces
per-directory instructions and repeated buttons with verb-led choices
and one consequence each. The removal confirmation distinguishes
user-installed folders from Canopy installations. Diagnostic paths, file
lists and recovery locations appear after a deliberate choice or
disclosure. Names wrap on narrow screens, and all choices and sync
outcomes have text labels.

Related: #1314
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