GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — TaskTool returns no diagnostic context when subagent result text is empty or missing · Issue #24447 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionSummary
In one local case on Relevant codeIn result.parts.findLast((item) => item.type === "text")?.text ?? "" This appears to collapse "no text part exists" into an empty result with no diagnostic context. Observed behaviorI hit this while invoking a <task_result> </task_result> Smaller subagent calls worked, so the subagent type was available and functional. I do not yet have a minimal standalone reproduction. This issue combines a local observed symptom with the source behavior above. Why this is hard to debugFrom the parent session, there is no indication whether the subagent:
The parent receives an empty Expected behaviorIf the subagent final message has no For example, if available and safe to expose: Possible fix directionDistinguish between:
Illustrative only; a real patch may need to guard on the result role/type: const textPart = result.parts.findLast((item) => item.type === "text") const info = result.info.role === "assistant" ? result.info : undefined const body = textPart?.text ?? [ "Subagent completed without a text response.", `finish: ${info?.finish ?? "unknown"}`, `error: ${info?.error ? JSON.stringify(info.error) : "none"}`, `parts: ${result.parts.map((part) => part.type).join(", ") || "none"}`, ].join("\n") RelatedPossibly related to #18423, where an Ollama subagent executes tool calls but returns empty text to the orchestrator. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |