Skip to content

feat: show Claw contents and open new agent chat after Add - #171600

Merged
Patrick-Erichsen merged 9 commits into
mainfrom
codex/claw-1093-add-ui
Oct 15, 2026
Merged

Patrick-Erichsen merged 9 commits into
mainfrom
codex/claw-1093-add-ui

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Claw catalog entries need a readable detail page and an immediate handoff into the agent created by Add.

User Impact

The Agents catalog shows Claw contents in the same capability-row pattern as Plugins. Add creates a new numbered agent, opens its chat, and sends ", what can you do?" without a separate installed-Claw lifecycle or install-review screen. Exceptional trust or dependency warnings still ask for explicit consent.

Why This Change Was Made

Solid catalog views render the published package contents before Add. The Add control and chat handoff use the existing Control UI state and Gateway result; empty capability sections stay hidden. This PR follows merged #171622 and core #171623.

Evidence

  • Real isolated-preview detail before Add and the resulting chat after Add are attached below. The 34-second recording shows the full interaction and a substantive agent reply. These captures are from pre-main-merge head 5666882.
  • On exact head 0a5f7124146, focused Agents/Claws unit tests pass 13/13, UI production typecheck and all UI test-typecheck shards pass, and the production UI build succeeds.
  • On that same head, the bundled browser E2E passes 5/5: Claw contents with no empty sections at mobile, tablet, laptop, and desktop widths, plus Add-to-chat with the initial message even when setup is pending.
  • The core branch's real-Gateway approval-routing suite passed 4/4 on an earlier head. The precise authority test also passed on October 14 (terminal result below): it exercises administrator Add, read-only rejection, and revocation before plugin persistence. The authority test could not be repeated here: the managed-Gateway artifact fence refused local E2E preparation, and isolated Testbox refused before allocation because Blacksmith login is unavailable. This is prior-head execution evidence, not an exact-head authority rerun.
✓ src/gateway/server-claws-add-authority.e2e.test.ts > Claw Add dependency consent authority (real Gateway RPC) > publishes for admin, rejects read-only, and fences a revoked admin before effect
Test Files  1 passed (1)
Tests       1 passed (1)
Duration    45.52s
  • This stack fixes the hosted sidebar fixture, import cycle, and formatting findings. On UI head 3e7a6393fbf after an earlier main integration, three targeted UI suites passed 161/161. The import-cycle check, scoped lint, and formatting passed on UI repair commit 4c0c95a094c; 8bcbf9c1b09 then removed an unrelated Lobster documentation diff.
  • Current UI head dccd989ea56 restacks on core c1acd072f5b, which includes the merged cron, CI planner, SQLite admission, and chat E2E baseline repairs from main. Its Agents/Claws unit tests pass 13/13 and bundled browser E2E passes 5/5 across four viewport sizes and Add-to-chat. UI production and all UI test typechecks, plus repo-wide formatting, passed on the prior UI head; hosted CI is required for this refreshed head.
  • Exact-head live recording was not repeated: the local custom OCM supervisor failed an isolation preflight, so rebinding the preview would risk unrelated gateways. The original supervisor and both gateways were restored and verified healthy. Hosted CI and current-head review remain required.

Claw detail before Add

New agent chat after Add

Add-to-chat recording: https://github.com/user-attachments/assets/cdead075-22f7-406a-981f-004567278622

Merge Danger

Door: Two-way. Blast Radius: Agents catalog and chat handoff. Requires merged #171622 and #171623 beneath this PR.

@clawsweeper

clawsweeper Bot commented Oct 14, 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 gateway Gateway runtime plugin: file-transfer size: XL labels Oct 14, 2026
@Patrick-Erichsen Patrick-Erichsen changed the title Show Claw catalog details and hand off Add to agent chat feat: show Claw contents and open new agent chat after Add Oct 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 14, 2026
@clawsweeper

clawsweeper Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Adds Claw contents pages, dependency consent, a Labs control, and automatic chat handoff after Add.

Example: Add the Research briefing Claw.

  • Before: Agents has no Claw contents page with an Add-to-chat flow.
  • After: Review its workspace files, select Add, and enter the new agent’s chat with “Research briefing 8, what can you do?” already sent.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent implementation with inspected user-visible proof and supplied authority-boundary execution evidence; stack and CI landing requirements remain separate.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected earlier-head screenshots show real Claw contents and the resulting new-agent reply; supplied terminal output reports the production Gateway authority scenario passing for administrator installation, read-only rejection, and revocation before persistence. The current-head authority rerun limitation is explicitly disclosed and is not missing contributor evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users cannot inspect a Claw’s contents and immediately start chatting with the agent created by Add.
Reason: Provides a coherent discovery-to-use flow; the supplied maintainer-authored classification establishes direction without another product approval.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this PR adds a useful catalog-to-chat flow absent from current main. No concrete introduced defect was found, and the supplied authority-test result addresses the previous review’s proof request.

Priority: P2
Reviewed head: 8bcbf9c1b094b409f09968df12dacba89b6ff232

Before merge

  • Complete next step - Land the open core Add dependency before landing this UI consumer.

Findings

None.

Agent review details

How this fits together

The Control UI consumes Gateway catalog and Add methods, displays package contents and consent requests, then passes the created agent to existing session navigation and chat owners.

flowchart LR
  A[Agents page] --> B[Claw catalog and contents]
  B --> C[Dependency consent]
  C --> D[Gateway Add owner]
  D --> E[Ordinary agent and resources]
  E --> F[Existing chat handoff]
Loading

Technical review

Best possible solution:

Land this UI on the ordinary-agent Add foundation while preserving Gateway-owned authorization, exceptional consent, and existing chat navigation.

Do we have a high-confidence way to reproduce the issue?

This is a feature addition; source comparison establishes the missing main-branch flow, and supplied screenshots demonstrate its resulting behavior.

Is this the best way to solve the issue?

The implementation appropriately reuses Gateway catalog/Add ownership, shared plugin presentation, and existing session handoff rather than introducing another installation lifecycle.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5f604ddd8095.

Provenance checked

  • Claw lifecycle documentation changes intended behavior with a stated reason (Add plan-first Claw status and remove #102296: The earlier lifecycle recorded ownership and used plan-first status, update, and removal; this PR explicitly documents the one-way Add replacement implemented by its core dependency.)
  • Agents Home renderer and state ownership keeps the original intent (f4d601a: The Solid migration preserved roster behavior and synchronous domain owners; the new UI retains those owners and adds scoped presentation state.)
  • Shared plugin presentation keeps the original intent (8304c4b: The plugin Solid migration preserved existing rendering contracts; shared publisher rendering and optional action labels retain existing caller behavior.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +2379, Tests +1005, Docs -407. Total +2977 across 49 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 27 2403 24 +2379
Tests 10 1007 2 +1005
Docs 12 174 581 -407
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 49 3584 607 +2977

Review metrics

Metric Value Why it matters
Labs controls 1 additional control Exposes gateway.controlUi.experimental.claws through the existing Labs configuration owner.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🧂 unranked krab.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 security-boundary: Current PR review selected no merge-risk labels.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: Useful opt-in discovery and onboarding improvement with limited impact outside the Claws flow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit. Replaced prior rating: 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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.

History

Review history (7 earlier review cycles)
  • reviewed 2026-10-14T03:08:11.102Z sha 9ad65af272a2d2178367a34059a3b00cfce9aaa0 :: needs real behavior proof before merge. :: [P2] Refresh the selected package when the detail route changes | [P3] Preserve View status for failures that cannot be retried | [P3] Preserve the published preview anchor
  • reviewed 2026-10-14T03:23:33.286Z sha 45777f95e7147feb21bac38307aa4146e8189c06 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-14T04:15:52.305Z sha 75e0a2afc74c5f0826a13cb6b50fad80f92f9b44 :: needs real behavior proof before merge. :: [P2] Reset pending Add state when the package route changes | [P3] Use the defined muted color token | [P3] Apply the existing cursor contract to the card button
  • reviewed 2026-10-14T04:34:27.477Z sha cb448912efab731b05e3fbf373a8607af50db6c3 :: needs real behavior proof before merge. :: [P2] Reset pending Add state when the package route changes | [P3] Use the defined muted color token | [P3] Apply the existing cursor contract to the card button
  • reviewed 2026-10-14T05:02:42.055Z sha a8022ac :: needs real behavior proof before merge. :: [P2] Reset pending Add state when the package route changes | [P3] Use the defined muted color token | [P3] Apply the existing cursor contract to the card button
  • reviewed 2026-10-15T02:56:44.248Z sha 3e7a639 :: needs real behavior proof before merge. :: [P2] Restore the implemented Lobster approval contract
  • reviewed 2026-10-15T03:32:00.107Z sha 8bcbf9c :: needs real behavior proof before merge. :: none

Reviewed October 14, 2026, 11:42 PM ET / October 15, 2026, 03:42 UTC (Revision 8).

@Patrick-Erichsen
Patrick-Erichsen removed this pull request from stack #171602 October 14, 2026 03:15
@Patrick-Erichsen
Patrick-Erichsen changed the base branch from codex/claw-1093-add-core to codex/claw-1093-add-core-v2 October 14, 2026 03:15
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review October 14, 2026 03:17
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-1093-add-core-v2 branch from 8dc26b1 to 37fdc11 Compare October 14, 2026 03:37
@Patrick-Erichsen
Patrick-Erichsen removed this pull request from stack #171624 October 14, 2026 03:40
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-1093-add-core-v2 branch from 37fdc11 to 30c4a50 Compare October 14, 2026 03:46
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-1093-add-core-v2 branch from 30c4a50 to b8098dd Compare October 14, 2026 03:53
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/claw-1093-add-ui branch 2 times, most recently from 8bd4a8a to 75e0a2a Compare October 14, 2026 03:59
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 gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: file-transfer proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant