feat(runtime-fallback): add configurable session timeout controls

This commit is contained in:
Youngbin Kim
2026-02-12 13:10:55 -05:00
committed by YeonGyu-Kim
parent ff230df47c
commit 6a97f00a22
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ export const DEFAULT_CONFIG: Required<RuntimeFallbackConfig> = {
retry_on_errors: [400, 429, 503, 529],
max_fallback_attempts: 3,
cooldown_seconds: 60,
timeout_seconds: 30,
notify_on_fallback: true,
}
+2
View File
@@ -58,6 +58,8 @@ export interface RuntimeFallbackOptions {
config?: RuntimeFallbackConfig
/** Optional plugin config override (primarily for testing) */
pluginConfig?: OhMyOpenCodeConfig
/** Optional session-level timeout override in milliseconds (primarily for testing) */
session_timeout_ms?: number
}
export interface RuntimeFallbackHook {