diff --git a/assets/oh-my-opencode.schema.json b/assets/oh-my-opencode.schema.json index 2743f924..52559dd4 100644 --- a/assets/oh-my-opencode.schema.json +++ b/assets/oh-my-opencode.schema.json @@ -69,7 +69,6 @@ "agent-usage-reminder", "non-interactive-env", "interactive-bash-session", - "empty-message-sanitizer", "thinking-block-validator", "ralph-loop", "compaction-context-injector", @@ -2394,6 +2393,10 @@ "type": "number", "minimum": 1 } + }, + "staleTimeoutMs": { + "type": "number", + "minimum": 60000 } } }, diff --git a/src/config/schema.ts b/src/config/schema.ts index 290b5cc2..df16d886 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -282,6 +282,8 @@ export const BackgroundTaskConfigSchema = z.object({ defaultConcurrency: z.number().min(1).optional(), providerConcurrency: z.record(z.string(), z.number().min(1)).optional(), modelConcurrency: z.record(z.string(), z.number().min(1)).optional(), + /** Stale timeout in milliseconds - interrupt tasks with no activity for this duration (default: 180000 = 3 minutes, minimum: 60000 = 1 minute) */ + staleTimeoutMs: z.number().min(60000).optional(), }) export const NotificationConfigSchema = z.object({