orca/tests/e2e
Brennan Benson daaea6acaa
Fix terminal output lag from background panes (#1699)
* Fix terminal output lag from background panes

Co-authored-by: Orca <help@stably.ai>

* Fix scheduler edge cases: replay ordering, foreground gate, dispose race

- Drain queued background bytes before replay/snapshot writes so the
  scheduler's deferred drain cannot land older bytes on top of the replay.
- Gate foreground on isVisibleRef only — visible-but-inactive split panes
  should not be throttled; only hidden panes (background tabs) should be.
- Catch writes to disposed terminals in the drain loop so a late PTY ping
  after pane.terminal.dispose() drops the dead entry instead of crashing
  the scheduler for other panes still draining.
- Update App.tsx comment to drop stale agentStatusEpoch reference; epoch
  no longer ticks on every PTY event after the agent-status slice change.
- Guard e2e Math.max(...drainWrites) against empty array to avoid a
  vacuous pass.

Co-authored-by: Orca <help@stably.ai>

* Fix flaky e2e: put background marker after burst payload

The terminal-output-scheduler e2e test asserts that a background marker
appears in the terminal buffer after switching to that tab. getTerminalContent
returns only the last 4000 chars of the serialized buffer; with the marker
prefixed before a 50000-char x-burst, the marker is always evicted and the
final assertion always fails.

Move the marker to the END of the burst so it survives tail truncation. The
burst itself remains the same length, so the chunked-drain invariants the
test exercises are unchanged.

Co-authored-by: Orca <help@stably.ai>

* Add terminal scheduler regression coverage

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Orca <help@stably.ai>
2026-05-11 17:00:44 -07:00
..
helpers Add native computer-use automation (#1683) 2026-05-11 14:20:08 -07:00
AGENTS.md test(e2e): drive real composer flow for worktree creation (#1193) 2026-04-27 17:42:03 -07:00
browser-tab.spec.ts
computer-linux.e2e.ts Add native computer-use automation (#1683) 2026-05-11 14:20:08 -07:00
computer-mac.e2e.ts Add native computer-use automation (#1683) 2026-05-11 14:20:08 -07:00
computer-windows.e2e.ts Add native computer-use automation (#1683) 2026-05-11 14:20:08 -07:00
dead-terminal-repro.spec.ts fix(terminal): force WebGL repaint after split when dimensions match (#1272) 2026-04-29 23:33:36 -07:00
dead-terminal-stress.spec.ts fix(terminal): force WebGL repaint after split when dimensions match (#1272) 2026-04-29 23:33:36 -07:00
diff-note-delete.spec.ts fix(diff-notes): rename to "Note", highlight saved card, Enter submits (#902) 2026-04-21 12:52:57 -07:00
file-open.spec.ts test(e2e): assert on rendered DOM in 5 specs previously store-tautologies (#1194) 2026-04-27 20:55:47 -07:00
global-setup.ts fix(terminal): force WebGL repaint after split when dimensions match (#1272) 2026-04-29 23:33:36 -07:00
global-teardown.ts
onboarding.spec.ts fix: isolate e2e daemon and onboarding state (#1606) 2026-05-08 17:45:02 -07:00
resource-usage-warm-reattach.spec.ts fix(resource-usage): hydrate pty-registry at boot; render `· remote` only for SSH repos (#1667) 2026-05-10 17:17:52 -07:00
tab-close-navigation.spec.ts
tab-rename.spec.ts test(e2e): assert on rendered DOM in 5 specs previously store-tautologies (#1194) 2026-04-27 20:55:47 -07:00
tab-sidebar-closed-overlap.spec.ts test(tabs): guard first tab visibility when sidebar is collapsed (#1117) 2026-04-25 23:01:35 -07:00
tabs.spec.ts test(e2e): assert on rendered DOM in 5 specs previously store-tautologies (#1194) 2026-04-27 20:55:47 -07:00
tasks-page.spec.ts test(e2e): assert on rendered DOM in 5 specs previously store-tautologies (#1194) 2026-04-27 20:55:47 -07:00
terminal-attention.spec.ts test: harden terminal attention e2e (#1626) 2026-05-09 01:20:35 -07:00
terminal-output-scheduler.spec.ts Fix terminal output lag from background panes (#1699) 2026-05-11 17:00:44 -07:00
terminal-panes.spec.ts Revert "fix(terminal): add proportional scroll fallback for sidebar resize (#901)" (#930) 2026-04-22 00:44:37 -04:00
terminal-restart-persistence.spec.ts
terminal-shortcuts.spec.ts feat(terminal): Ctrl+Left/Right word-nav on Windows/Linux (#857) 2026-04-21 15:56:01 -07:00
vitest.config.ts Add native computer-use automation (#1683) 2026-05-11 14:20:08 -07:00
workspace-back-forward-navigation.spec.ts test(e2e): assert on rendered DOM in 5 specs previously store-tautologies (#1194) 2026-04-27 20:55:47 -07:00
worktree-lifecycle.spec.ts
worktree-recent-sort.spec.ts fix(sidebar): stamp lastActivityAt on first worktree discovery (#905) 2026-05-05 16:17:51 -07:00
worktree.spec.ts feat(new-workspace): unified source picker + non-submitted URL drafts for agents (#1426) 2026-05-05 01:07:52 -07:00