feat(background-agent): extend types for team-mode background tasks

This commit is contained in:
YeonGyu-Kim
2026-04-28 10:48:03 +09:00
parent 2e6bb3413e
commit 417a368af8
+8 -5
View File
@@ -47,6 +47,7 @@ export interface BackgroundTask {
rootSessionId?: string rootSessionId?: string
parentSessionId: string parentSessionId: string
parentMessageId: string parentMessageId: string
teamRunId?: string
description: string description: string
prompt: string prompt: string
agent: string agent: string
@@ -58,7 +59,7 @@ export interface BackgroundTask {
result?: string result?: string
error?: string error?: string
progress?: TaskProgress progress?: TaskProgress
parentModel?: { providerID: string; modelID: string } parentModel?: { providerId: string; modelId: string }
model?: DelegatedModelConfig model?: DelegatedModelConfig
/** Fallback chain for runtime retry on model errors */ /** Fallback chain for runtime retry on model errors */
fallbackChain?: FallbackEntry[] fallbackChain?: FallbackEntry[]
@@ -78,7 +79,7 @@ export interface BackgroundTask {
category?: string category?: string
/** Pending retry notification details for the next spawned retry session */ /** Pending retry notification details for the next spawned retry session */
retryNotification?: { retryNotification?: {
previousSessionID?: string previousSessionId?: string
failedModel?: string failedModel?: string
failedError?: string failedError?: string
nextModel: string nextModel: string
@@ -87,7 +88,7 @@ export interface BackgroundTask {
/** Structured attempt history for retry observability */ /** Structured attempt history for retry observability */
attempts?: BackgroundTaskAttempt[] attempts?: BackgroundTaskAttempt[]
/** ID of the currently active attempt */ /** ID of the currently active attempt */
currentAttemptID?: string currentAttemptId?: string
/** Last message count for stability detection */ /** Last message count for stability detection */
lastMsgCount?: number lastMsgCount?: number
@@ -103,7 +104,9 @@ export interface LaunchInput {
agent: string agent: string
parentSessionId: string parentSessionId: string
parentMessageId: string parentMessageId: string
parentModel?: { providerID: string; modelID: string } teamRunId?: string
suppressTmuxSpawn?: boolean
parentModel?: { providerId: string; modelId: string }
parentAgent?: string parentAgent?: string
parentTools?: Record<string, boolean> parentTools?: Record<string, boolean>
model?: DelegatedModelConfig model?: DelegatedModelConfig
@@ -121,7 +124,7 @@ export interface ResumeInput {
prompt: string prompt: string
parentSessionId: string parentSessionId: string
parentMessageId: string parentMessageId: string
parentModel?: { providerID: string; modelID: string } parentModel?: { providerId: string; modelId: string }
parentAgent?: string parentAgent?: string
parentTools?: Record<string, boolean> parentTools?: Record<string, boolean>
} }