feat: add parentTools field to BackgroundTask, LaunchInput, ResumeInput

Allows background tasks to carry the parent session's tool restriction
map so it can be applied when notifying the parent session on completion.
This commit is contained in:
YeonGyu-Kim
2026-02-14 14:30:15 +09:00
parent 86c24c271d
commit fc09fba707
+4
View File
@@ -37,6 +37,8 @@ export interface BackgroundTask {
concurrencyGroup?: string concurrencyGroup?: string
/** Parent session's agent name for notification */ /** Parent session's agent name for notification */
parentAgent?: string parentAgent?: string
/** Parent session's tool restrictions for notification prompts */
parentTools?: Record<string, boolean>
/** Marks if the task was launched from an unstable agent/category */ /** Marks if the task was launched from an unstable agent/category */
isUnstableAgent?: boolean isUnstableAgent?: boolean
/** Category used for this task (e.g., 'quick', 'visual-engineering') */ /** Category used for this task (e.g., 'quick', 'visual-engineering') */
@@ -56,6 +58,7 @@ export interface LaunchInput {
parentMessageID: string parentMessageID: string
parentModel?: { providerID: string; modelID: string } parentModel?: { providerID: string; modelID: string }
parentAgent?: string parentAgent?: string
parentTools?: Record<string, boolean>
model?: { providerID: string; modelID: string; variant?: string } model?: { providerID: string; modelID: string; variant?: string }
isUnstableAgent?: boolean isUnstableAgent?: boolean
skills?: string[] skills?: string[]
@@ -70,4 +73,5 @@ export interface ResumeInput {
parentMessageID: string parentMessageID: string
parentModel?: { providerID: string; modelID: string } parentModel?: { providerID: string; modelID: string }
parentAgent?: string parentAgent?: string
parentTools?: Record<string, boolean>
} }