Skip to content

refactor(scripts): flatten repo scripts and harden e2e teardown - #242

Open
John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
fix/windows-terminal-teardown
Open

John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
fix/windows-terminal-teardown

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@cursor

cursor Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR Summary

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).

Reviewed by Cursor Bugbot for commit 4a6e9c5. Configure here.

@jdalton John-David Dalton (jdalton) changed the title Fix Windows terminal screenshot teardown fix(test): fix Windows terminal screenshot teardown Nov 21, 2026
@jdalton 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
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