Skip to content

refactor(ui): split chat message rendering - #113363

Merged
steipete merged 2 commits into
mainfrom
codex/split-chat-message
Jul 24, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/split-chat-message

Conversation

@steipete

@steipete steipete commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

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.ts remains 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

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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete
steipete marked this pull request as ready for review July 24, 2026 15:57
@steipete
steipete force-pushed the codex/split-chat-message branch from 6aafde8 to f31b3ee Compare July 24, 2026 16:09
@steipete
steipete force-pushed the codex/split-chat-message branch from f31b3ee to 47f485f Compare July 24, 2026 16:29
@steipete
steipete merged commit 9c2ae38 into main Jul 24, 2026
97 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant