Repository navigation
feat(ui): create Claws in the agent main chat - #173377
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: needs changes before merge. What this changesAdds Claw creation in an agent’s existing main chat, editable package review, and explicit publication. Example: Share the release-scout agent as @maker/release-brief.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: it adds a useful maintainer-directed creation flow, but the prior publication-lock defect remains and review failures can hide their error text. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI entry points share a connection-scoped creator flow that invokes the existing chat and draft APIs; the Gateway builds reviewed archives and authorizes their upload to ClawHub. flowchart LR
A[Agent UI actions] --> B[Creator flow]
B --> C[Existing main chat]
C --> D[Private draft]
D --> E[Package review modal]
E --> F[Gateway publication owner]
F --> G[ClawHub package]
Technical reviewBest possible solution: Keep the existing Gateway package owner, preserve the creator flow’s publication lock through settlement, and render the stored review error explicitly. Do we have a high-confidence way to reproduce the issue? Source establishes both failing paths: a review during pending publication clears the publication lock, and a pre-modal review failure renders a boolean instead of its message; no target code was executed. Is this the best way to solve the issue? The shared creator flow and existing draft APIs are appropriate; focused repairs to publication settlement and error rendering complete the implementation without another owner or public API. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 692a4d02d3ce. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +930, Tests +424, Docs +27, Config +329, Other +15. Total +1725 across 25 files. Added test files: 2. View PR surface stats
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 HistoryReview history (9 earlier review cycles; latest 8 shown)
Reviewed October 20, 2026, 4:01 AM ET / 08:01 UTC (Revision 10). |
ab69a4c to
853e003
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
6bda3e2 to
e812cfd
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
The create-claw skill invokes its bundled CLI bridge for skills and plugin inventory. Register the documented entry introduced by #173377 with Knip instead of treating it as an unused file.
* docs(skill): guide same-session Claw authoring * feat(ui): create and review Claws in the agent main chat * test(ui): retain creator publication visual proof * fix(ui): pass creator context into chat pane * fix(ui): satisfy creator safety and mock checks * fix(ui): use action cursor for Claw review controls
What Problem This Solves
Creators can already build a private Claw package, but the earlier creator UI moves them into a separate authoring session and a verbose review page. This change lets them turn the agent they are already chatting with into a shareable Claw, inspect the exact package in a compact modal, and publish only after an explicit click.
Summary
“Create a Claw” starts from the agent's right chat rail, its left-rail context menu, or agent settings. It sends a short manual skill command into that agent's existing main session. The agent prepares the proposal in the same conversation. Once ready, the creator reviews a compact, sectioned modal showing the exact archive files and declared requirements, can change the name and description or uncheck optional files/skills/plugins, and explicitly publishes. The chat then links to the ClawHub package with a pending-security-review message.
The earlier “Generate private draft” page and new/forked authoring session are removed. “Ask for changes” returns to the same chat; revised package contents require a new review. This layer uses the reviewed-package API in #173346.
Evidence
/skill create-clawchat.sendto the canonical main session, zero session creation/fork calls, review rebuilding after exclusions, exact archive bytes, explicit publication, and pending link. Added recovery tests cover Gateway replacement during creation, failed Create from Settings with retry, and failed Publish with a fresh review before retry. The creator browser suite is registered with its serial private-server owner; its ownership guard and both browser scenarios pass. Focused source tests, UI typecheck/build, formatting, and lint also pass.135ac4f408: real signed WebSocket requests to its built Gateway and a loopback HTTP publication transport fixture. The active administrator caused 1 package POST; non-admin, synthetic plugin caller, disconnected caller, and revoked device-role caller each caused 0. This proves admission at the upload boundary; the fixture is not ClawHub and does not prove registry storage or finalization.The companion catalog Featured/category change is separately reviewable in #178047.
Merge Danger
Door: Two-way for UI; Publish is an explicit public action. Blast Radius: Administrator Claws UI behind the Labs flag. No migration or deployment is included. Do not merge before prerequisite #173346 lands.