fix(server): delegates finish when their leftover work settles, and Grok commands stop holding runs open #22709
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 6 commits into
main fromrefs/pull/22709/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- packages/provider-grok/src/server/xaiAcpExtension.ts lines 376 to 376OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -366,6 +368,9 @@366368 }> {367369 const title = titleKey(toolCall);368370 const rawInput = unknownRecord(toolCall.data.rawInput);371+ const rawOutput = unknownRecord(toolCall.data.rawOutput);369372 const variant = nonEmptyString(rawInput?.variant)?.toLowerCase();370- if (!title.includes("kill_command_or_subagent") && variant !== "kill") return [];373+ const legacy = title.includes("kill_command_or_subagent") || variant === "kill";374+ if (!legacy && variant !== "killtask" && rawOutput?.type !== "KillTask") return [];371375 if (toolCall.status !== "completed") return [];376+ if (!legacy && rawOutput?.outcome === "failed") return [];
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed