Repository navigation
perf(main): wrap 89 more eager/derived Zod v4 schemas across 22 shared and Main files in lazyZodSchema - #50444
Merged
Merged
Conversation
nwparker
force-pushed
the
perf/lazy-zod-rpc-extend-batch
branch
from
November 27, 2026 05:40
2b2e3bc to
7ebcfa4
Compare
…d and Main files in lazyZodSchema
…gImagesSchema Mixing the lazy proxy (z.array element) with the materialized schema (.optional() binds methods to the materialized instance) put two objects with registry id CatalogImage into one z.toJSONSchema call, which throws a duplicate-id error in generate:plugin-schemas.
nwparker
force-pushed
the
perf/lazy-zod-top-rpc-contracts
branch
from
November 27, 2026 05:40
6bd4136 to
64d43c9
Compare
nwparker
changed the base branch from
perf/lazy-zod-rpc-extend-batch
to
main
November 27, 2026 05:40
DoozyX
added a commit
to DoozyX/orca
that referenced
this pull request
Nov 28, 2026
Merges stablyai/orca ab26af3 (571 commits) into fork main db01815. Conflict resolutions: - Mobile web bundle: upstream moved the page styles to mobile-web-app-page-styles.mjs and added the React Compiler plugin; the fork moved the aliased package paths to mobile-web-app-aliased-packages.mjs (one React). Both moves kept; the eager budget takes upstream's 12 MiB + 112 KiB, which covers React Compiler's memo caches (fork's 11.25 MiB was below the measured 12,657,291 bytes). - Lazy Zod (stablyai#50444, stablyai#50493): project-group IPC schemas now live in upstream's project-group-ipc-arg-schemas.ts; the fork's ProjectGroupUpdate claudeAccountId moves there. AccountHome uses upstream's lazy definition in structured-agent-session-core-params.ts; the fork's duplicate structured-agent-session-account-home.ts is removed. Baseline pruned. - Lazy main-process imports: commit-message resolvers keep upstream's dynamic imports with the fork's Claude launch scope; window services take upstream's lazy imports and the fork's PrepareClaudeAuth type. - Project groups: upstream lazy-loads the name/delete/suppress dialogs and the header menu content; the fork's local-only "Group settings…" item moves into ProjectGroupHeaderMenuContent and its settings dialog is lazy-loaded the same way. - Status bar: upstream's error alert description (stablyai#51182) is computed over the fork's per-account usage entries, its wrapped status label is carried into the fork's UsageRosterRow, and the refresh uses runWithFinally (stablyai#50419) with the fork's refreshUsage. - Git graph filter: fork's extracted ref source kept (its drain already sits outside the hook, so upstream's runWithFinally change is not needed there). - Agent status counts: upstream's owner-id restructure with the fork's isDerivedChildRow filter. - UI primitives: Button keeps the fork's sm-compact and upstream's toolbar sizes; Input keeps the fork's size prop and upstream's focusFeedback. - i18n: fork gitGraph keys kept; upstream's removed revertConflicts and revertInProgress stay removed (unused). zh 8b9e202e0a uses upstream's 你 wording with the fork's 1 hour default. - Generated: bundled skill guides, manifest and sources regenerated; released-digests is the union of both sides. Claude-Session: https://claude.ai/code/session_01BPjp5yPQp93G7xea8VmfjG
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.
Wraps 89 remaining top-level eager/derived Zod v4 schemas across 22 shared and Main contract files (
structured-agent-session-params.ts,telemetry-daemon-event-schemas.ts,browser-core-params.ts,github-issue-params.ts,github-repo-work-item-params.ts,connector-*-contract.ts,plugin-*-fields.ts,stream-schemas.ts, etc.) inlazyZodSchema.Performance
config/zod-prefer-lazy-baseline.txtfrom 1,341 → 1,244 (-97 eager schemas), bringing Round 14's total baseline reduction to -284 eager top-level Zod schemas.check:changedchecks includingrpc params catalog,zod-prefer-lazy-ratchet, and unit tests pass.