orca/src
Neil eb89255e8f
fix: background-mount hidden automation worktrees before launch (#6568)
Headless automation launches (launchAgentBackgroundSession) created an
inactive tab via createTab(..., { activate: false }) without first telling
the renderer to background-mount that worktree's terminal surface. As a
result the hidden surface either never mounted (no entry in
mountedWorktreeIdsRef) or mounted with display:none (zero-size, can't be
measured/fit), so the eager PTY buffer never flushed on the first mount —
the run tab showed only the shell prompt until an unmount/remount gave the
off-screen xterm a real layout box.

Dispatch BACKGROUND_MOUNT_TERMINAL_WORKTREE_EVENT immediately before
createTab, mirroring the established renderer-backed Codex startup path in
useIpcEvents. The Terminal.tsx listener adds the worktree to
mountedWorktreeIdsRef and marks it measurable for a 3000ms window, so the
hidden surface renders with opacity-0/pointer-events-none (a measurable box)
instead of display:none, letting the first xterm fit flush the buffer.

Extract the inline measurable-mount block into
background-terminal-worktree-visibility.ts (behavior-identical, now
unit-tested) and add unit + E2E coverage.

Fixes #6244

Co-authored-by: ChaDongWun <66347959+lovewave02@users.noreply.github.com>
2026-06-28 23:13:03 -07:00
..
cli feat(emulator): Android emulation via scrcpy (cross-platform, iOS parity) (#6434) 2026-06-28 21:01:09 -07:00
main Harden system SSH port forwarding (#6705) 2026-06-28 23:09:54 -07:00
preload Add cancel flow for Claude account login (#6702) 2026-06-28 22:33:07 -07:00
relay
renderer fix: background-mount hidden automation worktrees before launch (#6568) 2026-06-28 23:13:03 -07:00
shared Fix remote OMP terminal title thrash (#6689) 2026-06-28 22:25:15 -07:00
types