feat(background-agent): add concurrency group field

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Jeremy Gollehon 2026-01-14 22:40:14 -08:00
parent 03871262b2
commit c1246f61d1
No known key found for this signature in database

View File

@ -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 */