Skip to content

feat(message): recommend one exact ClawHub plugin in chat - #198065

Merged
Patrick-Erichsen merged 12 commits into
mainfrom
clawhub-exact-plugin-card
Nov 14, 2026
Merged

Patrick-Erichsen merged 12 commits into
mainfrom
clawhub-exact-plugin-card

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Template setup needs to recommend the exact plugin its author named, rather than a fuzzy search result. Server-started setup can also publish a card before live chat adopts its run ID; that card was saved but dropped from the live view.

User Impact

Agents can show one exact ClawHub plugin card by package name, including during server-started setup without reloading. Official plugins keep Install; community plugins offer View details for normal review. Unknown packages show no card. Verified cards no longer add a redundant generated status caption; explicit caller text and lookup errors remain visible.

Why This Change Was Made

Adds an exact-package option alongside existing ClawHub search, keeps intermediate card publication non-final when requested, and admits only native sequenced producer-owned intermediate replies before local run adoption. This is the foundation of the chat-based Template Add stack.

Evidence

  • Initial exact-card layer: 61 focused tests pass; five integration cases fail without the production change.
  • Live admission repair: recorded-row regression changes zero cards to one; repository-standard integrated runner passes 65/65 across four files. UI typecheck and focused lint/format pass on that earlier snapshot.
  • Real full-stack before/after and View details proof: real model, Travel Copilot 0.2.8, isolated Gateway. One community card appears in the original chat without reload, and View details opens the correct review page. No plugin installation or enablement occurs.
  • Pending chat 120ms; durable admission event 6.28s; first visible reply 56.5s. These are different timing boundaries.
  • The recorder preserved a stale-selector harness error after successful live-card assertions; screenshots confirm navigation. Intermittent screencast-size corruption means clean final-head video proof is still pending, not claimed complete.
  • Production Gateways were unchanged. Existing screenshots cover the earlier live-card repair, not fresh final-stack installation or clean final-head video.

Repair qualification at c1c471f63b56ad6e5908058d4bebf4e87e080454

The composition regression uses the supported .node.test.tsx lane and a narrowly scoped profile mock. Live admission and card decoding retain producer ownership, strict finality, imported-row exclusions, and serialized card field order. One required main integration updates the fixture to the current renderer API; no further main refresh is included merely for age.

  • The complete strict paired UI performance command passes against 6d5e2dfb1b8919386abeb7442fa9152cdffc1485: generated document 14,027 → 14,017 bytes, below its unchanged 14,026-byte cap. Chat JS is 1,315,225 → 1,314,978 bytes (−247); 21 requests remain 21. CSS bytes and its three requests are unchanged. Solid's native named-export lazy option removes the redundant promise/export adapter. No budgets were raised or generated files hand-edited.
  • Affected card/lazy tests pass 26/26, including the current listing while its body is pending. The current-renderer composition proof passes all three history/live/live-before-adoption cases. Earlier unchanged reader/admission/projection/boundary proof remains recorded separately: 97 passing cases.
  • The owning line-cap gate caught outbound send growing from 700 to 702 counted lines. Moving its unchanged attachment-type normalizer into the existing payload-normalization module restores the gate without removing behavior. Existing payload contracts pass 21/21, and execution/accepted-result tests pass 56/56 across three files. Their multi-lane wrapper reached its 120-second bound before completing the final message-tool integration lane: 77 passing cases, not a full command pass.
  • Line-cap and first-party mock-export ratchets pass. The isolation reason now sits immediately above its mock. The supported 116-line allocation explains independent transport/projection/admission/history/live/lazy boundaries; no assertions were removed. Four-file syntax lint, formatting, and diff checks pass.
  • The delegated changed-check attempt reached its 150-second local-host bound after reporting the two repaired gate details. Narrow type-aware lint reached package declaration generation but hit its 90-second bound without source diagnostics. Full canonical compiler, lint, architecture and exact-head hosted checks remain required; they are not reported green.
  • All five observed UI failures in prior PR CI match scheduled main by complete test name, assertion values and source location. The comparison uses actual tested merge b42967fd7c785e798140b05275fd0eb1633e5b88, not only the PR head. Failing test files, responsive styles, picker/view/controller helpers, test configuration and lockfile match; this attributes those observed signatures, not every transitive input or the new head's full CI.
  • Caption repair retains paired handler proof: three unexpected-caption failures become 10/10 passing integration cases; 87 outbound/message cases passed on that saved patch. Final shipped caption proof and final-stack real installation/video remain open. No permissions, consent or installation policy changed.

Initial exact-card renderer comparison (mocked Gateway)

Before: the community card is missing

After: the exact community card offers View details

Real live-chat repair comparison (isolated full stack)

Before: persisted card missing live After: card visible without reload
Before After

View details opens the ordinary Travel Themes review page

The card payload reader required official: true, so a Gateway-authored card
for a community plugin was dropped before it reached the chat. Plugin cards
now carry the registry's official flag; skill cards stay official-only.

The loading placeholder shows the official badge only for official cards.
The loaded card already rechecks the Gateway's catalog answer, shows no badge
for a community plugin, and offers View details instead of Install.
clawhub now takes either query (search, unchanged) or plugin, the exact
ClawHub package name. The exact form looks up that one package, never falls
back to search, and shows its existing card. A name ClawHub does not know,
or that is not a plugin, returns an explanation and shows no card.

Search still returns official plugins and skills only. An exactly named
community plugin is shown with the registry's own official flag.
@clawsweeper

clawsweeper Bot commented Nov 13, 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 agents Agent runtime and tooling size: M labels Nov 13, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds exact-package ClawHub recommendations, displays intermediate cards before run adoption, and removes generated status captions from successful cards.

Example: Template setup recommends openclaw-travel-themes.

  • Before: Official-only search cannot show that community plugin, and an early persisted card can be absent from live chat.
  • After: The exact Travel Themes card appears without reloading and offers View details without an official badge.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent implementation with substantive live evidence for the central capability and a narrow remaining behavior-proof gap.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Template setup cannot reliably show the exact declared community plugin in the original live conversation.
Reason: Exact identity is materially different from fuzzy official-only search, and the maintainer-authored direction preserves community-plugin review and existing installation policy.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it supplies a useful missing capability, preserves existing installation boundaries, and has no definite introduced correctness or security finding.

Priority: P2
Reviewed head: c1c471f63b56ad6e5908058d4bebf4e87e080454

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide a redacted shipped-Control-UI capture or live output showing a card-only send without the generated status caption; the inspected live screenshots still contain that caption.
Agent review details

How this fits together

The message tool resolves catalog identities and installation facts into persisted assistant display content, which Control UI admits and renders using its existing plugin-card and navigation owners.

flowchart LR
  A[Agent message tool] --> B[Recommendation resolver]
  C[ClawHub catalog] --> B
  D[Installed plugin inventory] --> B
  B --> E[Source reply persistence]
  E --> F[Chat projection and admission]
  F --> G[Plugin card and details]
Loading

Technical review

Best possible solution:

Retain the existing resolver, persistence, admission, and card owners with exact lookup and unchanged installation review.

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

Current-main source establishes both limitations: recommendation requests require a query, and plugin-card decoding requires official:true; the supplied live comparison also documents the pre-adoption display failure.

Is this the best way to solve the issue?

The smallest complete change extends exact lookup and decoding at their existing owners, admits only the evidenced intermediate reply shape, and reuses ordinary plugin details and installation review.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Exact recommendations and community-card decoding changes intended behavior with a stated reason (cfbbbb0: Unified discovery introduced Gateway-verified official recommendations rather than model-assigned catalog facts.)
  • Dependency-free shared card reader keeps the original intent (9ff9472: Keep validation libraries out of chat boot while preserving bounded decoding and persisted semantics.)
  • Live transcript admission and stream retirement keeps the original intent (fix(ui): avoid duplicate CLI replies during transcript persistence #190655: Producer-owned persisted replies replace their matching stream without ending the active run or removing unrelated commentary.)
  • Explicit media captions keeps the original intent (2959cfc: Preserve caller captions rather than replacing them with generated installation-status text.)
  • Lazy card presentation keeps the original intent (d33ff24: Keep the metadata shell usable while loading the status body, with installation controls governed by current catalog status.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +58, Tests +515, Docs +17, Other +5. Total +595 across 19 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 8 228 170 +58
Tests 8 517 2 +515
Docs 1 17 0 +17
Config 0 0 0 0
Generated 0 0 0 0
Other 2 6 1 +5
Total 19 768 173 +595

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.

Review metrics

Metric Value Why it matters
Production versus tests Production +228/-170; tests +517/-2 The net production growth extends existing owners; test growth covers distinct tool, projection, admission, rendering, and lazy-loading contracts.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Exact plugin recommendations and early live-card delivery improve a bounded chat workflow without an established urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 (3 earlier review cycles)
  • reviewed 2026-11-13T03:53:37.013Z sha b7f52ae :: needs maintainer review before merge. :: none
  • reviewed 2026-11-13T04:21:44.068Z sha 69502dd :: needs changes before merge. :: [P2] Run the Gateway-composition test in the supported Node lane | [P2] Keep the chat boot bundle within its enforced growth allowance
  • reviewed 2026-11-14T02:19:53.276Z sha d7f2bf5 :: needs changes before merge. :: none

Reviewed November 13, 2026, 9:47 PM ET / November 14, 2026, 02:47 UTC (Revision 4).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Real live-card repair and proof

The exact card was correctly persisted but rejected by the live UI before it adopted the server-started setup run. Commit 69502dd narrowly admits sequenced, native, producer-owned non-final message-tool source replies without adopting the run or clearing its stream. Imported, conflicting, correlation-only and terminal rows remain excluded.

Actual-row regression: 0 cards before, 1 correct community card after. Repository-standard integrated runner: 65/65 across four files; focused UI typecheck/lint/format passed.

Real Control UI + real model + real Travel Copilot 0.2.8, isolated Gateway with Expedia installed but disabled, combined stack candidate 497ecddf8e96f8d56c1c260b0c4c27b3bb34ac3b:

  • Pending chat visible at 120ms; durable agent-admitted event at 6.28s (not a sub-second durable-admission claim).
  • Add completed at about 56.3s; first visible reply at 56.5s. No plan/review request.
  • One Travel Themes card, @jjjhenriksen, no official badge, View details, on the original page without reload.
  • View details visibly opened the normal Travel Themes review page. No install/enable occurred; Expedia remained disabled; Travel Themes remained uninstalled.

Paired real live-chat captures (same viewport crop; seeded test state, not production):

Before: persisted card missing live After: card visible without reload
Before After

View details opens the ordinary review page

Limitations: the recorder preserved outcome=harness-error because its post-click assertion used a stale ID selector; the screenshot confirms correct navigation, and the selector is corrected outside source. Video inspection found intermittent Chromium screencast-size corruption during screenshots, so that recording is not offered as clean video proof. Final-head full-stack video remains open after the creation CI repairs. No production Gateways changed.

travel-candidate-live

card

details

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 13, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Real Template Add and explicit plugin-install proof

Isolated ordinary-process Gateway, real provider, production Control UI build at 4a4f2f1c80f9f6bbad814692c55b5445fcafc638 (the current actions head adds only the tested Install-label assertion correction).

  • Add → editable chat: 75.4 ms; first visible agent output: 16.906 s; settled setup: 34.469 s. One run, not an average.
  • The live Travel Themes recommendation appears without reload, generated card-status narration, or Dismiss. Its sole Install action opens the canonical details page and performs no installation.
  • A separate explicit Install from that details page succeeds. The installed page shows version 0.1.0, Disable and Uninstall. The recommendation itself never installed or enabled the plugin.
  • This is a theme-only package and needed no capability-consent dialog. It does not prove broader capability-consent behavior.

The attached real-system images show the live recommendation, uninstalled details, and explicitly installed result. The video records the same Add flow; the bottom composer/model selector is cropped for publication. The original captures are retained. Existing paired before/after proof remains linked above.

Current-head UI failures were separately compared against scheduled main run 43540514362, jobs 132280252586 and 132280252608: all five full leaf names, source sites and assertion values match, and all three failing test files have identical blobs and are outside this PR’s diff. CI is red, not green; native inherited-failure admission and remaining stack-level input/recovery evidence are separate gates.

live-card

details-before-install

explicitly-installed

template-add.mp4

@Patrick-Erichsen
Patrick-Erichsen merged commit 6b8bdec into main Nov 14, 2026
140 of 145 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the clawhub-exact-plugin-card branch November 14, 2026 06:22
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…98065)

* feat(clawhub): let chat plugin cards represent community plugins

The card payload reader required official: true, so a Gateway-authored card
for a community plugin was dropped before it reached the chat. Plugin cards
now carry the registry's official flag; skill cards stay official-only.

The loading placeholder shows the official badge only for official cards.
The loaded card already rechecks the Gateway's catalog answer, shows no badge
for a community plugin, and offers View details instead of Install.

* feat(message): show one exact ClawHub plugin card by package name

clawhub now takes either query (search, unchanged) or plugin, the exact
ClawHub package name. The exact form looks up that one package, never falls
back to search, and shows its existing card. A name ClawHub does not know,
or that is not a plugin, returns an explanation and shows no card.

Search still returns official plugins and skills only. An exactly named
community plugin is shown with the registry's own official flag.

* docs(control-ui): document exact ClawHub plugin cards

* fix(chat): render source reply cards before run adoption

* test(chat): classify producer display regression as Node integration

* fix(message): send ClawHub cards without generated captions

* perf(chat): consolidate source reply admission and card decoding

* test(chat): document independent card delivery proof boundaries

* refactor(chat): use native named-export lazy card loading

* refactor(outbound): keep attachment normalization in payload owner

* test(chat): attach profile isolation reason to the mock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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.

1 participant