Skip to content

refactor(gateway): split chat display projection - #113806

Merged
steipete merged 3 commits into
mainfrom
refactor/chat-display-projection-split
Jul 25, 2026
Merged

steipete merged 3 commits into
mainfrom
refactor/chat-display-projection-split

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The gateway’s client-consumed chat display projection had grown to 2,181 lines behind a grandfathered max-lines suppression. Its canvas handling, sanitizer, message-tool mirroring, history filtering, and public projection pipeline were interleaved in one module, making byte-stable client behavior harder to review safely. This is the maintainer-requested wave 7 behavior-neutral split.

Why This Change Was Made

This preserves chat-display-projection.ts as the stable public facade and moves existing logic into focused modules for shared predicates, canvas/tool-result projection, payload sanitization, message-tool mirrors, history/TTS/turn-boundary projection, and the final public pipeline. The pipeline order and every public export remain unchanged; all production modules are at most 537 lines and the max-lines baseline entry is removed.

User Impact

No user-visible behavior changes. Control UI and gateway clients receive the same projected messages, ordering, suppression behavior, error fallback text, media metadata, message-tool mirrors, TTS merges, and turn-boundary annotations as before.

Evidence

AI-assisted: yes. The implementation and proof were reviewed by the maintainer-authorized Codex worker.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Jul 25, 2026
@steipete
steipete marked this pull request as ready for review July 25, 2026 19:02
@steipete
steipete force-pushed the refactor/chat-display-projection-split branch from 403280f to 00b33f6 Compare July 25, 2026 19:11
@steipete
steipete merged commit e144bc1 into main Jul 25, 2026
117 checks passed
@steipete
steipete deleted the refactor/chat-display-projection-split branch July 25, 2026 19:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 26, 2026
* refactor(gateway): split chat display projection

* refactor(gateway): trim projection imports

* refactor(gateway): keep projection helper private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant