Repository navigation
test: classify terminal driver input with the current PTY contract - #24560
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ELI5
Terminal tests were sending bytes without saying what caused the input. Production now requires that information to track whether input drives a run.
What Changed
Classify terminal commands, probes, interrupts and simulated typing as
drivinginput in the existing helpers and local/SSH performance tests. Keep their bytes and routing unchanged. Update the fixture's pane-manager shape from the existing production move method and restore the SSH test's missing Page type import.Why
The E2E typecheck exposed omitted required input arguments. Those writes reached a different path through run-activity tracking than real client input. Explicit classification makes the tests exercise the current input contract, including SSH; relying on an absent field would leave that behavior untested. The existing production method type avoids another independently maintained signature.
Linked Issue
N/A — maintainer test audit.
Visual Proof
N/A — test drivers and type declarations only.
Testing
macOS background Electron: five output-scheduler, large-paste and worktree-switch tests passed with two workers. The existing run-facts and input-handler suites passed all 21 tests. E2E typecheck diagnostics are cleared in all six changed files; unrelated existing diagnostics remain. Targeted lint, formatting, changed-code quality and diff checks passed. Docker-backed SSH execution remains for CI; this test-only change retains host routing and sends the same bytes.
Review
Self-reviewed every direct PTY write in the E2E tree, including the generated main-renderer probe script, and checked the input-kind contract. No production wire or UI changes.
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
No platform assumptions were added. Older hosts can still ignore the existing input-kind field; no new opcode or protocol requirement is introduced.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)