Skip to content

fix(canvas): recognize Pick and polish plugin commands - #404

Merged
lukasoppermann merged 5 commits into
mainfrom
lukasoppermann-pick-and-polish-discovery
Nov 26, 2026
Merged

lukasoppermann merged 5 commits into
mainfrom
lukasoppermann-pick-and-polish-discovery

Conversation

@lukasoppermann

@lukasoppermann lukasoppermann commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: b2dc51088c107b212f905d1dfffe1ec11bb69de9

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Formatting, lint, typecheck, build and generated asset freshness checks pass.
↑ All 539 distributed extension tests and 1729 frontend tests pass; regressions cover persistent counts, zero-count removal, failed dispatch and unchanged notes after a null catalog.
↑ Unchanged UI has browser verification and screenshots; benchmark session verified user-triggered qualified dispatch and complete four-thread result delivery at revision 088e3e4.
↓ Missing-discovery fallback and null-catalog rejection have automated coverage, not live session verification.
Diagnosis confidence 9.5/10 ↑ The observed enabled skill catalog reproduces the exact 409 with the existing matcher.
↑ The previous visibility condition and failing regression demonstrate why the pill disappears outside picking.
↑ The null-catalog regression failed before the fix and passes with response validation separated from absent-RPC fallback.
Evidence fit 9.5/10 ↑ Installed discovery code rejects the observed qualified command; the persistence regression matches the requested behavior.
↑ Benchmark session reports the same qualified command now loads and completes without the unavailable-skill error.
↓ Original catalog was collected through a separate connection after provider reload; null catalogs were reproduced in tests rather than observed live.

Why

Pick & polish reports its skill unavailable even when enabled. The runtime returns name: replica-pick-and-polish with commandName: replica-prototype:replica-pick-and-polish; the existing matcher prefers the command but compares it only with the bare name.

The green Fix pill also disappears when users stop selecting targets, even if saved requests still need to be sent for fixing.

What changes

Matches the known bare or qualified skill identity and uses the runtime's qualified invocation. Missing discovery sends the complete bundled procedure, like publishing. Explicitly disabled skills, malformed catalogs (including null responses) and failed discovery still block preparation without changing saved notes. Queued dispatch rechecks discovery; existing batch, ownership, checkout and result safeguards remain unchanged. Updates the guides, includes regenerated runtime JavaScript, and bumps the plugin to the approved patch version 1.10.2.

Keeps the green Fix pill and its pending-request count visible after selection stops and with either sidebar open or closed. It disappears only when no unsent requests remain. Conflicting edits temporarily disable it; queueing later requests while earlier fixes run still works. Reuses the existing stories for the preview, Comments sidebar and Notes sidebar; no obsolete or duplicate examples were introduced.

The missing-discovery fallback and null-catalog rejection have automated coverage but have not been exercised in a live session.

Storybook screenshots

Prototype canvas/Publication example/Comments And Pick And Polish — light, 1280 × 720

Prototype canvas/Publication example/Comments With Pick And Polish Sidebar — light, 1280 × 720

Prototype canvas/Publication example/Pick And Polish Notes Sidebar — light, 1280 × 720

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The committed runtime still uses the old dispatch logic, leaving the command broken, and a null skills-list response incorrectly triggers fallback dispatch instead of being rejected.

2 open issues
What changed in this PR

This PR updates the canvas plugin’s Pick & polish handoff to recognize qualified skill commands and provide the bundled procedure when discovery is unavailable.

Changes:

  • Updates skill matching, fallback preparation, and queued dispatch in the TypeScript source.
  • Adds regression coverage for qualified commands, fallback behavior, invalid catalogs, and disabled queued skills.
  • Documents the revised handoff and bumps the plugin version to 1.10.2.
File Description
hub/​docs/​prototype-canvas.md Documents discovery, fallback, and preparation safeguards.
.github/​extensions/​replica-prototype/​README.md Updates the plugin’s Pick & polish guidance.
.github/​extensions/​replica-prototype/​plugin.json Bumps the plugin version to 1.10.2.
.github/​extensions/​replica-prototype/​improvement-notes/​index.test.mjs Adds discovery and queued-dispatch regression cases.
.github/​extensions/​replica-prototype/​improvement-notes/​index.mts Implements qualified-command matching and bundled fallback instructions.

Review effort: Balanced (adaptive)

lukasoppermann and others added 2 commits November 26, 2026 12:30
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@lukasoppermann
lukasoppermann marked this pull request as ready for review November 26, 2026 11:57
@lukasoppermann
lukasoppermann requested review from a team and nshki as code owners November 26, 2026 11:57
@lukasoppermann
lukasoppermann merged commit 04fa909 into main Nov 26, 2026
41 checks passed
@lukasoppermann
lukasoppermann deleted the lukasoppermann-pick-and-polish-discovery branch November 26, 2026 12:24
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.

2 participants