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'
import { getRepoExecutionHostId } from '../../../src/shared/execution-host'
import { getRepoHostIdentityForParts } from '../../../src/shared/repo-host-identity'
// Dismiss every loaded repo’s setup prompt through its action; workspace switches can re-inspect and show it between visibility checks.
export async function dismissSetupScriptPrompts(page: Page): Promise<void> {
const repos = await page.evaluate(() =>
(window.__store?.getState().repos ?? []).map((repo) => ({
id: repo.id,
connectionId: repo.connectionId ?? null,
executionHostId: repo.executionHostId ?? null
}))
)
const identities = repos.map((repo) =>
getRepoHostIdentityForParts(repo.id, getRepoExecutionHostId(repo))
)
await page.evaluate((keys) => {
const state = window.__store?.getState()
for (const key of keys) {
state?.dismissSetupScriptPrompt(key)
}
}, identities)
await expect(page.locator('[data-setup-script-prompt-layer]')).toHaveCount(0)
}