Skip to content

fix(control-ui): keep assistant display content out of the Chat boot chunk - #207592

Merged
obviyus merged 1 commit into
mainfrom
fix/control-ui-display-content-chunk
Nov 28, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/control-ui-display-content-chunk

Conversation

@obviyus

@obviyus obviyus commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

What Problem This Solves

#207505 placed src/shared/assistant-display-content.ts in the chat-transcript-runtime chunk ("Chat loads events and media together; keep both out of the route entry"). The same module also had an older case in the deferred-ui-support list, which made a duplicate case and failed lint. #207548 and #207550 each removed one of the two copies, so main now has no case for the module. It falls through to the Chat route boot chunk, control-ui-boot-chat, which #207505 meant to keep it out of.

Why This Change Was Made

Restore the one case in the chat-transcript-runtime list, as #207505 intended. The module's only importers, ui/src/pages/chat/chat-gateway.ts and ui/src/pages/chat/chat-live-events.runtime.ts, are already in that list. There is still only one case for the module, so lint stays clean.

User Impact

No visible change. Chat makes the same number of startup requests, and its boot entry is slightly smaller.

Evidence

pnpm ui:build and scripts/check-control-ui-performance.mts on main 800644b and on this head (--base-dist main build): 0 violations on both.

main 800644b this head
Module location (source maps) control-ui-boot-chat chat-transcript-runtime
control-ui-boot-chat chunk 971,819 B raw / 288,708 B gzip 971,607 B raw / 288,646 B gzip
chat-transcript-runtime chunk 80,684 B raw / 28,375 B gzip 80,862 B raw / 28,436 B gzip
Chat boot JS (perf check) 18 requests, 1,336,210 B gzip 18 requests, 1,336,203 B gzip (limit 1,336,272 B)
New Session boot JS 16 requests, 819,989 B gzip 16 requests, 819,989 B gzip
CSS (startup, Chat, total) unchanged unchanged

node scripts/run-oxlint.mjs ui/config/control-ui-chunking.ts: 0 errors, one case for the module.

…chunk

#207548 and #207550 each removed one copy of a duplicate case, so src/shared/assistant-display-content.ts had no case and fell into control-ui-boot-chat. Restore it in the chat-transcript-runtime list, next to its only importers, as #207505 intended.
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Assigns assistant display-content code to the existing Chat transcript runtime chunk.

Example: Build the Control UI with src/shared/assistant-display-content.ts.

  • Before: The module falls into control-ui-boot-chat.
  • After: The module joins its two UI importers in chat-transcript-runtime.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, source-verifiable repair supported by successful performance and UI checks; build measurements are author-reported and browser CI remains unfinished.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is exempt from contributor runtime proof; reported production-build measurements directly address chunk placement, but no browser execution or independently inspected build artifact establishes runtime behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Chat's boot entry includes a helper intended to load with its transcript runtime.
Reason: The collaborator-authored change restores an established loading boundary with minimal maintenance cost and no new product contract.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This PR restores the intended Chat chunk assignment with a minimal change that current main still needs; no actionable defects were found.

Reviewed head: 67416f70eb658cfb3e52e91f3fcd82745da8cc93

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI build maps source module IDs to JavaScript chunks that browsers download for each route.

flowchart LR
  A[Source module IDs] --> B[Stable chunk assignment]
  B --> C[Vite build]
  C --> D[Chat boot chunk]
  C --> E[Chat transcript runtime]
  D --> F[Browser Chat route]
  E --> F
Loading

Technical review

Best possible solution:

Retain the single explicit assignment in the existing chunking owner alongside the module's Chat consumers.

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

Current-main source establishes the missing explicit assignment and Chat boot fallback; the PR reports matching before-and-after source-map results, but no build was executed during this read-only review.

Is this the best way to solve the issue?

The one-line assignment is the smallest complete repair, reusing the established chunk owner and preserving the existing import graph and budgets.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3e55ac17fe46.

Provenance checked

  • Chat transcript chunk placement keeps the original intent (b821606: Group Chat transcript events and media already loaded together while keeping them out of the route entry.)
  • Dormant Chat code separation keeps the original intent (a36d048: Separate dormant presentation and streaming implementations from first-screen evaluation.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Source +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 0 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 28, 2026, 11:03 AM ET / 16:03 UTC.

@obviyus
obviyus merged commit 620e955 into main Nov 28, 2026
164 of 167 checks passed
@obviyus
obviyus deleted the fix/control-ui-display-content-chunk branch November 28, 2026 16:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…chunk (openclaw#207592)

## What Problem This Solves

openclaw#207505 placed `src/shared/assistant-display-content.ts` in the `chat-transcript-runtime` chunk ("Chat loads events and media together; keep both out of the route entry"). The same module also had an older case in the `deferred-ui-support` list, which made a duplicate `case` and failed lint. openclaw#207548 and openclaw#207550 each removed one of the two copies, so main now has no case for the module. It falls through to the Chat route boot chunk, `control-ui-boot-chat`, which openclaw#207505 meant to keep it out of.

## Why This Change Was Made

Restore the one case in the `chat-transcript-runtime` list, as openclaw#207505 intended. The module's only importers, `ui/src/pages/chat/chat-gateway.ts` and `ui/src/pages/chat/chat-live-events.runtime.ts`, are already in that list. There is still only one case for the module, so lint stays clean.

## User Impact

No visible change. Chat makes the same number of startup requests, and its boot entry is slightly smaller.

## Evidence

`pnpm ui:build` and `scripts/check-control-ui-performance.mts` on main 4d25e66 and on this head (`--base-dist` main build): 0 violations on both.

| | main 4d25e66 | this head |
|---|---|---|
| Module location (source maps) | `control-ui-boot-chat` | `chat-transcript-runtime` |
| `control-ui-boot-chat` chunk | 971,819 B raw / 288,708 B gzip | 971,607 B raw / 288,646 B gzip |
| `chat-transcript-runtime` chunk | 80,684 B raw / 28,375 B gzip | 80,862 B raw / 28,436 B gzip |
| Chat boot JS (perf check) | 18 requests, 1,336,210 B gzip | 18 requests, 1,336,203 B gzip (limit 1,336,272 B) |
| New Session boot JS | 16 requests, 819,989 B gzip | 16 requests, 819,989 B gzip |
| CSS (startup, Chat, total) | unchanged | unchanged |

`node scripts/run-oxlint.mjs ui/config/control-ui-chunking.ts`: 0 errors, one case for the module.

Co-authored-by: Ayaan Zaidi <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant