Skip to content

fix: chat startup loads unnecessary session setup text - #147973

Merged
steipete merged 3 commits into
mainfrom
codex/lazy-project-picker-copy
Sep 14, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/lazy-project-picker-copy

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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:

Before: New Session setup

Synthetic New Session setup after:

After: New Session setup

@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@steipete steipete self-assigned this Sep 14, 2026
@steipete
steipete marked this pull request as ready for review September 14, 2026 06:00
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 3:59 AM ET / 07:59 UTC (Revision 4).

ClawSweeper review

What this changes

Moves 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
Reviewed head: 5633eca6fb632624f1fc49bf1fbc289492987681

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, policy-consistent patch with preserved values, useful validation evidence, and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer classification exempts this internal loading optimization from the external-contributor proof gate. Inspected screenshots support unchanged setup appearance; reported build measurements and browser scenarios address loading and registration, but were not independently rerun.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer classification exempts this internal loading optimization from the external-contributor proof gate. Inspected screenshots support unchanged setup appearance; reported build measurements and browser scenarios address loading and registration, but were not independently rerun.
Evidence reviewed 8 items Applicable repository policy: Read the full root and UI AGENTS.md files. UI policy explicitly requires synchronous registration at lazy consumers while preserving shared eager text and the existing English object. No maintainer-notes directory was present.
Catalog cutover preserves values: Read-only comparison found 88 relocated keys, no changed relocated values, and no changed retained values. Every identified production consumer registers the existing catalog; the only matching reference outside New Session is the updated lobster test helper. Registration retains the shared en.newSession object.
Lazy loading boundary: The route dynamically imports its loader and page entry. The existing boot manifest assigns the setup catalog exclusively to New Session, and the host-only catalog composer already includes its catalog data. No Codex runtime or protocol dependency is introduced.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +56, Tests +30. Total +86 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 21 162 106 +56
Tests 2 40 10 +30
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 23 202 116 +86

Review metrics

Metric Value Why it matters
Translation preservation 88 keys relocated; 0 value changes The optimization preserves existing English copy rather than introducing translation churn.
Production versus test growth Production +56 lines; tests and support +30 lines Production growth supplies consumer-local registration required by UI policy; test growth establishes genuine reader positioning.

Root-cause cluster

Relationship: canonical
Canonical: #147973
Summary: This PR owns the focused setup-text cutover; other open PRs carry or partially overlap that work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a bounded Control UI startup optimization with preserved visible behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied maintainer classification exempts this internal loading optimization from the external-contributor proof gate. Inspected screenshots support unchanged setup appearance; reported build measurements and browser scenarios address loading and registration, but were not independently rerun.

Evidence

What I checked:

  • Applicable repository policy: Read the full root and UI AGENTS.md files. UI policy explicitly requires synchronous registration at lazy consumers while preserving shared eager text and the existing English object. No maintainer-notes directory was present. (ui/AGENTS.md:30, 5633eca6fb63)
  • Catalog cutover preserves values: Read-only comparison found 88 relocated keys, no changed relocated values, and no changed retained values. Every identified production consumer registers the existing catalog; the only matching reference outside New Session is the updated lobster test helper. Registration retains the shared en.newSession object. (ui/src/i18n/locales/en-new-session-setup.ts:162, 5633eca6fb63)
  • Lazy loading boundary: The route dynamically imports its loader and page entry. The existing boot manifest assigns the setup catalog exclusively to New Session, and the host-only catalog composer already includes its catalog data. No Codex runtime or protocol dependency is introduced. (ui/src/pages/new-session/route.ts:9, 5633eca6fb63)
  • Resize regression coverage remains meaningful: The test now waits for end anchoring, sends a native wheel gesture, and verifies visible message content away from both ends. Original anchor identity, 120-pixel drift, viewport widths, and end-pin assertions remain. The production offset observer cancels pending scrolling on wheel input. (ui/src/e2e/chat-resize-anchor.e2e.test.ts:129, 5633eca6fb63)
  • Still distinct from current main and release: Fetched main still contains the relocated setup strings in its eager English catalog. A GitHub contents read at the supplied latest release, v2026.9.4, likewise confirmed eager message-placeholder, terminal-hint, cloud-recovery, and checkout text. No merged fixing PR establishes this cutover as already implemented. (ui/src/i18n/locales/en.ts:964, 069710f909f0)
  • Captured proof and validation: Inspected both downloaded PR screenshots: they are identical 1280×720 images with SHA-256 35990ae213842b66e19706c2e7c3bf04a9962207347b10451016cca9f3d8e249 and show preserved setup labels. The supplied body snapshot reports 357,493 gzip bytes against an unchanged 361,938-byte limit, source-map isolation, catalog parity, and focused browser validation. Images demonstrate appearance only; build and runtime measurements were not independently rerun. (5633eca6fb63)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-14T06:09:48.963Z sha 75b7446 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T06:28:47.387Z sha 7767a3f :: blocked before merge. :: none
  • reviewed 2026-09-14T07:04:23.424Z sha f7989bc :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/lazy-project-picker-copy branch from 75b7446 to 7767a3f Compare September 14, 2026 06:17
steipete added a commit that referenced this pull request Sep 14, 2026
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.
@steipete
steipete force-pushed the codex/lazy-project-picker-copy branch from 7767a3f to f7989bc Compare September 14, 2026 06:56
@steipete steipete changed the title fix: project setup text inflates chat startup fix: chat startup loads unnecessary session setup text Sep 14, 2026
@steipete
steipete force-pushed the codex/lazy-project-picker-copy branch from f7989bc to ce74b63 Compare September 14, 2026 07:39
steipete added a commit that referenced this pull request Sep 14, 2026
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.
@steipete
steipete force-pushed the codex/lazy-project-picker-copy branch from ce74b63 to 5633eca Compare September 14, 2026 07:47
@steipete
steipete merged commit d72c1be into main Sep 14, 2026
140 checks passed
@steipete
steipete deleted the codex/lazy-project-picker-copy branch September 14, 2026 08:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 14, 2026
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.
vincentkoc added a commit that referenced this pull request Sep 14, 2026
* 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)
  ...
steipete added a commit that referenced this pull request Sep 14, 2026
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.
steipete added a commit that referenced this pull request Sep 14, 2026
* 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.
vincentkoc added a commit to nvtoroy/openclaw that referenced this pull request Sep 15, 2026
* 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)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
)

* 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.
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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