You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(scripts): flatten repo scripts and harden e2e teardown - #242
The Windows terminal screenshot job could hang while closing PTY sessions, and the e2e build setup was tucked under the test fixture tree. This update makes the test lifecycle explicit and puts build automation and repository scripts in purpose-based paths.
Use Windows-compatible node-pty teardown so Termless sessions exit cleanly.
Build the server through scripts/test/e2e/build.mts from Vitest globalSetup, and launch the declared SERVER_BIN for CLI e2e tests.
Flatten scripts/repo/ into scripts/, retaining useful groups such as npm/, plugin/, hooks/, and util/.
Update imports, package commands, hooks, workflows, tests, and root path resolution for the new script locations.
Low Risk
Narrow vendor patch affecting PTY shutdown; Windows behavior change with unchanged non-Windows kill path.
Overview
Adds a pnpm patch for @termless/core@0.11.0 so PTY teardown works on Windows. Termless’s node-pty backend was always calling ptyProcess.kill() with POSIX signal names; on win32, node-pty expects the zero-argument kill path, so named signals were rejected, errors were swallowed, and screenshot/e2e jobs could hang waiting for PTYs to exit.
The patch changes kill to pass undefined instead of a signal on Windows, while keeping named signals on other platforms. pnpm-workspace.yaml and pnpm-lock.yaml wire the patch into patchedDependencies so installs pick up the fix transitively (including @termless/vterm).
John-David Dalton (jdalton)
changed the title
fix(test): fix Windows terminal screenshot teardown
refactor(scripts): flatten repo scripts and harden e2e teardown
Nov 23, 2026
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Windows terminal screenshot job could hang while closing PTY sessions, and the e2e build setup was tucked under the test fixture tree. This update makes the test lifecycle explicit and puts build automation and repository scripts in purpose-based paths.
scripts/test/e2e/build.mtsfrom VitestglobalSetup, and launch the declaredSERVER_BINfor CLI e2e tests.scripts/repo/intoscripts/, retaining useful groups such asnpm/,plugin/,hooks/, andutil/.