Commit c4eadc1
committed
fix(cli): ag run streaming output hangs — wrong response field names (#3368)
The read endpoint (/v1/sessions/:id/read) returns { messages, status },
not { lines/transcript, status }. The CLI was looking for non-existent
fields, so it never received any entries and the stream appeared to hang.
Also:
- Skip non-text content types (thinking, tool_use, tool_result) in output
- Added 'crashed' to terminal status detection
- Show statusText when available for better end-of-session messages
Fixes: #33681 parent 2567ecc commit c4eadc1
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
175 | 174 | | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
| 193 | + | |
192 | 194 | | |
193 | | - | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
0 commit comments