Skip to content

fix: keep chat composers responsive during background updates - #173114

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/ui-invalidation-composers-20261015
Oct 15, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/ui-invalidation-composers-20261015

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: typing and composer menus repeat unrelated roster work and rebuild content when background sessions update.

User Impact

User impact: chat and New Session keep the active input, picker content, focus, and caret stable during background row updates. Actual permission, capability, account, runtime, inventory, and recent-session changes still update normally. No configuration or data migration is required.

Why This Change Was Made

Scope work at its producer rather than suppressing shared renderer updates: retain plus-menu content behind sampled display values, keep permission choices and placement artwork with their mounted owners, and prepare welcome recents from the session owner while parking bounded display facts during drafting. The mascot observes real boxed collision controls, not every button in hidden model catalogs.

The added presentation-input and welcome projection code makes mutable updates and lifecycle ownership explicit; callbacks still use current owner props. Shared Menu/LitContent and model-cache authority remain unchanged.

Evidence

  • Current correction: focused input/recents E2E 1/1 (1.873s test, 7.35s Vitest wall), targeted test types, one-file lint (zero warnings/errors, 20.7s), format, and diff checks passed. This uses the unchanged 0840 production-owner bundle; the corrected test is byte-identical to its independently reviewed candidate. The other 23 PR files remain byte-identical to green head 0840.
  • Retained integrated-head evidence (0840): effective-tools host and five-view menu regressions 21/21; production input/recents and native connector/tool-identity E2Es 1/1 each, UI/test types, 24-file lint/format, and production build passed. These are unchanged-owner evidence, not new-head execution claims.
  • Shared fixture repair: canonical main commit 6b5f0f4c keeps the synthetic changed row inside the shared 200-row window and crosses the full collection deadline under a paused clock. Exact-main production build and E2E 1/1 passed (2.431s test, 23.50s Vitest wall including 16.18s build), as did targeted types/lint/format. The exact all-method zero-RPC assertion and 500-session/2,001-model scale remain intact.
  • The actual prospective old-head merge then exposed a mixed host/browser clock in this PR's positive visible-recents receipt; that positive failed while earlier guards passed. Sampling the browser clock repairs that owning test only. Both the canonical prefix and PR-specific adaptation received complete independent P0–P2 review; no product change, weaker assertion, sleep, or CI rerun was used.
  • Retained original reviewed-tree evidence: Chromium and Linux WebKit replay passed four large-catalog composer scenarios plus eight account/runtime/placement scenarios. The large fixture admits 500 session rows and 2,001 model choices. This is unchanged-owner evidence, not a new-head 12/12 claim.
  • In that original matrix, unrelated row publications produced zero child-list mutations on the tested chat/New Session composers, open/closed plus menus, Where, and project lists; input/search identity, text, focus, and caret survived. Positive selections sent correct scoped patch/create requests, and relevant inventory refreshed once. Hidden model-option geometry reads fell to zero. The welcome owner regression proves immutable bounded parking, reveal catch-up, relevant mutable updates, and source/subscription disposal.
  • Initial CI found a type-import cycle; unchanged menu contracts were moved to one leaf and all internal type callers migrated. The exact cycle guard reported zero cycles. Complete delta review found one missing type import, corrected and typechecked before publication. Original full-context canonical P0–P2 review is clean; verified findings are resolved.
  • Shared Talk/video/diagnostics CI roots were reproduced and repaired canonically on main commit 9e3514ae, then integrated specifically for those failed gates. The merge was conflict-free; 23 reviewed PR files remain byte-identical, and the sole overlapping host retains main's loader plus the leaf-type import. A separate committed-source integration assessment confirmed that ownership.
  • CI: exact current head 286039bd passed attempt 1 of run 38747426453: 64 terminal jobs (38 successful, 26 skipped), zero pending/failed. Successful jobs recorded 16,225 aggregate elapsed seconds (not billing or UI latency). security-fast, openclaw/ci-gate, dependency-review, and security-sensitive-review passed. The 92-check exact-head inventory was fully terminal with no failures. Prior integrated head 0840ea8f passed run 38742729392, recording 17,357 aggregate job-elapsed seconds; the earlier failed run 38733923859 recorded 14,458. These remain separate head/attempt evidence. No inherited-failure exception or CI rerun was used.
  • Linux WebKit is emulation, not a physical iPhone/software-keyboard test. No live providers, accounts, devices, cloud operations, or deployment were exercised.
Retained original-tree regression costs and measurement boundaries

Each changed unit file was run individually through the repository wrapper with one worker. Wall seconds below include the wrapper/startup, measured with /usr/bin/time; they are not UI latency or INP.

Regression file Wrapper wall seconds
lobster-pet.test.ts 4.53
lobster-pet-geometry.test.ts 3.12
chat-permission-picker.test.tsx 3.58
chat-composer-menu-invalidation.test.tsx 3.29
placement-invalidation.test.tsx 3.44
draft-welcome.test.tsx 3.42

The production input E2E reported 5.41 seconds of Vitest run wall using the exact prebuilt candidate. No timing thresholds were added. Whole-page sort counters also see legitimate sidebar work, so the deterministic welcome work budget is retained at the production component boundary instead. Remaining model-projection attribute writes are outside this change's zero-child-list claims.

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 15, 2026 12:04
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: ebd9d016-afa7-4fd8-a614-dda344d96985
@clawsweeper

clawsweeper Bot commented Oct 15, 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.

@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 15, 2026
@roboclaw-bot roboclaw-bot added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 15, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 15, 2026 12:12
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 15, 2026
@clawsweeper

clawsweeper Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR retains composer presentation content and narrows background-update work in menus, welcome recents, placement controls, and mascot geometry.

Example: Typing in New Session with 500 sessions and 2,001 model choices while another session updates.

  • Before: Unrelated publications rebuild menu content and repeat welcome-roster and hidden-option geometry work.
  • After: Equal display inputs retain mounted content, faded recents catch up on reveal, and geometry measures boxed controls.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch appears correct and has meaningful mounted regression coverage; runtime confidence rests on reported browser results rather than inspectable execution artifacts.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR is outside the ordinary contributor proof gate; its body reports production Chromium/WebKit replay with retained inputs, scoped selections, and recents catch-up, but supplies no inspectable capture or terminal artifact.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Typing and open composer controls incur unnecessary work when unrelated sessions update.
Reason: The maintainer-authored direction addresses concrete source-level work amplification without adding settings, changing defaults, or replacing domain owners.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: it addresses distinct composer performance problems still present on main, and inspection found no definite introduced bug.

Priority: P2
Reviewed head: 7bb9c368e11db3e052eec76f3870f0d7c3f0a3ed

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported Chromium/WebKit production replays have no inspectable output attached, and base-failing runs for the newly added mounted regressions are not shown.
Agent review details

How this fits together

Gateway-backed UI owners publish session and capability changes; Solid projections and retained Lit content turn those facts into composer controls, welcome recents, and collision geometry.

flowchart TD
  A[Gateway updates] --> B[UI state owners]
  B --> C[Scoped presentation inputs]
  C --> D[Retained composer controls]
  B --> E[Parked welcome projection]
  E --> F[Welcome recents]
  D --> G[Boxed collision geometry]
Loading

Technical review

Best possible solution:

Retain the focused presentation invalidation fixes while preserving current state-owner authority and selection behavior.

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

Current-main source shows broad publications rebuilding menu presentation and repeating roster preparation; supplied mounted regressions target those paths, but no reproduction was executed during this read-only review.

Is this the best way to solve the issue?

The change addresses unnecessary presentation work at its owning boundaries, reuses existing projection lifecycles, and keeps action callbacks and permission checks current.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 42ee153c0950.

Provenance checked

  • Composer menu rendering keeps the original intent (5469173: The native-menu migration unified attachment and capability menus while preserving actions, focus, search, and stable groups.)
  • Permission and placement controls keeps the original intent (74c7b3d: The Solid migration preserved placement choices and synchronous TypeScript ownership; subsequent native-picker work preserved permission restrictions and navigation.)
  • Welcome recent sessions keeps the original intent (d8512fc: The welcome screen displays five recent user-created chats using existing visibility and selected-agent rules.)
  • Mascot collision geometry keeps the original intent (9993778: Composer visitors use measured obstacle-free paths so text and controls take priority; the patch measures enclosing control boxes rather than hidden catalog descendants.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 5469173 adds ui/src/pages/chat/components/chat-composer-plus-menu.tsx:116 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 54691736d026; files: ui/src/pages/chat/components/chat-composer-plus-menu.tsx)
  • RoboClaw: Raw commit 9993778 adds ui/src/components/lobster-pet-scene.ts:194 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 99937786b670; files: ui/src/components/lobster-pet-scene.ts)
  • Vincent Koc: Raw commit 4c44ca1 adds ui/src/pages/new-session/composer.ts:288 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 4c44ca1e58c7; files: ui/src/pages/new-session/composer.ts)

PR surface

Source +257, Tests +483. Total +740 across 24 files. Added test files: 4.

View PR surface stats
Area Files Added Removed Net
Source 17 555 298 +257
Tests 7 521 38 +483
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 1076 336 +740

Labels

Label changes:

  • add P2: Avoidable background work affects composer responsiveness, especially with large catalogs, without establishing a blocked core workflow.
  • 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:

  • P2: Avoidable background work affects composer responsiveness, especially with large catalogs, without establishing a blocked core workflow.
  • 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 October 15, 2026, 8:36 AM ET / 12:36 UTC.

roboclaw-bot and others added 3 commits October 15, 2026 13:24
Merge canonical main to consume the verified Talk, video, and diagnostics repairs required by the failed CI attempt. Preserve main's effective-tools loader and the composer's leaf-type contract.

Co-authored-by: vincentkoc <[email protected]>
Keep the changed fixture row inside the admitted shared recency window. Its prior rank500-to1 promotion correctly requested authoritative membership, unrelated to composer invalidation. Pause the browser clock and cross the complete collection deadline while preserving the exact no-RPC, catalog-work, identity, and positive row/recents guards.

Co-authored-by: vincentkoc <[email protected]>
Integrate verified main fix 6b5f0f4 for the reported authoritative-read fixture failure. The prospective old-head composition exposed a mixed host/browser clock in this PR's positive recents block; retain the independently reviewed browser-clock correction. All 23 other PR files are byte-identical to the prior green head.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit c788f49 into main Oct 15, 2026
104 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/ui-invalidation-composers-20261015 branch October 15, 2026 14:32
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…aw#173114)

* fix: keep chat composers responsive during background updates

Co-authored-by: vincentkoc <[email protected]>

* fix: keep chat composers responsive during background updates

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: ebd9d016-afa7-4fd8-a614-dda344d96985

* fix: break composer menu type import cycle

Co-authored-by: vincentkoc <[email protected]>

* test(ui): qualify new-session typing RPC window

Keep the changed fixture row inside the admitted shared recency window. Its prior rank500-to1 promotion correctly requested authoritative membership, unrelated to composer invalidation. Pause the browser clock and cross the complete collection deadline while preserving the exact no-RPC, catalog-work, identity, and positive row/recents guards.

Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: vincentkoc <[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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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