Commit 5f4df15
fix: avoid Gemini SDK warning when response contains FunctionCall parts
Replace result.Text() with geminiTextParts() that extracts text directly
from candidate parts, skipping FunctionCall/FunctionResponse parts. The
SDK's Text() method emits "Warning: non-text parts FunctionCall" which
leaked into streamed content and caused the TUI to appear stuck.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b6f0b05 commit 5f4df15
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
125 | 146 | | |
126 | | - | |
| 147 | + | |
127 | 148 | | |
128 | 149 | | |
129 | 150 | | |
| |||
0 commit comments