Skip to content

fix(ui): preserve chat command ownership and visible run outcomes - #116752

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-uichat
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-uichat

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Keep attachments staged for session-export commands only; preserve /new ownership and restore staged content if session creation is canceled.
  • Ignore stale completed-run errors when a newer run already owns the active composer, without hiding same-run diagnostics.
  • Give disconnected runless Stop actions a visible, actionable outcome while preserving exact-run reconnect and cancellation behavior.

Verification

  • Chat send, gateway lifecycle, run lifecycle, and direct command owner suites: 434 tests passed.
  • Independent re-review of the final amended SHA inspected slash-command normalization, attachment transfer/restore, queued commands, active-run ownership, offline cancellation, and affected siblings; no blockers.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; independent manual diff and secret review completed.

Root causes fixed

3 distinct chat command/run defects.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 31, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 7:52 AM ET / 11:52 UTC.

ClawSweeper review

What this changes

This PR preserves staged attachments for session export while keeping /new ownership separate, prevents terminal errors from an older run from overwriting a newer composer run, and shows reconnect guidance when a disconnected Stop cannot safely target a specific run.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 4 items remain

Keep this PR open. The focused UI changes appear coherent and include targeted regression coverage, but the supplied verification is mock/test-only and does not yet show an after-fix web-chat run; the existing maintainer label also requires human handling rather than automated cleanup.

Priority: P2
Reviewed head: ecbaf5d2518fc9980ec3d9c9433dbcef1f6c5464

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch has focused behavior and regression-test signal, but missing inspectable real web-chat proof remains a merge gate.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: The PR supplies focused test results but no inspectable after-fix web-chat recording, transcript, terminal/live output, linked artifact, or redacted runtime log; add redacted real behavior proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR supplies focused test results but no inspectable after-fix web-chat recording, transcript, terminal/live output, linked artifact, or redacted runtime log; add redacted real behavior proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Command attachment ownership: The proposed command-submit change clears staged attachments for immediate commands except export-session, matching the stated distinction between exporting the current session and handing /new to session creation.
Run ownership and timeout projection: The proposed gateway changes only publish an error when the composer is idle or owns the terminal event's run ID, and preserve the gateway-projected timeout status when reconciling the selected session.
Disconnected Stop feedback: The proposed lifecycle change gives a session-only Stop action a visible localized reconnect message when no exact browser run ID exists, while retaining queued reconnect behavior for an exact run ID.
Findings None None.
Security None None.

How this fits together

The Control UI chat composer owns drafts, attachments, commands, and the active browser-known run ID. Gateway lifecycle events then update the selected session and visible composer status so operators can see whether a run completed, failed, timed out, or needs reconnecting.

flowchart LR
  Composer[Chat composer] --> Commands[Command routing]
  Commands --> Session[Session operation]
  Composer --> Gateway[Gateway request]
  Gateway --> Events[Run lifecycle events]
  Events --> Projection[Selected-session projection]
  Projection --> Feedback[Visible chat outcome]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR supplies focused test results but no inspectable after-fix web-chat recording, transcript, terminal/live output, linked artifact, or redacted runtime log; add redacted real behavior proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The branch is behind its base; rebase or refresh against current main before merge so the run-lifecycle changes are evaluated against the current selected-session behavior.
  • Resolve merge risk (P1) - The PR body reports automated coverage but has no inspectable after-fix web-chat recording, transcript, terminal output, or redacted runtime log for the three user-visible outcomes.
  • Complete next step (P2) - This is a protected maintainer-labeled PR with no discrete mechanical defect found; it needs contributor-provided real behavior proof and a maintainer merge decision rather than an automated repair.
Agent review details

Security

None.

PR surface

Source +14, Tests +276. Total +290 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 19 5 +14
Tests 3 278 2 +276
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 297 7 +290

Review metrics

None.

Mantis proof suggestion

A redacted Control UI chat interaction can directly demonstrate the visible /new, session-export, stale-run, and disconnected Stop outcomes that are currently unproven. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis web UI chat proof: verify and capture that `/new` does not transfer staged attachments, session export retains them, stale prior-run errors do not mark a newer run failed, and disconnected Stop shows reconnect guidance.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase onto current main, retain the focused regressions, and add redacted browser proof showing attachment behavior for /new versus session export, stale-run error isolation, and the disconnected Stop outcome before a maintainer merges.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase onto current main, retain the focused regressions, and add redacted browser proof showing attachment behavior for /new versus session export, stale-run error isolation, and the disconnected Stop outcome before a maintainer merges.

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

No high-confidence live reproduction is included. The added focused tests make the reported states source-reproducible, but they do not demonstrate the after-fix behavior in a running web chat.

Is this the best way to solve the issue?

Unclear: the changed owner boundaries and focused tests support the proposed approach, but real UI proof is still needed to confirm it is the best fix for the operator-visible flows.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 754fddbc798f.

Labels

Label justifications:

  • P2: This is a bounded Control UI reliability fix affecting chat command ownership and visible run outcomes, without evidence of a release-blocking outage.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR supplies focused test results but no inspectable after-fix web-chat recording, transcript, terminal/live output, linked artifact, or redacted runtime log; add redacted real behavior proof before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Command attachment ownership: The proposed command-submit change clears staged attachments for immediate commands except export-session, matching the stated distinction between exporting the current session and handing /new to session creation. (ui/src/pages/chat/chat-send-submit.ts:380, ecbaf5d2518f)
  • Run ownership and timeout projection: The proposed gateway changes only publish an error when the composer is idle or owns the terminal event's run ID, and preserve the gateway-projected timeout status when reconciling the selected session. (ui/src/pages/chat/chat-gateway.ts:273, ecbaf5d2518f)
  • Disconnected Stop feedback: The proposed lifecycle change gives a session-only Stop action a visible localized reconnect message when no exact browser run ID exists, while retaining queued reconnect behavior for an exact run ID. (ui/src/pages/chat/run-lifecycle.ts:261, ecbaf5d2518f)
  • Focused regression coverage: The branch adds command-submit attachment tests and lifecycle/gateway tests for timeout, stale-run error ownership, and offline abort behavior; the PR body reports 434 focused tests, but no inspectable real browser run accompanies that claim. (ui/src/pages/chat/chat-send-submit.test.ts:1, ecbaf5d2518f)
  • Review continuity: The prior completed ClawSweeper review raised no code finding and requested real behavior proof. The new head changes the implementation and test coverage, but the updated PR body still provides test claims rather than inspectable after-fix UI evidence. (ecbaf5d2518f)

Likely related people:

  • steipete: The supplied PR metadata identifies this person as author of the only proposed commit touching the chat command and run-lifecycle paths; no stronger current-main ownership trail was available in the review evidence. (role: current change author and recent UI-path contributor; confidence: low; commits: ecbaf5d2518f; files: ui/src/pages/chat/chat-send-submit.ts, ui/src/pages/chat/chat-gateway.ts, ui/src/pages/chat/run-lifecycle.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted web-chat proof for /new versus session export attachment handling, stale terminal-error isolation, and disconnected Stop guidance.
  • Rebase or refresh the branch against current main and confirm the focused lifecycle tests still cover the resulting merge state.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-07-31T09:53:54.158Z sha 30fd775 :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the codex/auto-qa-uichat branch from 30fd775 to ecbaf5d Compare July 31, 2026 11:47
@steipete
steipete merged commit 708c4d6 into main Jul 31, 2026
98 of 100 checks passed
@steipete
steipete deleted the codex/auto-qa-uichat branch July 31, 2026 11:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to yetval/openclaw that referenced this pull request Aug 1, 2026
* commit 'd8f229f2e6c39e2dc694730c2efc479e4fb3871e': (59 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
pull Bot pushed a commit to liudf0716/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (52 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
sunlit-deng pushed a commit to sunlit-deng/openclaw that referenced this pull request Aug 1, 2026
* commit 'd8f229f2e6c39e2dc694730c2efc479e4fb3871e': (60 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '4e7fffdb98ce4d3e6fd69859bedd584cf474ec53': (59 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (52 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit '4e7fffdb98ce4d3e6fd69859bedd584cf474ec53': (60 commits)
  fix(setup): isolate failed channel probes and report doctor diagnostics (openclaw#116824)
  fix(telegram): preserve edit previews, message cache, and group history (openclaw#116818)
  fix(whatsapp): preserve interactive replies and normalize media MIME (openclaw#116816)
  fix(file-transfer): keep fetched media attachable in sandboxed replies (openclaw#116400)
  fix(browser): preserve doctor JSON failure status (openclaw#116811)
  fix(ollama): stream native tool call lifecycle (openclaw#116809)
  fix(matrix): preserve message-tool room thread routing (openclaw#116802)
  fix(ui): restore mobile navigation and accessible usage filters (openclaw#116751)
  fix(ui): coalesce profile identity refresh (openclaw#116764)
  fix(ui): preserve chat attachments and run ownership (openclaw#116752)
  fix(plugins): clean up partial service startup once (openclaw#116804)
  fix(qa-channel): enforce message and thread lifecycle ownership (openclaw#116801)
  fix(qa-lab): support groups and isolate thread timelines (openclaw#116803)
  feat(plugins): externalize Voyage embeddings (openclaw#116785)
  fix(outbound): strip echoed inbound metadata before delivery (openclaw#50520)
  fix(anthropic-vertex): correct multi-region endpoints (openclaw#116757)
  fix(ui): scope agent cron jobs and surface model catalog failures (openclaw#116771)
  fix(ui): preserve scoped session state across updates (openclaw#116772)
  fix(build): fail closed on symlinked build output roots (openclaw#116705)
  fix(commands): validate native settings and preserve Telegram ingress outcomes (openclaw#116773)
  ...
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant