From 360984abec8fbfdaad1a2058f052fb8bf60e0cc8 Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Sat, 17 Jan 2026 17:39:39 +0900 Subject: [PATCH] feat(config): add staleTimeoutMs to BackgroundTaskConfig --- assets/oh-my-opencode.schema.json | 5 ++++- src/config/schema.ts | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/oh-my-opencode.schema.json b/assets/oh-my-opencode.schema.json index 2743f924f..52559dd42 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 290b5cc21..df16d886d 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({