From 936b51de795f3315103940b8c7213aa646fac992 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sat, 14 Feb 2026 14:30:15 +0900 Subject: [PATCH] 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. --- src/features/background-agent/types.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/features/background-agent/types.ts b/src/features/background-agent/types.ts index fd5309dc..ea56186e 100644 --- a/src/features/background-agent/types.ts +++ b/src/features/background-agent/types.ts @@ -37,6 +37,8 @@ export interface BackgroundTask { concurrencyGroup?: string /** Parent session's agent name for notification */ parentAgent?: string + /** Parent session's tool restrictions for notification prompts */ + parentTools?: Record /** Marks if the task was launched from an unstable agent/category */ isUnstableAgent?: boolean /** Category used for this task (e.g., 'quick', 'visual-engineering') */ @@ -56,6 +58,7 @@ export interface LaunchInput { parentMessageID: string parentModel?: { providerID: string; modelID: string } parentAgent?: string + parentTools?: Record model?: { providerID: string; modelID: string; variant?: string } isUnstableAgent?: boolean skills?: string[] @@ -70,4 +73,5 @@ export interface ResumeInput { parentMessageID: string parentModel?: { providerID: string; modelID: string } parentAgent?: string + parentTools?: Record }