Repository navigation
fix: chat startup loads unnecessary session setup text - #147973
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:59 AM ET / 07:59 UTC (Revision 4). ClawSweeper reviewWhat this changesMoves 88 English setup strings into the existing lazy New Session catalog, registers them at their consumers, and makes the resize test enter reader mode through native scrolling. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful startup optimization, and no actionable defect was found in the pinned patch. Related work does not supersede it, and the protected maintainer label also precludes automatic closure. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI loads shared English text during startup and additional catalogs when their pages load. This change keeps session-setup text with New Session while preserving immediately available chat and navigation labels. flowchart TD
A[Open Control UI] --> B[Shared English catalog]
B --> C[Chat and navigation labels]
A --> D[Open New Session]
D --> E[Lazy setup catalog]
E --> F[Register setup text]
F --> G[Render session controls]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +56, Tests +30. Total +86 across 23 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep setup-only text behind the existing New Session loading boundary while preserving shared labels, translation values, and startup budgets. Do we have a high-confidence way to reproduce the issue? Yes for the unnecessary eager loading: current main places setup-only strings in the startup English catalog. The exact compressed-budget failure was reported in supplied evidence, not rerun during this read-only review. Is this the best way to solve the issue? Yes. Extending the existing lazy catalog follows the established owner boundary, preserves translation values, and avoids a parallel loading mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 069710f909f0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
75b7446 to
7767a3f
Compare
Reuse the existing lazy project catalog and sidebar fixture simplification from #147973. Preserve full-render timing limits while scheduling their owner after other UI projects across runner routes.
7767a3f to
f7989bc
Compare
f7989bc to
ce74b63
Compare
Reuse the existing lazy project catalog and sidebar fixture simplification from #147973. Preserve full-render timing limits while scheduling their owner after other UI projects across runner routes.
ce74b63 to
5633eca
Compare
|
Merged via squash.
|
Reuse the existing lazy project catalog and sidebar fixture simplification from #147973. Preserve full-render timing limits while scheduling their owner after other UI projects across runner routes.
* commit 'a08cdc50bc049074ed7ad2db9e18e0ed3f5415ec': (81 commits) perf: reuse stateless plugin scope defaults (#148080) fix(gateway): flush slow-consumer 1008 close frame before terminating socket (#147707) fix: keep model catalogs loading during other session updates (#147878) fix: show queued external chat messages and their source (#147848) refactor(chat): share math label configuration (#148073) perf(ui): trim eager debug overlay icon payload (#147954) improve(logbook): sample batch frame metadata in SQLite (#147999) fix(ui): dismiss suggested task cards without waiting (#148021) fix(maturity): cover governance, interoperability, fleet, and state (#143528) chore(ui): restore core lint and startup budget checks (#148010) fix: chat startup loads unnecessary session setup text (#147973) perf: speed up fresh cloud worker activation (#147945) fix: recover PR preparation after committed merge conflicts (#148063) test(plugins): isolate ClawHub Docker fixture identity (#148074) fix(release): acknowledge ClawHub risk on moving installs (#148041) fix: restore context reads for installed official Discord and Slack plugins (#143341) fix: identify source capsule filesystem failures (#147778) fix(linux): keep Quick Chat widgets bound to their Gateway (#146049) refactor(infra): consolidate update campaign reset ownership (#146555) refactor: simplify Gateway health response parsing (#147834) ...
Reuse the existing lazy project catalog and sidebar fixture simplification from #147973. Preserve full-render timing limits while scheduling their owner after other UI projects across runner routes.
* fix(ui): settings reload can overflow the browser stack * refactor(ui): unify pending configuration load tracking * refactor(ui): track config loads in the operation owner * refactor(ui): let config drain own pending draft flushing * fix(ui): restore CI budgets and isolate render timing checks Reuse the existing lazy project catalog and sidebar fixture simplification from #147973. Preserve full-render timing limits while scheduling their owner after other UI projects across runner routes. * fix(ci): complete timing ownership and split transcript lifecycle tests Preserve exact hosted test inventory and isolated MCP lifecycle coverage. Keep renderer timing assertions and lint limits unchanged.
* commit '7d485aa2e89af7fdbd09e8ed0489b06d250b07e3': test(scripts): check the configurable ClawHub sweep spec fix: show queued external chat messages and their source (openclaw#147848) refactor(chat): share math label configuration (openclaw#148073) perf(ui): trim eager debug overlay icon payload (openclaw#147954) improve(logbook): sample batch frame metadata in SQLite (openclaw#147999) fix(ui): dismiss suggested task cards without waiting (openclaw#148021) fix(maturity): cover governance, interoperability, fleet, and state (openclaw#143528) chore(ui): restore core lint and startup budget checks (openclaw#148010) fix: chat startup loads unnecessary session setup text (openclaw#147973) perf: speed up fresh cloud worker activation (openclaw#147945) fix: recover PR preparation after committed merge conflicts (openclaw#148063) test(plugins): isolate ClawHub Docker fixture identity (openclaw#148074) fix(release): acknowledge ClawHub risk on moving installs (openclaw#148041) fix: restore context reads for installed official Discord and Slack plugins (openclaw#143341) fix: identify source capsule filesystem failures (openclaw#147778) fix(linux): keep Quick Chat widgets bound to their Gateway (openclaw#146049) refactor(infra): consolidate update campaign reset ownership (openclaw#146555) refactor: simplify Gateway health response parsing (openclaw#147834)
* fix: keep project picker text out of chat startup * fix: load New Session setup text with its page * test: enter reader mode before resizing chat
) * fix(ui): settings reload can overflow the browser stack * refactor(ui): unify pending configuration load tracking * refactor(ui): track config loads in the operation owner * refactor(ui): let config drain own pending draft flushing * fix(ui): restore CI budgets and isolate render timing checks Reuse the existing lazy project catalog and sidebar fixture simplification from openclaw#147973. Preserve full-render timing limits while scheduling their owner after other UI projects across runner routes. * fix(ci): complete timing ownership and split transcript lifecycle tests Preserve exact hosted test inventory and isolated MCP lifecycle coverage. Keep renderer timing assertions and lint limits unchanged.
What Problem This Solves
Fixes chat startup loading New Session-only text and exceeding its compressed JavaScript budget.
User Impact
Project, device, cloud, and native-terminal setup text loads with New Session. Chat and navigation keep their shared labels available immediately. All displayed text and setup behavior are preserved; no operator action is required.
Why This Change Was Made
Move 88 setup-only English strings into the existing lazy New Session catalog and register that catalog synchronously at its consumers. Compiled source maps confirm the catalog and consumers remain exclusively in the New Session chunk. The shared English object and catalog composition owner stay intact.
The resize fixture now enters reader mode with one native wheel gesture before asserting anchor preservation. It verifies a visible message away from both ends and retains every original identity, drift, and end-pin assertion.
Related: #147773. This clears the startup-budget blocker affecting #147878.
Evidence
On the tested base
4ddb9ed21245, rebuilt startup JavaScript is 357,493 gzip bytes, leaving 4,445 bytes below the unchanged 361,938-byte limit, with seven startup requests. Compiled source maps keep the moved catalog and its consumers exclusively in the New Session chunk.All 9,148 current English entries and the materialized key/value maps for all 20 other locales are unchanged from the current main base. Keyless i18n baseline and verification pass without generated-output changes.
The final cutover passes 303 focused setup, navigation, recovery, and helper tests plus 24 browser scenarios covering setup, cloud, native terminals, and workspaces. Fresh final-source screenshots are byte-identical to the inspected before images.
Final full changed checks and fresh independent P2 review pass, including a redundant Boolean temporary cleanup that keeps the existing line cap intact. All 44 affected preference and placement cases passed after that cleanup. Fresh current-base validation passes all 40 transcript tests and all 24 New Session browser scenarios. Both resize E2E scenarios pass with every original identity, drift, and end-pin assertion retained; reintroducing the historical width cache wipe still fails the anchor assertion. The test explicitly requires visible message content and a reader position away from both ends. Main now contains the owner-scoped markdown timing repair from #147911, retaining the same inputs and 100 ms limits. Hosted CI passed on the exact published head.
Synthetic New Session setup before:
Synthetic New Session setup after: