Repository navigation
fix(ui): keep the applied Workshop skill open after Retry - #205902
Conversation
|
🦞👀 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 preserves newer Workshop selections when Retry finishes late and withholds the header Restore action from an open live document. Example: Apply plum-draft while an earlier Retry is waiting.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a current-main Workshop selection race, and the revised Restore guard has no identified actionable defect. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI Workshop page owner receives Gateway inventory and document replies, maintains selection, and supplies the document header and router query. flowchart LR
A[Operator] --> B[Workshop page owner]
B --> C[Gateway Workshop methods]
C --> D[Inventory and document replies]
D --> B
B --> E[Document and header]
B --> F[Router query]
Technical reviewBest possible solution: Keep selection reconciliation in the existing page owner and derive Restore availability from the loaded archived document. Do we have a high-confidence way to reproduce the issue? Current-main reconciliation exposes the delayed-Retry ordering directly, corroborated by the inspected screenshots and reported red-before/green-after Chromium regression; this review ran no target code. Is this the best way to solve the issue? The patch repairs the existing selection and presentation owners without introducing parallel state, a public contract, or persistence changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b9a5c171709c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +18, Tests +102. Total +120 across 3 files. Added test files: 1. 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:
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 HistoryReview history (1 earlier review cycle)
Reviewed November 26, 2026, 6:51 AM ET / 11:51 UTC (Revision 2). |
|
@clawsweeper re-review Please review signed head |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…05902) * fix(ui): keep applied Workshop skill open after retry * fix(ui): bind Workshop restore to archived viewer
What Problem This Solves
Applying a draft in Skill Workshop opens the saved skill. If an earlier Retry finishes afterward, the page could switch to a different draft or return to the draft that Apply just removed. A fresh Retry could then leave the operator on the wrong item.
Why This Change Was Made
Retry now remembers which item was selected when it started. It can still update the sidebar with the inventory it received. If the selection changed while it was waiting, it leaves the current document and URL alone.
User Impact
The saved skill stays open after Apply. A stale sidebar entry also cannot offer Restore on an open live document. Restore is available on a successfully loaded saved version when there is no live copy. The operator can still select another draft, discard it, or refresh the sidebar.
Evidence
Restore after a delayed Retry
With an earlier archive under the same name, clicking the stale Restore action on the parent and on the initial navigation fix replaced the newly applied text with the old version. An independent reader found the new text in a restore backup. With a brand-new name, the initial navigation fix exposed a Restore action that the handler rejected because there were no saved versions.
The corrected header uses the open document and its listed version to decide whether to offer Restore. The mounted Chromium test failed on the exposed action and passed with the guard. Four registered-handler scenarios produced these cold-store results.
The browser used a simulated WebSocket to invoke real Workshop handlers. A separate process reopened each store. The last edit renamed a local binding, produced byte-identical normalized JSX, and passed type-aware lint on both changed files.
Apply navigation
?draft=berry-draft. The fix kept?skill=plum-notesand the saved text through both the late reply and a fresh Retry.Apply followed by a delayed Retry
These 1320 × 920 Chromium frames show the same point after Apply and Retry have both settled. The frozen fixture used registered Workshop handlers, first on the original source and then with the reviewed page change. The configuration error in both frames made Retry available.
Before. The delayed reply reopened the removed draft. Its pager says “1 of 2”, and the selected draft could no longer be loaded.
After. The saved instructions still read “Water the plum trees.” The stale inventory can still display an “Archived” notice until a fresh Retry. The recorded route stayed on
?skill=plum-notes.