orca/tests/e2e
Brennan Benson 65c65c37e8
fix(terminal): stop stale PTY resize after worktree reveal (#8502)
* fix(terminal): stop stale PTY resize after worktree reveal

The visibility-resume size readback captures xterm's pre-reveal grid as
its resize target while the applied-size read is in flight. A reveal fit
or snapshot-restore resize can change the grid mid-flight without
queuing a newer request, so the resolved callback "repaired" the PTY
back to the pre-reveal grid — an idle TUI (Claude Code) then redraws
for the wrong grid until a manual resize (refs #7951, #7240).
Instrumented traces show the stale capture on every reveal; correctness
relied on the read winning FIFO against the fit's resize, which busy
daemons and SSH/relay round-trips lose.

Re-measure xterm at resolve time and re-run against the fresh grid
instead of forwarding a stale target. Adds an e2e seam that delays the
readback dispatch to reproduce the losing ordering, unit repros that
fail without the guard, and a hidden-resize/reveal-cycle e2e spec.

* test(terminal): cover single-flight convergence under an oscillating grid

* docs(e2e): note the WINCH bar is illustrative, not a Windows ground truth

The reveal repro asserts on pty:getSize convergence; the bottom-bar TUI
only makes the pane WINCH-reactive. Record that a long-lived process can
miss Node's stdout 'resize' event under Windows ConPTY even when the OS
PTY was resized, so future readers don't add a flaky bar-content check.
2026-07-13 14:17:49 -07:00
..
fixtures Coalesce PTY input write bursts (#7205) 2026-07-02 23:43:35 -07:00
helpers Ssh watcher isolation e2e (#8494) 2026-07-12 23:50:00 -07:00
AGENTS.md
active-view-restart-restore.spec.ts fix: restore the active top-level view across renderer reload (#8265) 2026-07-12 01:40:39 -07:00
activity-agent-pane-isolation.spec.ts Remove stale max-lines lint disables from files under the limit (#7548) 2026-07-06 02:12:32 -07:00
add-project-default-checkout.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
agent-session-live-force-exit-resume.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
agent-session-log-tail-stability.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
agent-session-quit-resume.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
app-menu-paste-ownership.spec.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
artificial-opencode-active-terminal-scroll.ts
artificial-opencode-hidden-pressure-scenario.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
artificial-opencode-hidden-pressure-script.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
artificial-opencode-main-pressure-scenario.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
artificial-opencode-pane-interactions.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
artificial-opencode-revisit-pressure-scenario.ts fix(e2e): repair release e2e suite (parking regression tests, stale/flaky specs, profile switcher gate) (#8486) 2026-07-12 22:40:57 -07:00
artificial-opencode-scroll-measurement.ts
artificial-opencode-scroll-scenario.ts test(e2e): stabilize chronically-failing e2e suite (#7470) 2026-07-05 21:51:32 -07:00
artificial-opencode-synthetic-injection.ts
artificial-opencode-terminal-load.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
automation-hidden-terminal-first-mount.spec.ts fix: background-mount hidden automation worktrees before launch (#6568) 2026-06-28 23:13:03 -07:00
browser-tab.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
capture-opencode-tui-repro.mjs chore(lint): adopt unicorn/prefer-import-meta-properties (error) (#6847) 2026-06-29 23:37:30 -07:00
chinese-ime-chat-input-repro.spec.ts fix(terminal): handle Linux IME candidate digits without composition events (#8241) 2026-07-12 16:30:44 -07:00
combined-diff-scroll-restore.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
computer-linux.e2e.ts
computer-mac-safari.e2e.ts
computer-mac.e2e.ts
computer-windows-store.e2e.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
computer-windows.e2e.ts
daemon-live-session-preservation.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
daemon-slow-health-check-preservation.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
daemon-slow-init-pty-gate.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
dead-terminal-repro.spec.ts
dead-terminal-stress.spec.ts
diff-note-delete.spec.ts
diff-note-edit.spec.ts
droid-notification.spec.ts Remove stale max-lines lint disables from files under the limit (#7548) 2026-07-06 02:12:32 -07:00
editable-context-paste-ownership.spec.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
feature-wall.spec.ts
file-open.spec.ts
floating-mobile-emulator-tab.spec.ts Fix blank/unclosable mobile emulator tab in floating workspace (#6042) 2026-06-22 16:27:33 -07:00
floating-workspace-reopen-webgl-recovery.spec.ts
floating-workspace-shared-glyph-atlas.spec.ts
folder-setup-shallow-priority.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
folder-setup.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
git-no-upstream-polling-churn.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
github-cli-stall-repro.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00
global-setup.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
global-teardown.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
golden-core-flows.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
large-diff-freeze-repro.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
large-diff-repro-fixtures.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
large-file-count-fixtures.ts Fix untracked line-stat cache thrash and add source-control scale benchmark (#8022) 2026-07-09 22:33:55 -07:00
markdown-ordered-list-exit.spec.ts
markdown-prose-reflow.spec.ts Reflow and edit hard-wrapped prose within single paragraph blocks (#7407) 2026-07-04 23:29:05 -07:00
mobile-banner.spec.ts fix: refit after single terminal restore (#6089) 2026-06-22 12:29:18 -07:00
native-chat-first-flush-race.spec.ts fix(native-chat): retry not-yet-flushed transcripts instead of settling into a permanent error (#8418) 2026-07-13 12:45:46 -07:00
notification-settings.spec.ts
onboarding.spec.ts fix(onboarding): dismiss on notifications step + drop skipped steps from stepper (#7909) 2026-07-09 00:46:03 -07:00
orca-profiles.spec.ts Add optional Orca account sign-in (#7515) 2026-07-09 02:13:13 -07:00
pr-comments-sidebar-cards.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00
project-group-manual-sort.spec.ts test(e2e): stabilize chronically-failing e2e suite (#7470) 2026-07-05 21:51:32 -07:00
renderer-crash-recovery-terminal-input.spec.ts fix(e2e): repair release e2e suite (parking regression tests, stale/flaky specs, profile switcher gate) (#8486) 2026-07-12 22:40:57 -07:00
resource-usage-warm-reattach.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
restart-restore-terminal-input.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
rich-markdown-link-bubble-stacking.spec.ts fix(e2e): repair release e2e suite (parking regression tests, stale/flaky specs, profile switcher gate) (#8486) 2026-07-12 22:40:57 -07:00
right-sidebar-windows-titlebar.spec.ts
settings-agent-awake.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
settings-display-name-ime.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00
settings-search-responsiveness.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
settings-skill-detection.spec.ts
setup-guide-sidebar.spec.ts Remove stale max-lines lint disables from files under the limit (#7548) 2026-07-06 02:12:32 -07:00
setup-script-import.spec.ts
source-control-commit-draft-persistence.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00
source-control-commit-message-ai.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00
source-control-create-pr.spec.ts Unify pull request draft title resolution (#5943) 2026-06-20 18:47:39 -07:00
source-control-discard-confirmation.spec.ts
source-control-large-file-count.spec.ts test(e2e): defer large repo cleanup until shutdown (#8228) 2026-07-10 22:43:12 -07:00
source-control-pr-generation-switch.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
ssh-ai-vault-session-history.spec.ts fix(ai-vault): make SSH session history host-aware (#7367) 2026-07-04 22:56:55 -07:00
ssh-codex-display-artifacts-repro.spec.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
ssh-codex-real-remote.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
ssh-codex-reconnect-replay-driver.ts fix: reconcile SSH repo rows after host re-add (#8201) 2026-07-11 03:20:55 -07:00
ssh-codex-repro-remote-fixtures.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
ssh-codex-terminal-observers.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
ssh-docker-relay-perf.spec.ts Ssh watcher isolation e2e (#8494) 2026-07-12 23:50:00 -07:00
ssh-docker-watcher-isolation.spec.ts Ssh watcher isolation e2e (#8494) 2026-07-12 23:50:00 -07:00
ssh-localhost.spec.ts fix: reconcile SSH repo rows after host re-add (#8201) 2026-07-11 03:20:55 -07:00
ssh-pi-compatible-agent-title.spec.ts fix: reconcile SSH repo rows after host re-add (#8201) 2026-07-11 03:20:55 -07:00
sustained-agent-typing-load-scripts.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
tab-close-navigation.spec.ts test(e2e): stabilize chronically-failing e2e suite (#7470) 2026-07-05 21:51:32 -07:00
tab-rename-paste-ownership.spec.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
tab-rename.spec.ts
tab-sidebar-closed-overlap.spec.ts
tabs.spec.ts Fix tab switching after terminal tab reorder (#6395) 2026-06-25 18:36:11 -07:00
tasks-page.spec.ts Fix flaky e2e tests (#5680) 2026-06-18 00:11:32 -07:00
terminal-attention.spec.ts Fix flaky e2e tests (#5680) 2026-06-18 00:11:32 -07:00
terminal-codex-cursor-jitter-repro.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
terminal-codex-hidden-startup-background.spec.ts fix(e2e): repair release e2e suite (parking regression tests, stale/flaky specs, profile switcher gate) (#8486) 2026-07-12 22:40:57 -07:00
terminal-codex-home.spec.ts
terminal-codex-local-typing-latency.spec.ts
terminal-codex-skill-preview-artifact-repro.spec.ts Fix Codex skill preview terminal artifacts (#6940) 2026-06-30 15:29:12 -07:00
terminal-column-desync-repro.spec.ts test(e2e): stabilize chronically-failing e2e suite (#7470) 2026-07-05 21:51:32 -07:00
terminal-column-probes.ts Fix Windows ConPTY probe failures by removing startup control bytes (#5893) 2026-06-20 02:03:24 -07:00
terminal-cursor-inactive-style.spec.ts
terminal-cursor-raster-probe.ts fix: stabilize release terminal e2e (#5869) 2026-06-19 19:43:42 -07:00
terminal-document-visibility-webgl-recovery.spec.ts
terminal-foreground-confirmation.unit.test.ts fix(terminal): send CSI-u Shift+Enter to Droid on Windows (#7620) (#7668) 2026-07-10 21:00:31 -07:00
terminal-foreground-redraw-freeze.spec.ts Reduce terminal redraw CPU on active TUIs (#8178) 2026-07-10 19:50:44 -07:00
terminal-hidden-tui-visual-restore.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-hidden-view-parking.spec.ts "Hide sleeping" never hides a workspace with an open agent session (#7197) (#7511) 2026-07-13 01:10:38 -07:00
terminal-history-size-typing-latency.spec.ts fix(e2e): repair release e2e suite (parking regression tests, stale/flaky specs, profile switcher gate) (#8486) 2026-07-12 22:40:57 -07:00
terminal-image-paste-webgl-recovery.spec.ts
terminal-large-paste-responsiveness.spec.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
terminal-long-table-fixtures.ts Fix terminal scroll intent across workspace switches (#6319) 2026-06-24 20:16:14 -07:00
terminal-long-table-scroll-restore.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-multi-workspace-typing-latency.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-node-command.ts Use runner Node executable and platform quoting in terminal E2E tests (#5890) 2026-06-20 01:27:41 -07:00
terminal-opencode-emoji-table-rendering.spec.ts Use runner Node executable and platform quoting in terminal E2E tests (#5890) 2026-06-20 01:27:41 -07:00
terminal-osc-color-queries.spec.ts fix(renderer): answer OSC color queries from active terminal theme (#6502) 2026-06-27 09:30:29 -07:00
terminal-output-scheduler.spec.ts Remove stale max-lines lint disables from files under the limit (#7548) 2026-07-06 02:12:32 -07:00
terminal-pane-close-layout-consistency.spec.ts fix(e2e): repair release e2e suite (parking regression tests, stale/flaky specs, profile switcher gate) (#8486) 2026-07-12 22:40:57 -07:00
terminal-panes.spec.ts feat(tabs): redesign tab splits and terminal pane discoverability (#5927) 2026-06-21 23:09:01 -07:00
terminal-parked-memory.spec.ts perf(terminal): tune cold-park keep-warm so common rotation never remounts (#8262) 2026-07-12 11:48:17 -07:00
terminal-paste-ownership.spec.ts feat(terminal): expose right-click paste on every platform (#8322) 2026-07-11 15:02:46 -07:00
terminal-pinned-viewport-worktree-switch.spec.ts Fix terminal scroll intent across workspace switches (#6319) 2026-06-24 20:16:14 -07:00
terminal-probe-input-sequence.ts Fix Windows ConPTY probe failures by removing startup control bytes (#5893) 2026-06-20 02:03:24 -07:00
terminal-probe-input-sequence.unit.test.ts Fix Windows ConPTY probe failures by removing startup control bytes (#5893) 2026-06-20 02:03:24 -07:00
terminal-pty-readiness.ts Fix Windows ConPTY probe failures by removing startup control bytes (#5893) 2026-06-20 02:03:24 -07:00
terminal-push-delivery-loss-recovery.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
terminal-raster-artifact-analysis.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
terminal-raw-emoji-table-scroll-restore.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-reattach-mouse-mode-leak.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
terminal-repro-evidence.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
terminal-restart-persistence.spec.ts Remove stale max-lines lint disables from files under the limit (#7548) 2026-07-06 02:12:32 -07:00
terminal-reveal-paused-render-repro.spec.ts fix(terminal): repaint revealed panes stuck behind xterm's paused-render gate (#7614) 2026-07-06 20:17:35 -07:00
terminal-reveal-stale-pty-resize-repro.spec.ts fix(terminal): stop stale PTY resize after worktree reveal (#8502) 2026-07-13 14:17:49 -07:00
terminal-screenshot-diff.ts Fix terminal tab switch resume rendering (#6041) 2026-06-23 00:23:34 -07:00
terminal-shortcuts.spec.ts Fix e2e tests (#8495) 2026-07-13 00:48:51 -07:00
terminal-sleep-wake-restore.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-split-pane-paste-ownership.spec.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
terminal-stuck-occlusion-recovery.spec.ts Terminal performance initiative: pipeline fixes + term-speed-2 revival + PTY flow control (integration branch) (#7214) 2026-07-10 17:27:47 -07:00
terminal-tab-screenshot.ts Fix terminal tab switch resume rendering (#6041) 2026-06-23 00:23:34 -07:00
terminal-tab-switch-sigwinch-restore.spec.ts Prevent redundant SIGWINCH signals on terminal tab restoration (#6177) 2026-06-23 10:15:06 -07:00
terminal-tab-switch-visual-restore.spec.ts Fix terminal tab switch resume rendering (#6041) 2026-06-23 00:23:34 -07:00
terminal-tui-wheel-drain.spec.ts test(e2e): stabilize chronically-failing e2e suite (#7470) 2026-07-05 21:51:32 -07:00
terminal-tui-wheel-reports.spec.ts test(e2e): stabilize chronically-failing e2e suite (#7470) 2026-07-05 21:51:32 -07:00
terminal-typing-latency.spec.ts
terminal-webgl-reset-capture.ts Fix SSH terminal replay artifacts 2026-06-22 16:42:20 -07:00
terminal-windows-shell-paste-ownership.spec.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
usage-overview.spec.ts
vitest.config.ts
windows-project-runtime-smoke.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
windows-terminal-env-icons.spec.ts
workspace-back-forward-navigation.spec.ts Fix flaky e2e tests (#5680) 2026-06-18 00:11:32 -07:00
workspace-space-git-status.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00
worktree-lifecycle.spec.ts
worktree-lineage-state.ts
worktree-lineage.spec.ts Fix flaky e2e tests (#5680) 2026-06-18 00:11:32 -07:00
worktree-recent-sort.spec.ts chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841) 2026-06-29 22:38:29 -07:00
worktree-row-locators.ts Fix flaky e2e tests (#5680) 2026-06-18 00:11:32 -07:00
worktree-scroll-to-current.spec.ts Revert centered sidebar jump behavior (#8019) 2026-07-10 03:00:51 -07:00
worktree-smart-sort.spec.ts Fix flaky e2e tests (#5680) 2026-06-18 00:11:32 -07:00
worktree-switch-responsiveness.spec.ts Revert centered sidebar jump behavior (#8019) 2026-07-10 03:00:51 -07:00
worktree.spec.ts Fix stale and race-prone E2E test failures (#7468) 2026-07-05 19:46:49 -07:00