Skip to content

[Bug]: Clear companion failures disappear without feedback #123711

Closed

Description

@steipete

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Clearing a Session companion thread can fail while leaving the thread visible, but the Control UI suppresses the rejection and shows no explanation.

Steps to reproduce

  1. Open a Control UI chat whose Session companion contains an exchange.
  2. Make sessions.companion.reset reject, for example during a reconnect.
  3. Choose Clear companion session from the companion overflow menu.
  4. Observe that the exchange remains but no error is shown.

Expected behavior

The existing companion thread remains intact and the rejection appears through the chat header's normal error feedback.

Actual behavior

The companion thread remains intact, but the rejected reset is swallowed and produces no visible feedback.

OpenClaw version

Current main at 621220aea9baa22b002be1f4cd10230be2767f3d.

Operating system

macOS, reproduced in the Control UI Chromium E2E harness.

Install method

Source checkout.

Model

N/A — the reset path does not invoke a model.

Provider / routing chain

N/A — deterministic mocked Gateway RPC.

Screenshots, recordings, and evidence

Failure behavior after the repair: the existing thread is preserved and the existing header error is visible.

Rejected clear preserves the companion and shows the error

Successful retry: the companion clears and no error remains.

Successful clear removes the companion thread

Complete failure-to-success recording:

[email protected]

The deterministic regression observes the old code return { resetRequests: 1, threadVisible: true, visibleErrors: 0 }; the repaired path returns { resetRequests: 1, threadVisible: true, visibleErrors: 1 }, followed by a successful retry that clears the thread.

Impact and severity

Affected: Control UI operators clearing a Session companion when the reset RPC rejects.

Severity: Moderate UX failure; the destructive action visibly does nothing and provides no recovery reason.

Frequency: Every rejected companion reset.

Consequence: Operators cannot distinguish a transient Gateway failure from an ignored click and receive no actionable feedback.

Additional information

Issue #121440 concerns the companion entry-point and empty-state design; it is adjacent but distinct from this rejected-reset feedback bug.

Activity

  1. self-assigned this
    on Aug 14, 2026
  2. added
    bug
    on Aug 14, 2026
  3. added
    maintainer
    on Aug 14, 2026
  4. added
    clawsweeper:source-repro
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    P2
    on Aug 14, 2026
  5. clawsweeper commented on Aug 14, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 14, 2026, 11:55 AM ET / 15:55 UTC.

    Summary
    Keep open. Current main still swallows every rejected companion-reset request at the Control UI action boundary, leaving the correctly preserved thread without the existing visible error alert; the protected maintainer label requires explicit owner handling.

    Reproducibility: yes. —current source deterministically routes a rejected reset into a swallowing catch, and the supplied Chromium harness evidence exercises that path; this review did not rerun the harness.

    Regression provenance
    Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

    Next step
    The defect has a clear small repair, but the protected maintainer label requires explicit maintainer handling before dispatch.

    Review details

    Best possible solution:

    Route the rejected reset through publishHeaderError in the chat-pane action, then add one pane-level regression proving rejection preserves the exchange and surfaces the alert before a successful retry clears it.

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

    Yes—current source deterministically routes a rejected reset into a swallowing catch, and the supplied Chromium harness evidence exercises that path; this review did not rerun the harness.

    Is this the best way to solve the issue?

    Yes—the narrowest repair is to use the existing chat-header error publisher at the action boundary; changing Gateway RPC or optimistic thread-state ownership would be unnecessary.

    AGENTS.md: found and applied where relevant.

    Codex review notes: model internal, reasoning high; reviewed against 9386ac096632.

    Label changes

    Label changes:

    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.

    Label justifications:

    • P2: A rejected companion reset creates a repeatable but limited Control UI failure: the user action has no visible explanation while state remains intact.
    • impact:ux-friction: Operators can retry, but the current UI hides the Gateway rejection and gives no recovery reason.
    Evidence reviewed

    What I checked:

    Likely related people:

    • steipete: Current-line blame attributes the swallowing action boundary and companion reset owner to Peter Steinberger’s current-main commit; the same history includes the companion feature introduction. (role: introduced current action path and recent area contributor; confidence: high; commits: 37a63fbf450e, a95486cefc67; files: ui/src/pages/chat/chat-pane-base.ts, ui/src/pages/chat/chat-session-companion.ts)
    • vyctorbrzezowski: Authored the companion header-toggle work that placed the destructive clear action in the overflow control. (role: adjacent companion-control contributor; confidence: medium; commits: 4ea11b93c187; files: ui/src/pages/chat/components/chat-session-rail.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  6. added
    clawsweeper:needs-maintainer-review
    clawsweeper:no-new-fix-pr
    on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2bugclawsweeper:needs-maintainer-reviewclawsweeper:no-new-fix-prclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobstermaintainer

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions