Skip to content

test: classify terminal driver input with the current PTY contract - #24560

Merged
nwparker merged 1 commit into
mainfrom
nwparker/test-audit-terminal-input
Oct 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/test-audit-terminal-input

Conversation

@nwparker

@nwparker nwparker commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​16 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​9
Prod 0 0 0 0

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 driving input 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

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

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

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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

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

@nwparker
nwparker merged commit ba9af21 into main Oct 2, 2026
3 of 4 checks passed
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