Skip to content

feat(environment): simplify skill sync conflicts - #1412

Merged
nixuuu merged 2 commits into
devfrom
feat/skill-conflict-resolution-ui
Nov 28, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/skill-conflict-resolution-ui

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

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

@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 09:15
The replacement dials during start. If the other listener is still closed, both sides can enter the 30-second reconnect backoff and exhaust the test’s 20-second wait. Bring the listener up first and keep the existing checks for reachability and mirror catch-up.
@nixuuu
nixuuu merged commit 9b71f6f into dev Nov 28, 2026
25 checks passed
@nixuuu
nixuuu deleted the feat/skill-conflict-resolution-ui branch November 28, 2026 09:30
nixuuu added a commit that referenced this pull request Nov 29, 2026
## Changes

- Scope diagnostics assertions to their own SQL operations. Wait for the
gateway to record the active turn before exercising bot connector rules.
- Keep the checkout-alias lock fixture running through the rejection
assertion. Track unique start commands and their acknowledgements after
a worker restart, including when the link redelivers a command.
- Preinstall and cache the pinned Electron binary before the native
window test. Retry the install step on failure. Use the artifact
downloader with interrupted-transfer retry and digest validation for
native binaries.
- List the first failed step and Bun test names from attempt 1. Report
missing log downloads explicitly.

The old skill-preview and linked-mirror failures already have fixes on
`dev`. The earlier notch timeout also has separate launch and behavior
budgets. This PR moves the Electron download out of that test's setup.
#1341, #1412, #1347

## Verification

- `check:tmp` on the four affected integration files and the recovery
script test passed all 36 tests. The four flaky cases and two recovery
cases also passed 12 consecutive runs each.
- Focused lint, formatting, Bash syntax and diff checks passed.
Replaying the reporter against a real failed test and a real artifact
failure produced the expected entries without posting comments.
- PR CI covers the full gate and the native macOS/Windows checks. The
automatic recovery workflow itself runs after Push CI on protected
branches.

Closes #1346
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