fix(task): forwarded parent enableLsp flag to subagents
Subagents now inherit the parent session's enableLsp value, so a top-level --no-lsp invocation propagates into spawned tasks instead of falling back to the executor's default of true. Fixes #1385
This commit is contained in:
@@ -888,6 +888,7 @@ export class TaskTool implements AgentTool<TaskToolSchemaInstance, TaskToolDetai
|
||||
persistArtifacts: !!artifactsDir,
|
||||
artifactsDir: effectiveArtifactsDir,
|
||||
contextFile: contextFilePath,
|
||||
enableLsp: this.session.enableLsp,
|
||||
signal,
|
||||
eventBus: this.session.eventBus,
|
||||
onProgress: progress => {
|
||||
@@ -942,6 +943,7 @@ export class TaskTool implements AgentTool<TaskToolSchemaInstance, TaskToolDetai
|
||||
persistArtifacts: !!artifactsDir,
|
||||
artifactsDir: effectiveArtifactsDir,
|
||||
contextFile: contextFilePath,
|
||||
enableLsp: this.session.enableLsp,
|
||||
signal,
|
||||
eventBus: this.session.eventBus,
|
||||
onProgress: progress => {
|
||||
|
||||
Reference in New Issue
Block a user