Repository navigation
refactor: group local PTY provider and shell readiness modules - #37235
Conversation
|
No actionable comments were generated in the recent review.
|
Upstream stablyai#37235 moved local-pty-shell-ready-bash-rcfile.ts and local-pty-shell-ready-wrapper-generation.test.ts into src/main/providers/local-pty/. This PR changes both files, and GitHub reported the PR as conflicting. Git's rename detection merges the change into the moved files without conflict, so this merge commit has no manual resolution. The PR's diff against main is the same two __orca_osc133_preexec changes and their tests, now at the new paths. Since the previous merge, the rcfile sources changed only in import paths, and the shell blocks that they import did not change. Validation (Node 24.18.0, Bun 1.4.4, pnpm 12.14.0, frozen-lockfile install in the project-local layout as in CI; systemd's 80-systemd-osc-context.sh hidden in a user and mount namespace): - the two changed test files: 68/68 pass on Bun with bash 5.3.9. - on Node with bash 5.3.9, the six test files that use the bash rcfile modules, repro-13767-shell-ready-marker-lost-to-exec.test.ts and shell-ready.test.ts: 8 files pass (128 passed, 4 skipped). - oxlint and oxfmt on the four PR files and pnpm tc:node pass. - the pre-commit hook ran on the merge; oxfmt --check found no format change in the staged upstream files. Not run: bash 5.0 and 4.4 (the generated script did not change since the previous merge), full pnpm test, lint, build; macOS, Windows, SSH. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Groups the local PTY provider, spawn lifecycle, foreground inspection, and shell-readiness implementation with their tests under
src/main/providers/local-pty/(47 file moves). Updates callers and test/CI routing together, uses concrete implementation owners, and removes forwarding exports from the moved modules. The generic working-directory validator remains at its existing owner.Preserves the current physical-PTY foreground logic and existing platform, remote, and folder-workspace behavior. Reliability commands follow the moved tests; historical execution receipts retain their original commands with current aliases where needed.
Validation: 452 tests across 33 suites, plus a 34-test rerun after consolidating duplicate owner imports; node typecheck, lint/format, changed-code quality, test routing, process-host imports, flaky-pattern checks, and all 154 reliability gates pass locally. Independent native audits and merge-parent preservation checks are required before merge. Planning and evidence remain local.