Skip to content

fix: move archived and restored Workshop skills immediately - #207138

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/opt-ui-workshop-archive-4db0
Nov 28, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/opt-ui-workshop-archive-4db0

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

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 2777a471696ef the selected filter was Active (2) with Archived (0); on 709b32236488a it 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 c8009e02cd77 has the same tree as the captured implementation.

Clean comparison

Before

Archive requested; both skills still appear under Active

After

Archived is selected; the moved skill is labeled Archiving

Annotated comparison

Before

Before: unchanged Active and Archived counts highlighted

After

After: the destination filter and updated counts highlighted

Restore, refusal and refresh recovery

Restoring: the pending skill is in Active without a guessed use count

Refused archive: the row and count return to Active and the error is visible

Accepted archive, unavailable inventory: Retry reads the list without repeating the write

Requested and co-authored by @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 28, 2026 02:14
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 82cd3641-ab27-4c92-af50-4196a502c887
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui plugin: skill-workshop size: M labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: Active remains 2 and Archived remains 0.
  • After: Active becomes 1, Archived becomes 1, and weekly-digest shows Archiving….

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A worthwhile owner-scoped fix with visible browser evidence, distinct regression coverage, and no blocking finding.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after captures exercise the Workshop UI with synthetic Gateway responses and show the changed row, counts, and pending label; this matches the scoped Control UI proof route, with supplementary recovery captures only partly inspectable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Archive and Restore leave the skill and counts in their previous lists while requests are pending.
Reason: Immediate, reversible feedback removes visible uncertainty without changing storage, permissions, configuration, or Gateway contracts; maintainer-associated authorship supplies direction.

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: c8009e02cd77b733028605a384b2734cb7e97373

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Workshop async presentation and accepted snapshots keeps the original intent (874e463: Present async reads and actions through Solid while keeping synchronous admission and accepted snapshots in the plain Workshop owner.)
  • Workshop start-page membership and counts keeps the original intent (e6d4415: Provide separate Drafts, History, and Learned skills views with searchable active and archived inventories.)
  • Retry selection and safe Restore availability keeps the original intent (ea27b21: Prevent delayed Retry from replacing newer selection or exposing Restore against newly applied live content.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit e6d4415 adds ui/src/pages/skill-workshop/start-page.tsx:44 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e6d441549fe2; files: ui/src/pages/skill-workshop/start-page.tsx)
  • Peter Steinberger: Raw commit 874e463 adds ui/src/pages/skill-workshop/skill-workshop-page.tsx:500 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 874e463653eb; files: ui/src/pages/skill-workshop/skill-workshop-page.tsx)
  • Vincent Koc: Raw commit ea27b21 adds ui/src/pages/skill-workshop/skill-workshop-page.tsx:175 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ea27b2143ecd; files: ui/src/pages/skill-workshop/skill-workshop-page.tsx)

PR surface

Source +136, Tests +102, Docs +2. Total +240 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 264 128 +136
Tests 1 102 0 +102
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 369 129 +240

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 9:32 PM ET / November 28, 2026, 02:32 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 06:16
@vyctorbrzezowski
vyctorbrzezowski merged commit b32e655 into main Nov 28, 2026
103 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/opt-ui-workshop-archive-4db0 branch November 28, 2026 06:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. plugin: skill-workshop proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants