Repository navigation
fix: move archived and restored Workshop skills immediately - #207138
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 82cd3641-ab27-4c92-af50-4196a502c887
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: passed. What this changesThis PR immediately moves archived or restored skills between Workshop lists, then reconciles the result with the Gateway. Example: Archive weekly-digest while two skills are active and the Gateway reply is delayed.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses delayed Workshop feedback with a focused presentation change, and no definite introduced bug was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI Workshop owner sends Gateway mutations and inventory reads; its views present skill membership, counts, pending feedback, and recovery controls. flowchart LR
A[Archive or Restore control] --> B[Workshop page owner]
B --> C[Pending membership presentation]
C --> D[Lists and counts]
B --> E[Gateway mutation]
E --> F[Inventory reconciliation]
F --> B
Technical reviewBest possible solution: Keep temporary membership feedback in the existing Workshop owner while the Gateway supplies confirmed inventory and version facts. Do we have a high-confidence way to reproduce the issue? Current main derives membership and counts from the inventory refreshed after mutation settlement; the supplied browser comparison visibly demonstrates the resulting delay. Is this the best way to solve the issue? The approach fits the existing owner: it projects the predictable membership move, preserves authoritative metadata, and reconciles refusal or refresh failure without repeating an accepted write. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e85cda36996c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +136, Tests +102, Docs +2. Total +240 across 8 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 27, 2026, 9:32 PM ET / November 28, 2026, 02:32 UTC. |
…#207138) * fix: move archived and restored Workshop skills immediately Co-authored-by: vyctorbrzezowski <[email protected]> * fix: move archived and restored Workshop skills immediately Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 82cd3641-ab27-4c92-af50-4196a502c887 --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
After someone clicked Archive or Restore in Skill Workshop, returning to Learned skills still showed the skill in its old list until the Gateway finished both the write and the next inventory read. The counts did not change either.
User Impact
The row and both counts move immediately. The row says Archiving… or Restoring… until confirmation. A refusal restores the row and explains why; a successful write followed by an unreadable inventory offers Retry rather than inviting the person to send the write again. Opening another skill while waiting does not take the person back to the first one. No migration is required.
Why This Change Was Made
The destination list is known on click, but saved version IDs, usage and history are not. The Workshop moves the existing row for presentation; the Gateway still supplies those facts. Applying a draft, undoing history and restoring a specific content version retain their existing behavior.
Evidence
In Chromium, clicked Archive and returned to Learned skills with the Gateway response held: on
2777a471696efthe selected filter was Active (2) with Archived (0); on709b32236488ait was Archived (1) with Active (1) and the row still marked Archiving. The same real controls were exercised for Restore, refusal, confirmation, keyboard focus, changing selection, and Retry after a failed inventory refresh. The Gateway responses and skill data were synthetic; the comparison used a 1160 × 770 viewport with reduced motion. No live skills were changed.47 focused Workshop tests passed, including a delayed pre-archive Retry. The UI typecheck and changed-file lint passed. No broad CI or end-to-end suite was run locally. Published head
c8009e02cd77has the same tree as the captured implementation.Clean comparison
Before
After
Annotated comparison
Before
After
Restore, refusal and refresh recovery
Requested and co-authored by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by