Propagate workspace roots into subagent sessions
Subagents (task tool) now inherit the parent session's additionalDirectories via ToolSession → ExecutorOptions → CreateAgentSessionOptions, so delegated agents see the same <workspace-roots> block and can read/grep/glob added roots. Co-authored-by: oh-my-pi <https://omp.sh>
This commit is contained in:
co-authored by
oh-my-pi <https://omp.sh>
parent
c24cb606a8
commit
ffe50650e1
@@ -143,6 +143,8 @@ export interface DeferredDiagnosticsEntry {
|
||||
export interface ToolSession {
|
||||
/** Current working directory */
|
||||
cwd: string;
|
||||
/** Additional workspace directories beyond cwd (multi-root), forwarded to subagents. */
|
||||
additionalDirectories?: string[];
|
||||
/** Whether UI is available */
|
||||
hasUI: boolean;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user