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
export const TERMINAL_VIEWPORT_MIN_COLS = 20
export const TERMINAL_VIEWPORT_MAX_COLS = 1024
export const TERMINAL_VIEWPORT_MIN_ROWS = 8
// Why: matches the terminal.subscribe/send viewport bound; a 120 cap left tall remote panes taller than their PTY (#27425).
export const TERMINAL_VIEWPORT_MAX_ROWS = 500
export function clampTerminalViewport(cols: number, rows: number): { cols: number; rows: number } {
return {
cols: Math.max(
TERMINAL_VIEWPORT_MIN_COLS,
Math.min(TERMINAL_VIEWPORT_MAX_COLS, Math.round(cols))
),
rows: Math.max(
TERMINAL_VIEWPORT_MIN_ROWS,
Math.min(TERMINAL_VIEWPORT_MAX_ROWS, Math.round(rows))
)
}
}