Skip to content

refactor(runtime): group inventory and composer methods with their owners - #27062

Closed
nwparker wants to merge 3 commits into
nwparker/setup-authority-dispatcher-10-09from
nwparker/session-backend-module-extraction-10-09
Closed

nwparker wants to merge 3 commits into
nwparker/setup-authority-dispatcher-10-09from
nwparker/session-backend-module-extraction-10-09

Conversation

@nwparker

@nwparker nwparker commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Moves existing terminal inventory and agent startup code into the runtime modules that already own those tasks. App behavior stays the same.

What Changed

The browser tab module no longer contains the two PTY inventory refresh methods, and the workspace activation module no longer contains the composer readiness and foreground checks. Their signatures and bodies move unchanged into the existing inventory and terminal provisioning modules. No inheritance links, fields, constructors, wire messages, or caches change.

Why

The session ownership fix in #27030 takes two files above the 300-line limit. This prerequisite gives those files room by grouping related methods together, without introducing another runtime layer or suppressing the limit.

Linked Issue

Stacked on #27025; prerequisite for #27030. No new issue for this maintainer refactor.

Visual Proof

N/A — this only moves existing methods and has no visual or interaction change.

Testing

  • Automated tests added/updated, or explained why not below
  • I manually tested these changes locally

On macOS, the same 115 existing close, browser, startup, and captured readiness tests pass before and after the move. Another 46 existing inventory publication and census tests pass with both the exact base module bodies and the current bodies, using the unchanged test cases and cold module loading. New tests are unnecessary for a pure move. These controls ran on the original parent before and after the refactor; the subsequent normal merges of the parent’s repository lookup and wire compatibility test corrections preserve every tested refactor file byte-for-byte.

All 35 method signatures and bodies across the four files are byte-identical; all 212 call expressions and 69 method literals match. Both existing class chains remain unchanged, with no fields, constructors, or super access added. Node and CLI type checks, regular full-file lint and anti-slop on all four files, formatting, the changed-code quality gate, and the suppression ratchet pass. These are local macOS controls; Linux, Windows, live SSH, and native app flows were not run for this prerequisite.

Review

Two source reviews confirm the complete diff, exact method and import preservation, test evidence, and unchanged parent files. Source and dependency boundaries were checked against the actual base. No new human coauthor footer is added because this preserves existing source already in the branch ancestry.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The existing execution-host branches and mixed-version behavior are unchanged. The backend fixture mock correction is a separate follow-on, outside this pure refactor.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@OrcaWin

OrcaWin commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

Closing: this pure method regrouping is net-zero (+134/-134) and stacked on #27030, which has been closed. The runtime files it touches were rewritten on main by the owner-routing work, so rebuilding a churn-only move on top of them isn't worth the risk.

@OrcaWin OrcaWin closed this Oct 11, 2026
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.

2 participants