mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
* fix(agent-launch): preserve cold Codex startup drafts * fix(agent-launch): honor startup draft readiness budgets
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
import type { TuiAgent } from './tui-agent'
|
|
import { TUI_AGENT_CONFIG } from './tui-agent-config'
|
|
|
|
const DEFAULT_DRAFT_PASTE_READY_TIMEOUT_MS = 8000
|
|
|
|
export function resolveDraftPasteReadyTimeoutMs(agent?: TuiAgent, overrideMs?: number): number {
|
|
return (
|
|
overrideMs ??
|
|
(agent ? TUI_AGENT_CONFIG[agent].draftPasteReadyTimeoutMs : undefined) ??
|
|
DEFAULT_DRAFT_PASTE_READY_TIMEOUT_MS
|
|
)
|
|
}
|