docs: subtask config option (#2682)

This commit is contained in:
Aiden Cline 2025-09-18 17:52:23 -05:00 committed by GitHub
commit ffa5689885
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 2 deletions

View file

@ -1445,7 +1445,7 @@ export namespace SessionPrompt {
})()
const agent = await Agent.get(agentName)
if (agent.mode === "subagent" || command.subtask) {
if ((agent.mode === "subagent" && command.subtask !== false) || command.subtask === true) {
using abort = lock(input.sessionID)
const userMsg: MessageV2.User = {