Repository navigation
refactor(ui): split chat message rendering - #113363
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 24, 2026 15:57
steipete
force-pushed
the
codex/split-chat-message
branch
from
July 24, 2026 16:09
6aafde8 to
f31b3ee
Compare
steipete
force-pushed
the
codex/split-chat-message
branch
from
July 24, 2026 16:29
f31b3ee to
47f485f
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 25, 2026
* refactor(ui): split chat message rendering * refactor(ui): tighten chat message exports
This was referenced Aug 26, 2026
This was referenced Oct 9, 2026
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The grouped chat message renderer had grown to 3,157 lines behind a grandfathered max-lines suppression, combining message composition, media security, confirmation UI, timestamps, stream groups, and attachment state in one review surface. This is the maintainer-requested split of that file.
Why This Change Was Made
The existing implementation is extracted along its established ownership seams: timestamps/usage metadata, transcript media extraction, local-path policy, authenticated attachment availability, managed image fetching, confirmation popovers, markdown actions, message bubbles, stream groups, and grouped message composition.
chat-message.tsremains the unchanged public facade for existing callers, every resulting production module is under 600 lines, and the max-lines suppression/baseline entry is removed.Security-sensitive behavior remains mechanically unchanged: local preview roots, canonical inbound media validation, same-origin auth headers, media ticket refresh, managed Blob URL retention/eviction, safe external URL opening, and confirmation focus/listener cleanup all keep one canonical owner.
This is strictly behavior-neutral with zero intended visual change. There are no before/after screenshots because any visual delta would be a failed split rather than evidence of success.
AI-assisted with maintainer-directed Codex execution. I reviewed the complete moved code and understand the resulting ownership boundaries.
User Impact
No user-visible behavior changes. Maintainers get focused message-rendering modules without changing transcript layout, message actions, tool cards, media previews, timestamps, stream state, or keyboard/focus behavior.
Evidence
node scripts/run-vitest.mjs ui/src/pages/chat/components/chat-message.test.ts ui/src/pages/chat/chat-view.test.ts— 326 tests passed.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-isolated.config.ts --configLoader runner ui/src/pages/chat/chat-pane-lifecycle.test.ts— 16 tests passed.node scripts/check-changed.mjs -- <14 touched paths>— passed on Blacksmith Testbox run https://github.com/openclaw/openclaw/actions/runs/30105419342, including max-lines ratchet, i18n verification, core/UI typechecks, formatting, and lint.47f485fb784, including full selected Control UI, dependency/export, and merge gates..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main— final rebased branch clean, no accepted/actionable findings; overall patch correctness 0.99.git diff --check— clean.ClawSweeper proof policy
Manual screenshot/recording proof is intentionally skipped by explicit maintainer direction for this zero-visual-delta refactor. The acceptance contract is unchanged DOM/interaction behavior backed by focused and full Control UI suites; a visual delta would be a defect, not a result to document. Peter explicitly ordered and authorized this refactor and its landing.