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 { storageCapacityErrorCode } from './storage-capacity-error'
export const TERMINAL_SESSION_STATE_SAVE_FAILED_CODE = 'ORCA_TERMINAL_SESSION_STATE_SAVE_FAILED'
export const TERMINAL_SESSION_STATE_SAVE_FAILED_MESSAGE =
'Orca could not save this terminal session.'
const CAPACITY_MARKER = '[storage-capacity-exhausted]'
export function createTerminalSessionStateSaveFailureMessage(error?: unknown): string {
const capacity = storageCapacityErrorCode(error) ? ` ${CAPACITY_MARKER}` : ''
return `${TERMINAL_SESSION_STATE_SAVE_FAILED_CODE}: ${TERMINAL_SESSION_STATE_SAVE_FAILED_MESSAGE}${capacity}`
}
export function isTerminalSessionStorageCapacityFailure(message: string): boolean {
return isTerminalSessionStateSaveFailure(message) && message.includes(CAPACITY_MARKER)
}
export function isTerminalSessionStateSaveFailure(message: string): boolean {
return (
message.includes(TERMINAL_SESSION_STATE_SAVE_FAILED_CODE) ||
message.includes('Failed to save terminal session state')
)
}