Repository navigation
improve: shrink transcript and draft code loaded with Chat - #201241
Merged
Merged
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 705935cc-2ce4-87eb-8720-8e50769cc40d
Contributor
|
🦞👀 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #200929
What Problem This Solves
Opening Chat downloads internal names in the transcript virtualizer and composer draft persistence that nothing outside those classes uses. They add to a startup download that is already over budget.
User Impact
No visible change. Chat downloads 187 fewer gzip bytes of JavaScript, with no extra requests and no change to transcript scrolling, draft persistence or loading.
Why This Change Was Made
The transcript virtualizer host and composer persistence now use native
#private members, so the production minifier can shorten their internal names. Public interfaces, callback receivers, initialization order and scheduling are unchanged. Both are used as plain class instances: no proxies, Solid store wrapping, serialization or private-name lookups. Two constructor parameter properties stay TypeScript-private to keep the change inside the file's lint limits.Evidence
The paired performance comparison against
4f08bdfc2118cebfd48c1b7153365a52139ee181passed: Chat boot JS −187 B gzip, New Session −29 B, startup unchanged, request counts unchanged at 21, 17 and 3. 121 transcript tests and 43 composer, account-handoff and outbox tests passed, along with lint, formatting, and the UI and Chat test typechecks.Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by