Skip to content

feat(ui): let plugins offer feedback on failed replies - #200496

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/marine-barnacle-5
Nov 17, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/marine-barnacle-5

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Reporting plugins cannot put their own action or receipt beside a failed reply: the failure row always links to the generic GitHub bug form. Replacing the whole transcript just to customize that one action is too broad.

User Impact

Native UI plugins can offer feedback for a specific failed reply while OpenClaw keeps the original error details, copy button, and recovery controls. Without a selected plugin replacement—or if its view fails—the existing Report a bug link remains available.

This is the generic host seam only. It does not enable automatic reporting, send diagnostics, or change a reporting plugin's privacy or delivery policy. No configuration migration is required.

Why This Change Was Made

Reuse the existing replacement-view API for a narrow run-failure-feedback slot. It receives the pane's agent/session and the exact displayed failed run, without appending a chat message or starting a model turn.

The native notice branch owns the failed-run lifetime; the unchanged shared plugin view retains agent/session scoping, fallback, and teardown. Same-run summary and repeat-count updates preserve the notice. No new service, store, transcript format, or reporting policy was added. Production code grows by 33 net lines.

Evidence

  • The component regressions fail on the original base because the slot is absent. Feedback, failure-notice, shared-view lifecycle and surface suites pass: 32/32, 3.46 seconds wall time. They cover same-run open details, repeat updates, run/session retirement and fallback. Production UI, chat/API and browser-chat TypeScript, focused lint/format and the lifecycle guard pass.
  • Independent P0–P2 review and local autoreview of the complete 96763b9 → 4e38c9a candidate found no actionable findings. Published 0afd48e source is byte-identical. The local ClawSweeper checkout was dirty/ambiguous; the selected fallback completed with hosted review of 0afd48e: no findings, with implemented browser proof inspected.
  • Natural scoped PR CI and its required-check rollup have passed for this head. The native exact-head watcher completed GREEN / SUCCESS, zero pending checks. Preflight confirms tested merge ref 79874ace1e1e9447b80e2881be3399bbdc785d3d combines 0afd48e with main 5ce80ebd. No gate or limit was changed.
  • Additional full-matrix validation passed build-artifacts, all 13 UI browser shards and performance. The build selected 0afd48e, independently of the workflow-ref SHA. Chat boot is 1,324,499 → 1,324,745 gzip bytes (+246; cap 1,324,779); largest ordinary JS is 558.8 KiB (limit 559.0). This repairs the prior-head +572-byte budget regression without raising limits.
  • That additional full-matrix run is not wholly green. Its dependency failure matches scheduled main: two unused exports in unchanged src/config/sessions/paths.ts. Its full-101-package CLI timeout is the existing fixture issue addressed on main by #200490. Worker attachment/context-engine timeouts and a cron command-timeout expectation mismatch remain recorded with unestablished cause; no passing replay, baseline attribution or fix is claimed for them. This change edits no backend runtime, dependency lock, runner configuration or those fixtures.
  • Clean and annotated before/after screenshots show actual source-served Control UI on base 96763b9 and candidate 0afd48e, with matched synthetic failed-run data, light theme and viewport. Each bounded replay passed: no page errors, zero chat.send or agent calls, exact displayed-run scope, preserved error details and restored built-in reporting after disabling the plugin. Uploaded hashes and PR rendering were verified; the clean pair was delivered to the originating conversation.
  • The browser proof uses actual native plugin APIs with synthetic Gateway I/O—not real report submissions or the Nerfed backend. Remote preparation did not reach tests; bounded source-only capture used no production Gateway or model. The earlier main-tier request was refused before product checks; no admission rule was bypassed.

Requested and approved by @vincentkoc.

Work sessions

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

Worked on by

roboclaw-bot and others added 3 commits November 17, 2026 08:07
Keep the original error details and recovery controls while allowing a run-scoped native plugin action or virtual receipt in the feedback slot.

Co-authored-by: vincentkoc <[email protected]>
Reopen error details after the header action and retain measured screenshot bounds for the before/after evidence.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 7c10dc36-40e3-4491-a3dc-ac6d0b3df7b0
@clawsweeper

clawsweeper Bot commented Nov 17, 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 size: M labels Nov 17, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR lets native UI plugins replace the feedback action beside a failed reply while preserving error details and recovery controls.

Example: The displayed run failed-example-run fails in session agent:main:main.

  • Before: The failure notice offers the built-in Report a bug link.
  • After: A selected plugin can display its fixture-report receipt and artifact link beside the unchanged error details.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused, and demonstrated through the browser entry point, with no actionable findings; broad required CI is still running.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots show the actual source-served Control UI on the pinned base and head with the native plugin API and synthetic Gateway I/O; the replay exercises receipt placement, exact scope, preserved details, restored fallback, and no model turn, without claiming real report delivery.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Reporting plugins cannot place their own feedback action or receipt beside a failed reply without replacing the entire transcript.
Reason: The maintainer-authored direction adds a narrow reusable seam while leaving reporting policy and delivery in plugins.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR provides a useful, narrow plugin capability missing from current main. No actionable defects were found; required CI remains pending.

Priority: P2
Reviewed head: 0afd48e3d8123a5f008b3ca3eb9e7e177b2d26c4

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI turns terminal run failures into transcript notices; the new slot passes agent, session, displayed run, and repeat count to the existing plugin renderer, which supplies plugin content or built-in reporting.

flowchart TD
  A[Terminal run failure] --> B[Transcript notice]
  B --> C[Error details and recovery]
  B --> D[Scoped feedback props]
  D --> E[Existing plugin surface]
  E --> F[Selected plugin feedback]
  E --> G[Built in report link]
Loading

Technical review

Best possible solution:

Use the existing replacement-view contract for this narrow slot, retaining built-in reporting and host-owned failure details and recovery.

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

This is a capability addition: current main lacks the narrow slot, and the supplied before/after browser evidence demonstrates that distinction.

Is this the best way to solve the issue?

The patch follows the smallest complete approach: extend the existing surface contract, derive scope from the pane, and bind view lifetime to the displayed failed run.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Plugin replacement contract keeps the original intent (6a97159: Provide typed native UI extension points with core-owned identity, fallback, and disposal.)
  • Eager failure-notice rendering keeps the original intent (09e552f: Render cached failure facts together with their transcript row rather than introducing delayed content.)
  • Failed-reply recovery controls keeps the original intent (dac24a3: Allow editing through the existing rewind owner while preserving continuation-based retry and drafts.)
  • Built-in feedback link keeps the original intent (85e387a: Offer privacy-safe GitHub feedback without attaching private diagnostics or automatically submitting reports.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 09e552f adds ui/src/pages/chat/components/chat-notice-view.tsx:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 09e552fe3a66; files: ui/src/pages/chat/components/chat-notice-view.tsx)
  • RoboClaw: Raw commit dac24a3 adds ui/src/pages/chat/components/chat-notice-view.tsx:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dac24a3a242c; files: ui/src/pages/chat/components/chat-notice-view.tsx)
  • Vyctor H. Brzezowski: Raw commit 6b9eb8a adds ui/src/pages/chat/components/chat-run-failure-notice.tsx:138 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6b9eb8a7971d; files: ui/src/pages/chat/components/chat-run-failure-notice.tsx)

PR surface

Source +33, Tests +278, Docs +17. Total +328 across 7 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 4 45 12 +33
Tests 2 278 0 +278
Docs 1 18 1 +17
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 341 13 +328

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 test growth Production +45/-12 lines, net +33; tests +278 lines. The small production addition reuses existing rendering and lifecycle owners; tests cover scoped mounting, retirement, fallback, and browser integration.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: A useful plugin extension with limited scope and no demonstrated urgent user regression.
  • merge-risk: 🚨 compatibility: The PR adds a public Plugin SDK surface; its maintainer-authored direction is accepted, existing surfaces remain intact, and the generic reporting fallback is preserved.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-17T08:33:38.761Z sha d0cfaa0 :: needs maintainer review before merge. :: none

Reviewed November 17, 2026, 4:15 AM ET / 09:15 UTC (Revision 2).

roboclaw-bot and others added 2 commits November 17, 2026 08:36
Key the failure notice by its displayed run instead of adding a run-specific branch to the shared plugin view. Reuse the existing zero-argument report fallback renderer. Boot-budget verification remains required.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 4c047cf9-f5bd-4b55-8a1e-710ab689af0c
@roboclaw-bot

roboclaw-bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator Author

Implemented Control UI proof

Actual source-served Control UI, light theme, matched 1160×850 viewport and 1160×430 top crop. Before: 96763b979fed377e61d44520294b9eb12a740ae0; after: 0afd48e3d8123a5f008b3ca3eb9e7e177b2d26c4. The same synthetic failed-run data and native plugin are used on both revisions. The base has no feedback slot; the candidate displays the selected plugin's synthetic queued receipt, ID and artifact link while preserving the original error. This is generic plugin integration proof, not the Nerfed backend or a real report submission.

Clean comparison

Before

Before: the built-in Report a bug link beside the expanded original error

After

After: synthetic native-plugin receipt and artifact link beside the unchanged original error

Annotated comparison

Before

Base revision has only the built-in report link

After

Candidate exposes plugin feedback while retaining original error details

The bounded browser replay passed on each exact source revision (one scenario each, approximately seven seconds). The candidate also verified the exact displayed run/agent/session request scope and restored the built-in report link after the plugin was disabled. Both scenarios recorded zero chat.send and zero agent calls and no page errors. No production Gateway, report submission, or model was used. Raw uncropped frames and measured annotation bounds were retained in the task proof artifacts.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 17, 2026 09:09
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Nov 17, 2026
@roboclaw-bot
roboclaw-bot merged commit 90fe9cd into main Nov 17, 2026
233 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/marine-barnacle-5 branch November 17, 2026 09:27
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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.

1 participant