Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import type { Page } from '@stablyai/playwright-test'
import { expect } from '@stablyai/playwright-test'
type TerminalPtyDataInjectionWindow = Window & {
__terminalPtyDataInjection?: {
keys: () => string[]
}
}
export async function waitForTerminalPtyDataInjector(
page: Page,
paneKey: string,
timeoutMs = 15_000
): Promise<void> {
await expect
.poll(
() =>
page.evaluate((targetPaneKey) => {
const injector = (window as TerminalPtyDataInjectionWindow).__terminalPtyDataInjection
return injector?.keys().includes(targetPaneKey) ?? false
}, paneKey),
{
timeout: timeoutMs,
// Pane routing can settle before TerminalPane registers its E2E data injector.
message: `terminal PTY data injector did not register for ${paneKey}`
}
)
.toBe(true)
}