Skip to content

fix(ui): preserve delayed final turn order - #123560

Merged
fuller-stack-dev merged 1 commit into
openclaw:mainfrom
fuller-stack-dev:codex/fix-control-ui-turn-order
Aug 14, 2026
Merged

fuller-stack-dev merged 1 commit into
openclaw:mainfrom
fuller-stack-dev:codex/fix-control-ui-turn-order

Conversation

@fuller-stack-dev

Copy link
Copy Markdown
Member

Summary

  • preserve the durable sequence of a delayed previous-run assistant final when a newer local run is active
  • keep current-run assistant persistence on the existing streaming/terminal path
  • add focused unit coverage and a browser E2E regression for the reported ordering race

Root cause

The selected-session session.message reconciler admitted only user rows. When a previous run's sequenced assistant final persisted after the next run started, the UI discarded that canonical row. Its later unsequenced chat.final replay was then appended below the newer user prompt.

Verification

  • red browser proof on d8a1ebbb492: bubble order [previous user, newer user, delayed previous final, current stream]
  • green browser proof on cc591b21ebf: [previous user, previous final, newer user, current stream] before and after the late terminal replay; one final row
  • 317 focused and adjacent unit tests passed
  • all 17 chat-flow.messaging browser E2E tests passed
  • formatting, full lint shards, scoped lint, and UI typecheck passed
  • source-blind behavior validation: 4/4 clauses passed
  • autoreview: no accepted/actionable findings

Release note: fixes Control UI chat messages appearing above the previous response when terminal events arrive out of order.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 14, 2026
@fuller-stack-dev
fuller-stack-dev force-pushed the codex/fix-control-ui-turn-order branch from cc591b2 to a186df7 Compare August 14, 2026 08:38
@fuller-stack-dev
fuller-stack-dev force-pushed the codex/fix-control-ui-turn-order branch from a186df7 to e5fa558 Compare August 14, 2026 08:41
@fuller-stack-dev
fuller-stack-dev merged commit 0bd50cc into openclaw:main Aug 14, 2026
15 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Landed as 0bd50cc0a5baee86c25dc56af08c96e9328a6306. Verified with red/green browser proof, 17/17 messaging E2E tests, 317 adjacent unit tests, lint/type checks, source-blind behavior validation, and clean autoreview.

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 size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant