fix(coding-agent/task): skipped context file for IRC-enabled subagents

- Skipped writing compact conversation context files when IRC is enabled so subagents avoid using stale markdown snapshots.
- In runSubprocess, passed an undefined context file for IRC-enabled paths and kept context file prompting for non-IRC executions.
This commit is contained in:
can1357
2026-05-12 01:22:27 +02:00
parent 9bcbefb30e
commit 032e1aa040
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -563,6 +563,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
const lspEnabled = enableLsp ?? true;
const ircEnabled = subagentSettings.get("irc.enabled") === true;
const contextFileForPrompt = ircEnabled ? undefined : options.contextFile;
const skipPythonPreflight = Array.isArray(toolNames) && !toolNames.includes("eval");
const outputChunks: string[] = [];
@@ -1001,7 +1002,7 @@ export async function runSubprocess(options: ExecutorOptions): Promise<SingleRes
context: options.context?.trim() ?? "",
worktree: worktree ?? "",
outputSchema: normalizedOutputSchema,
contextFile: options.contextFile,
contextFile: contextFileForPrompt,
ircPeers: ircEnabled ? renderIrcPeerRoster(id) : "",
ircSelfId: ircEnabled ? id : "",
});