Repository navigation
improve: ship less JavaScript when opening Chat or New Session - #201225
Open
roboclaw-bot wants to merge 5 commits into
Open
roboclaw-bot wants to merge 5 commits into
roboclaw-bot wants to merge 5 commits into
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 55c611ad-2188-8262-aa5a-602c41697ffc
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. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: fec1edeb-0c36-8785-9d75-eabac623f31e
roboclaw-bot
added a commit
that referenced
this pull request
Nov 18, 2026
Share repeated schema predicates across the activity, session-input and transcript validators already loaded together. Integrates the scoped source commit 865b4c2 from #201225. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
This branch has not been deployed
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
Chat and New Session download repeated protocol validation code when they open. The duplicate checks take up space in both routes’ startup bundles, which are already over budget.
User Impact
No visible change. Chat downloads 1,105 fewer gzip bytes of JavaScript and New Session 1,352 fewer. Validation rules and request counts are unchanged.
Why This Change Was Made
The activity, session-input, and transcript validators already shipped in the same shared boot chunk. The generator now compiles them as one group, so TypeBox emits repeated checks once, without moving any validation to a later load. Validator groups that load independently stay separate.
Evidence
The paired performance comparison against
392506102468cb92aeb66a6a39ef7b3130583070passed: Chat boot JS −1,105 B gzip (21 → 21 requests), New Session −1,352 B (17 → 17), startup unchanged. Against the newer basefb34e996(after other paydowns landed) it still measures −293 B Chat and −310 B New Session. Generator reproducibility, schema parity, focused consumer tests,ui:validators:check,ui:boot-manifest:gen, lint, and the UI and scripts typechecks passed.Requested by @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by