From c1246f61d1db3723e50d7602d5a56c8478b9c3a7 Mon Sep 17 00:00:00 2001 From: Jeremy Gollehon Date: Wed, 14 Jan 2026 22:40:14 -0800 Subject: [PATCH] feat(background-agent): add concurrency group field Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/features/background-agent/types.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features/background-agent/types.ts b/src/features/background-agent/types.ts index 8c384211..795ca89b 100644 --- a/src/features/background-agent/types.ts +++ b/src/features/background-agent/types.ts @@ -28,10 +28,13 @@ export interface BackgroundTask { progress?: TaskProgress parentModel?: { providerID: string; modelID: string } model?: { providerID: string; modelID: string; variant?: string } - /** Agent name used for concurrency tracking */ + /** Active concurrency slot key */ concurrencyKey?: string + /** Persistent key for re-acquiring concurrency on resume */ + concurrencyGroup?: string /** Parent session's agent name for notification */ parentAgent?: string + /** Last message count for stability detection */ lastMsgCount?: number /** Number of consecutive polls with stable message count */