Skip to content

Split runtime RPC server responsibilities - #17270

Merged
nwparker merged 70 commits into
mainfrom
ra/max-lines-bottom-31-runtime-rpc
Aug 30, 2026
Merged

nwparker merged 70 commits into
mainfrom
ra/max-lines-bottom-31-runtime-rpc

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3
Prod 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2013 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1889 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​124

Summary

  • split the 1,894-line runtime RPC server into a 23-line public facade plus 13 focused state, admission, binary routing, lifecycle, network exposure, pairing, mobile pairing, and shutdown modules
  • preserve the exact RPC names, authorization boundaries, mobile allowlist, long-poll accounting, pairing serialization, WebSocket widen/recovery and stop ordering, metadata publication, binary routing, Promise behavior, and public facade
  • reduce the max-lines baseline from 56 entries to 55; every new TypeScript module is at most 265 lines

Stacked on #17268.

Validation

  • pnpm tc
  • direct runtime RPC suite: 18 files, 143 tests passed
  • structured agent-session cross-version harness: 10/10 passed
  • direct Oxlint with --deny-warnings
  • pnpm run check:code-quality:changed — zero findings
  • pnpm run check:max-lines-ratchet — 55 grandfathered suppressions
  • pnpm run check:runtime-electron-ratchet
  • pnpm run check:reliability-gates
  • changed-file formatting and git diff --check
  • exact 41 method bodies, 44 state fields, constructor, 29 top-level declarations, 521 runtime literals, 249 call sites, 152 non-suppression comments, nine-symbol public facade, and 14-node/27-edge acyclic graph reconciliation
  • refactor audit and second semantic pass across authorization, allowlisting, long-poll release, pairing generation, listener widening/recovery, shutdown races, metadata ownership, and binary abort handling

The terminal cross-version harness currently passes 4/5 on both this branch and its pristine parent. Both fail the same stale expectation that snapshot starts omit terminalOwner; this refactor does not touch terminal frames or publication.

Visual proof is N/A because this is an internal runtime RPC server decomposition with no intended rendered UI change.

…ax-lines-bottom-10-automation-dispatch-events
…lines-bottom-20-cdp-bridge

# Conflicts:
#	src/main/browser/cdp-bridge.ts
…ax-lines-bottom-25-remote-terminal-multiplexer
…1-runtime-rpc

# Conflicts:
#	config/max-lines-baseline.txt
#	src/renderer/src/hooks/automation-dispatch-completion.ts
@nwparker
nwparker changed the base branch from ra/max-lines-bottom-30-runtime-auth-service to main August 30, 2026 03:22
@coderabbitai

coderabbitai Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 11 minutes.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7fe9c1ff-125e-4310-8045-8fef05d146c1

📥 Commits

Reviewing files that changed from the base of the PR and between cadfc55 and 7a774bb.

📒 Files selected for processing (16)
  • config/max-lines-baseline.txt
  • src/main/runtime/mobile-rpc-allowlist.test.ts
  • src/main/runtime/runtime-rpc.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-binary-routing.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-lifecycle.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-long-poll.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-mobile-method-allowlist.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-mobile-pairing.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-network-exposure.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-pairing-types.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-pairing.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-request-admission.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-shutdown.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-socket-metadata.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-state.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-websocket-dispatch.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 86d9c07 into main Aug 30, 2026
4 of 20 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Extract mobile troubleshoot screen styles

* Split external automation manager

* Split main window service attachments

* Split hosted review creation checks

* Split automation dispatch event handling

* Split settings navigation metadata

* Split daemon initialization lifecycle

* Split GitLab item dialog

* Split relay dispatcher layers

* Split mobile host screen

* Retarget mobile view settings source test

* Split runtime file client layers

* Split ports panel layers

* Split runtime environments pane layers

* Split local PTY provider responsibilities

* Split CDP bridge responsibilities

* Split relay Git handler responsibilities

* Track moved relay Git fetch audit

* Split Linear item drawer responsibilities

* Split telemetry event schema responsibilities

* Split resource usage status responsibilities

* Split remote terminal multiplexer responsibilities

* Split Git worktree responsibilities

* Split Codex hook service responsibilities

* Keep mirrored hook trust type private

* Split web runtime session responsibilities

* Split GitHub project view read path

* Split Claude runtime auth responsibilities

* Split runtime RPC server responsibilities

* Fix F3-speech for stablyai#17123

* Fix F1-cycle for stablyai#17131

* Fix F4-navtest for stablyai#17157

* Fix F2-allowlist for stablyai#17161
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