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 { HostedReviewState } from './hosted-review'
import type { CheckStatus } from './github/pull-request-types'
export const REVIEW_REFRESH_COOLDOWN_MS = 10_000
export const CLOSED_REVIEW_REFRESH_INTERVAL_MS = 15 * 60_000
export function reviewRefreshIntervalMs(input: {
state?: HostedReviewState | null
checksStatus?: CheckStatus | null
hasReview?: boolean | null
selected?: boolean
}): number | null {
if (input.hasReview === false) {
return input.selected ? 60_000 : 15 * 60_000
}
if (input.state === 'merged') {
// Neutral means completed checks or no checks in the hosted-review contract.
return input.checksStatus == null || input.checksStatus === 'pending' ? 60_000 : null
}
if (input.state === 'closed') {
return CLOSED_REVIEW_REFRESH_INTERVAL_MS
}
return input.selected ? 60_000 : 120_000
}