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:
roboomp
2026-05-26 03:06:14 +00:00
parent 5ff1c747ce
commit 8948101e2b
2 changed files with 22 additions and 1 deletions
+2
View File
@@ -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 => {