Skip to content

Split external automation manager - #17149

Merged
nwparker merged 17 commits into
mainfrom
ra/max-lines-bottom-7-external-manager
Aug 30, 2026
Merged

nwparker merged 17 commits into
mainfrom
ra/max-lines-bottom-7-external-manager

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​491 $\color{#cf222e}{\Huge{\mathbf{−}}}$​444 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​47

Summary

  • split external automation discovery, local command execution, SSH relay access, runs pagination, and mutations into focused modules
  • preserve the scoped manager facade, public exports, relay method names, and request payloads
  • remove the resolved max-lines suppression and baseline entry

Validation

  • pnpm tc
  • pnpm run check:code-quality:changed
  • pnpm check:max-lines-ratchet
  • pnpm test src/main/automations/external-manager.test.ts src/main/automations/external-manager-scoped.test.ts src/main/automations/external-automation-owner-guard.test.ts src/main/automations/external-automation-manager-cache.test.ts src/main/automations/external-automation-probe-scheduler.test.ts

Stacked on #17146.

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR splits the external automation manager into focused modules while retaining the existing facade and scoped request flow.

  • Separates local and remote discovery, command execution, relay handling, job-ID validation, runs pagination, and mutations.
  • Preserves the facade exports, scoped ownership resolution, cache invalidation, relay method names, and request payloads.
  • Removes the external manager from the max-lines baseline.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/main/automations/external-manager.ts Retains the scoped manager facade and public exports while delegating operational behavior to focused modules.
src/main/automations/external-manager-discovery.ts Moves local and SSH manager discovery without an identified behavioral change.
src/main/automations/external-manager-mutations.ts Preserves provider action mapping, Hermes argument construction, relay payloads, and local run-count cache invalidation.
src/main/automations/external-manager-runs.ts Preserves bounded pagination, Hermes run mapping, and structured unsupported-relay translation.
src/main/automations/external-manager-relay.ts Centralizes active-multiplexer checks and structured JSON-RPC method-not-found handling.
src/main/automations/external-manager-local-command.ts Preserves argv-based process execution and bounded lookup and mutation timeouts.
src/main/automations/external-manager-job-id.ts Extracts the existing external job-ID validation unchanged.
config/max-lines-baseline.txt Removes the now-split external manager from the max-lines exception baseline.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  IPC[Automation IPC] --> F[external-manager facade]
  F --> S[Scoped ownership resolution]
  S --> D[Discovery]
  S --> R[Runs pagination]
  S --> M[Mutations]
  D --> L[Local command and job files]
  D --> X[SSH relay]
  R --> J[Job ID validation]
  R --> X
  M --> J
  M --> L
  M --> X
  S --> C[Manager cache and probe scheduler]
Loading

Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

@nwparker
nwparker changed the base branch from ra/max-lines-bottom-6-mobile-troubleshoot to main August 30, 2026 03:07
@nwparker
nwparker merged commit 7b5bed9 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: 3a61a345-542b-4bfe-bd2e-4a162fa5d243

📥 Commits

Reviewing files that changed from the base of the PR and between 5f75b24 and 955ad53.

📒 Files selected for processing (8)
  • config/max-lines-baseline.txt
  • src/main/automations/external-manager-discovery.ts
  • src/main/automations/external-manager-job-id.ts
  • src/main/automations/external-manager-local-command.ts
  • src/main/automations/external-manager-mutations.ts
  • src/main/automations/external-manager-relay.ts
  • src/main/automations/external-manager-runs.ts
  • src/main/automations/external-manager.ts

📝 Walkthrough

Walkthrough

The change splits external automation management into focused modules. New code handles local and remote manager discovery, job ID validation, local CLI execution, SSH relay errors, provider mutations, and Hermes run listing. The main external manager module now delegates to these modules and re-exports the public mutation and run-listing functions. The max-lines baseline no longer allowlists the former monolithic implementation.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 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

* Fix F3-speech for stablyai#17123

* Fix F1-cycle for stablyai#17131
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