Skip to content

Split Claude runtime auth responsibilities - #17268

Merged
nwparker merged 68 commits into
mainfrom
ra/max-lines-bottom-30-runtime-auth-service
Aug 30, 2026
Merged

nwparker merged 68 commits into
mainfrom
ra/max-lines-bottom-30-runtime-auth-service

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 15 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1829 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1730 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​99

Summary

  • split the 1,814-line Claude runtime auth service into a 91-line public class plus 13 focused state, file, identity, managed-credential, Keychain, read-back, snapshot, preparation, and synchronization modules
  • preserve local and WSL auth routing, ownership probes, serialized mutation and Promise boundaries, live-PTY refresh/read-back safeguards, file and Keychain restoration, snapshot validation, and the exact public type/class facade
  • reduce the max-lines baseline from 57 entries to 56; every new TypeScript module is at most 284 lines

Stacked on #17266.

Validation

  • pnpm tc
  • direct runtime-auth suite: 8 files, 96 tests passed
  • runtime-auth plus rate-limit consumers: 11 files, 127 tests passed
  • final suite with max-lines characterization: 12 files, 142 tests passed
  • direct Oxlint with --deny-warnings
  • pnpm run check:code-quality:changed
  • pnpm run check:max-lines-ratchet — 56 grandfathered suppressions
  • pnpm run check:runtime-electron-ratchet
  • pnpm run check:reliability-gates
  • changed-file formatting and git diff --check
  • exact 75 method bodies/signatures, nine state initializers, 12 non-class declarations, 252 runtime literals, 27 non-suppression comments, two-symbol public facade, and 14-node/22-edge acyclic graph reconciliation

Visual proof is N/A because this is an internal Claude runtime-auth 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
…0-runtime-auth-service

# 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-29-project-view to main August 30, 2026 03:22
@nwparker
nwparker merged commit cadfc55 into main Aug 30, 2026
4 of 20 checks passed
@coderabbitai

coderabbitai Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9cdb308b-b3a3-4a04-a19d-82ca9228578b

📥 Commits

Reviewing files that changed from the base of the PR and between ad8e71e and 64b582b.

📒 Files selected for processing (15)
  • config/max-lines-baseline.txt
  • src/main/claude-accounts/runtime-auth-service.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-credential-identity.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-credential-matching.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-file-storage.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-keychain-snapshots.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-managed-credentials.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-preparation.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-readback.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-runtime-state.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-snapshot-capture.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-snapshot-restore.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-state.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-sync.ts
  • src/main/claude-accounts/runtime-auth/runtime-auth-types.ts

📝 Walkthrough

Walkthrough

Runtime authentication logic was extracted from ClaudeRuntimeAuthService into a layered class hierarchy. New components manage shared types, runtime state, file and Keychain storage, credential identity, account matching, token read-back, snapshot capture and restoration, runtime preparation, and synchronization. ClaudeRuntimeAuthService now extends ClaudeRuntimeAuthSync and forwards construction to the superclass.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

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

* 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