mirror of
https://github.com/stablyai/orca.git
synced 2026-10-15 08:03:08 +00:00
Why: discoverActivePtyId broadcasts a marker to every candidate pty and reads the active pane's xterm buffer. Right after a split the new pane's PTY isn't yet registered in ptyIdsByTabId on slower machines (CI), so the probe times out. Poll the store for ptyIdsByTabId[tabId].length >= 2 instead and identify the second ptyId as the one not equal to the first. Passes locally in 4.9s and no longer depends on xterm-buffer timing after a layout change. Co-authored-by: Orca <help@stably.ai>