Skip to content

perf(main): wrap 89 more eager/derived Zod v4 schemas across 22 shared and Main files in lazyZodSchema - #50444

Merged
nwparker merged 2 commits into
mainfrom
perf/lazy-zod-top-rpc-contracts
Nov 27, 2026
Merged

nwparker merged 2 commits into
mainfrom
perf/lazy-zod-top-rpc-contracts

Conversation

@nwparker

@nwparker nwparker commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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.) in lazyZodSchema.

Performance

  • Prunes config/zod-prefer-lazy-baseline.txt from 1,341 → 1,244 (-97 eager schemas), bringing Round 14's total baseline reduction to -284 eager top-level Zod schemas.
  • Zero negative tradeoffs: all 41 check:changed checks including rpc params catalog, zod-prefer-lazy-ratchet, and unit tests pass.
Files Added Deleted Net
Test 0 0 0 0
Prod 23 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​905 $\color{#cf222e}{\Huge{\mathbf{−}}}$​741 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​164

@nwparker
nwparker force-pushed the perf/lazy-zod-rpc-extend-batch branch from 2b2e3bc to 7ebcfa4 Compare November 27, 2026 05:40
…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
nwparker force-pushed the perf/lazy-zod-top-rpc-contracts branch from 6bd4136 to 64d43c9 Compare November 27, 2026 05:40
@nwparker
nwparker changed the base branch from perf/lazy-zod-rpc-extend-batch to main November 27, 2026 05:40
@nwparker
nwparker merged commit a21f890 into main Nov 27, 2026
3 checks passed
@nwparker
nwparker deleted the perf/lazy-zod-top-rpc-contracts branch 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant