Repository navigation
feat(ui): let plugins offer feedback on failed replies - #200496
Conversation
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
|
🦞👀 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 maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +33, Tests +278, Docs +17. Total +328 across 7 files. Added test files: 2. 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. Review metrics
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 17, 2026, 4:15 AM ET / 09:15 UTC (Revision 2). |
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
Implemented Control UI proofActual source-served Control UI, light theme, matched 1160×850 viewport and 1160×430 top crop. Before: Clean comparisonBefore After Annotated comparisonBefore After 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 |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|




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-feedbackslot. 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
96763b9→4e38c9acandidate found no actionable findings. Published0afd48esource is byte-identical. The local ClawSweeper checkout was dirty/ambiguous; the selected fallback completed with hosted review of0afd48e: no findings, with implemented browser proof inspected.79874ace1e1e9447b80e2881be3399bbdc785d3dcombines0afd48ewith main5ce80ebd. No gate or limit was changed.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.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.96763b9and candidate0afd48e, with matched synthetic failed-run data, light theme and viewport. Each bounded replay passed: no page errors, zerochat.sendoragentcalls, 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.Requested and approved by @vincentkoc.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by