Skip to content

refactor(ipc): group handlers and PTY support by owner - #43339

Merged
nwparker merged 3 commits into
mainfrom
module-layout-v2/ipc-pty-d23e4741
Nov 17, 2026
Merged

nwparker merged 3 commits into
mainfrom
module-layout-v2/ipc-pty-d23e4741

Conversation

@nwparker

@nwparker nwparker commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Group IPC handlers and PTY support into folders named for the features they own, so related code is easier to find.

Files Added Deleted Net
Test 103 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​295 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12635 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12340
Prod 406 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1254 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5940 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4686

What Changed

  • Move 152 production modules into feature folders and update callers to import concrete implementation owners.
  • Remove unused forwarding exports, extract three type definitions into their defining modules, and include the web-facing type owner in its explicit TypeScript project.
  • Apply the reviewed test cleanup alongside the moves: remove 66 whole test files, 228 registrations, and 32 orphaned support files; preserve 79 retained registrations and transport test metadata and baselines.

Why

The IPC root mixes unrelated features, and PTY support mixes spawn, environment, input, and resource ownership. This batch gives them concrete homes without adding barrels or compatibility shims.

Linked Issue

Continuation of the repository folder cleanup; internal maintenance.

Visual Proof

N/A — no intended visual or interaction changes.

Testing

Local platform: macOS. Windows, Linux, WSL, and remote-host coverage is required in hosted CI.

  • macOS: 37 focused files passed, 161 tests passed and 3 platform-dependent cases skipped.
  • Full pnpm tc, CI-equivalent pnpm typecheck:ci --bun-concurrency=2 --bun-threads=2, CLI build, and Electron production build passed.
  • Independent source/body/import, retained-test/support, metadata, and rebase-preservation audits.
  • Required pre-push pnpm check:changed: 37 non-unit checks passed; broad related tests reached the documented three-minute local limit.
  • No new tests; the existing tests and independent move audits validate the change. Reviewed removals deliberately reduce test coverage; no equivalent-coverage claim.
  • Hosted CI passed: all 12 unit shards, aggregate gate, packaging, WSL, SSH, cross-version compatibility, and Windows/Linux persistence; Windows ARM persistence passed on the same-head retry.

pnpm check:changed --maxWorkers=2 --timeout=3: 37 non-unit checks passed; broad related-test selection exceeded three minutes without completion; this is not a full local suite pass. The 37 focused files passed (161 tests; three platform skips). Full hosted unit shards and required checks must pass before merge.

Risk

Level: Medium. Incorrect import relocation could break handler loading or PTY/workspace flows on desktop, WSL, or remote hosts. Incoming main fixes are preserved through an independently checked rebase. Runtime bodies remain unchanged apart from reviewed import/export cleanup; removed unused imports have explicit initialization review. Test removals lose their previous alarms. A plain revert restores the original layout and tests; no saved-data migration.

Review

Independent source, test/support, and rebase audits passed. The full rebased path/mode/blob union matched, including incoming main additions/deletions and WSL feature changes.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer code or registry changes.

Checklist

  • Cohesive IPC/PTY ownership batch
  • Change and risk explained
  • No visual change
  • Self-review and independent audits
  • Cross-platform, remote hosts, mobile callers, and folder workspaces considered
  • Full hosted checks passed

@nwparker
nwparker merged commit 212694c into main Nov 17, 2026
107 of 108 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
Upstream regrouped tests/e2e by feature (stablyai#43628) and moved renderer, IPC and web modules into owner
folders (stablyai#43339, stablyai#43403, stablyai#43435, stablyai#43476, stablyai#43528, stablyai#43575, stablyai#43611). Fork imports, including string
vi.mock paths, now point at the moved modules (fork-follow-upstream-moves.mjs FIX lines). The fork's
own e2e helpers moved with tests/e2e/helpers into tests/e2e/desktop/electron-fixtures (GONE lines):
the fork specs import them there, read the fixture script from that folder, take expect from
@stablyai/playwright-test since orca-app no longer re-exports it, and the scenario context reads
upstream's file-explorer helper from tests/e2e/editor/file-explorer.
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