Repository navigation
Description
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
- Open a Control UI chat whose Session companion contains an exchange.
- Make
sessions.companion.resetreject, for example during a reconnect. - Choose Clear companion session from the companion overflow menu.
- 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.
Successful retry: the companion clears and no error remains.
Complete failure-to-success recording:
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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority


Activity
clawsweeper commentedon Aug 14, 2026
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
maintainerlabel 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
maintainerlabel requires explicit maintainer handling before dispatch.Review details
Best possible solution:
Route the rejected reset through
publishHeaderErrorin 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:
clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.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:
ui/src/pages/chat/chat-pane-base.ts:420, 9386ac096632)ui/src/pages/chat/chat-session-companion.ts:233, 9386ac096632)ui/src/pages/chat/chat-pane-session-menu.ts:402, 9386ac096632)src/gateway/session-companion-rpc.ts:157, 9386ac096632)ui/src/pages/chat/chat-pane-base.ts:420, 37a63fbf450e)Likely related people:
ui/src/pages/chat/chat-pane-base.ts,ui/src/pages/chat/chat-session-companion.ts)ui/src/pages/chat/components/chat-session-rail.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.