Skip to content

improve(ui): show one recovery button on failed replies - #205084

Merged
vyctorbrzezowski merged 3 commits into
openclaw:mainfrom
daniel-lxs:error-separator-build-option-a
Nov 25, 2026
Merged

vyctorbrzezowski merged 3 commits into
openclaw:mainfrom
daniel-lxs:error-separator-build-option-a

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #204303.

What Problem This Solves

A failed reply can show several controls in its error row. Edit message duplicates the Rewind action on the original message.

User Impact

A failed reply offers Open Models for credential or billing problems, Start a new session when the harness needs an update, or Try again for ordinary failures.

To edit and resend the original message, hover over your own message and click the Rewind icon, or right-click it and choose Rewind to here. Edit message refused to overwrite text already typed in the message box. Rewind replaces that draft.

Report a bug is available from the sidebar’s Help menu. Feedback plugins can still add their own action to the row.

Why This Change Was Made

Use one recovery action per failure and reuse the existing Rewind flow. This removes the separate failed-message editor, its draft guard, and the row’s built-in report link.

Evidence

  • 85 focused tests and 23 Chromium E2E tests passed. The billing and harness-update assertions both fail on the base because the row offers two recovery buttons.
  • In Chromium, both Rewind entry points restored the message and all five attachments over an existing draft. Try again continued without resending those attachments.
  • The chat test typecheck and the model-notice provider-icon fallback test both failed at d70931d757b3 and passed with the repair. Targeted typechecks, lint, format and translation checks passed. Both revisions compiled and hit the same local Control UI asset-budget limits. The aggregate changed-files check flagged a release changelog attribution and an unused export in the upgrade-survivor tooling. Both are present on the base.
  • The published-docs parser resolves both #edit-a-failed-message and #rewind-and-fork at the Rewind instructions. MDX validation passed. The full anchor audit returned the same eight existing failures.
  • Simplification pass against the merge base covered source and docs +53/−230, tests +51/−275. Browser runs used synthetic Gateway responses. The full suite and a live model were skipped locally.

Clean comparison

Before

Failed reply with Edit message, Try again, and Report a bug

After

Failed reply with Try again

Annotated comparison

Before

Two buttons and a report link highlighted

After

One recovery button highlighted

Same failed five-image reply in production Control UI builds using base source 5750fb88fe02 and PR source d70931d757b3, using synthetic Gateway responses.

Credentials or billing

Before

Billing failure with Open Models, Edit message, Try again, and Report a bug

After

Billing failure with Open Models as the only recovery action

Annotated before

Extra actions beside Open Models highlighted

Annotated after

The single Open Models action highlighted

Harness update

Before

Harness update required with Start a new session, Edit message, Try again, and Report a bug

After

Harness update required with Start a new session as the only recovery action

Annotated before

Extra actions beside Start a new session highlighted

Annotated after

The single Start a new session action highlighted

The two comparisons above use production Control UI builds from main 08a2c551318 and PR head 21830d87a15, with identical synthetic Gateway responses per scenario. The billing example shows the same Open Models action used for rejected credentials. In Chromium, both provider failures opened the affected provider in Models. The harness action requested a fresh OpenClaw session with the failure summary.

@clawsweeper

clawsweeper Bot commented Nov 25, 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 scripts Repository scripts size: L labels Nov 25, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shows one recovery action per failed reply, reuses Rewind for editing, and removes the row’s built-in report link.

Example: OpenAI reports a billing problem after “Summarize the launch checklist.”

  • Before: The failure row offers Edit message, Open Models, Try again, and Report a bug.
  • After: The failure row offers Open Models; editing remains available through the original message’s Rewind action.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused simplification with inspected visual proof, relevant regression coverage, and no remaining actionable finding.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected production Control UI before/after captures demonstrate ordinary, billing, and harness failures with their single intended action; supplied Chromium results cover Rewind and continuation using synthetic Gateway responses, without claiming a live provider run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Failed replies present several competing controls even when one recovery action is appropriate.
Reason: The maintainer-authored direction accepts the simpler row, existing Rewind draft behavior, and Help-menu reporting while preserving plugin feedback.

Merge readiness

✅ Ready for maintainer review

This PR is worth merging: the earlier documentation-anchor finding is resolved, and no actionable defect remains in the reviewed head; CI is still pending.

Reviewed head: 21830d87a15a238db9753c6aae825e2707ae8486

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI turns recorded run-failure facts into transcript notices whose actions navigate to provider settings, start a recovery session, or continue the conversation; message editing uses the existing session rewind owner.

flowchart TD
  A[Recorded run failure] --> B[Chat notice projection]
  B --> C[Failure notice]
  C --> D[One recovery action]
  C --> E[Optional plugin feedback]
  F[Original message actions] --> G[Session rewind]
  G --> H[Restored composer]
Loading

Technical review

Best possible solution:

Merge the existing focused cutover after required CI passes, retaining the documented Rewind flow and optional feedback slot.

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

This is an intentional presentation change rather than an unresolved bug report; source and supplied production-UI screenshots establish the before/after behavior.

Is this the best way to solve the issue?

The patch is a small complete cutover: one existing renderer selects recovery, existing Rewind owns editing, and obsolete editor plumbing is removed.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Failed-message editing changes intended behavior with a stated reason (dac24a3: Expose correction of rejected image messages through sessions.rewind while protecting existing drafts.)
  • Provider and harness recovery actions changes intended behavior with a stated reason (32cff78: Offer provider settings for credential or billing failures, with retry retained as a secondary action; later harness recovery added a new-session action.)
  • Failure feedback fallback changes intended behavior with a stated reason (90fe9cd: Allow plugin feedback beside a failed reply while preserving built-in reporting when no replacement is available.)
  • Compact failure presentation keeps the original intent (6b9eb8a: Render failures as compact system lines with details outside transcript flow.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -172, Tests -224, Docs -2, Other -3. Total -401 across 19 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 39 211 -172
Tests 6 51 275 -224
Docs 2 14 16 -2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 3 -3
Total 19 104 505 -401

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.

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 🐚 platinum hermit 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: 🐚 platinum hermit, 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:

  • merge-risk: 🚨 compatibility: The documented run-failure-feedback default changes from a Report a bug link to empty content; this intentional tradeoff is explicit in the maintainer-authored PR.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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-25T05:05:29.751Z sha d70931d :: needs changes before merge. :: [P2] Preserve the existing failed-message documentation anchor

Reviewed November 25, 2026, 12:23 AM ET / 05:23 UTC (Revision 2).

@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 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. 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. labels Nov 25, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 1f3262a into openclaw:main Nov 25, 2026
126 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

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

* improve(ui): keep one fix action on failed replies

* fix(ui): finish removing failed message edit dependencies

* fix(docs): preserve the failed message anchor
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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. scripts Repository scripts 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.

2 participants