Commit 039cd2a
fix(tui): provide fallback response when subagent produces no text output (#294)
When a subagent (Task tool) executes tool calls but the LLM produces no
textual response (only tool calls), the parent agent previously received
an empty response with just metadata. This caused confusion as the
subagent appeared to have done nothing.
This fix adds a meaningful fallback message when final_content is empty:
- If no tools were executed AND no content: indicates potential issue
- If tools were executed but no content: provides a summary with
success/failure counts and the original task description
This ensures the parent agent always receives actionable feedback from
subagents, preventing silent failures where tools ran but no report was
generated.
Fixes the issue where research subagents could complete tool execution
(TodoWrite, LS, Read, Batch) but return nothing to the orchestrating
agent.
Co-authored-by: Droid Agent <droid@factory.ai>1 parent 736aeb2 commit 039cd2a
1 file changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
847 | 882 | | |
848 | 883 | | |
849 | 884 | | |
| |||
852 | 887 | | |
853 | 888 | | |
854 | 889 | | |
855 | | - | |
| 890 | + | |
856 | 891 | | |
857 | 892 | | |
858 | 893 | | |
| |||
0 commit comments