Commit ae085b9
committed
fix(cron): prefer finalAssistantVisibleText over raw error text in task summary
When a cron agentTurn run had no non-error payloads (e.g. a tool call
failed and the agent self-corrected via LLM output rather than an
explicit messaging tool call), fallbackSummary fell through to
pickSummaryFromOutput(firstText) where firstText was the tool error payload.
Introduce finalAssistantVisibleText as an intermediate fallback in
both fallbackSummary and fallbackOutputText so that the agent's
self-corrected reply is surfaced instead of the raw error text.
Closes #748071 parent 5f13af6 commit ae085b9
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
261 | 264 | | |
262 | | - | |
263 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
264 | 272 | | |
265 | 273 | | |
266 | 274 | | |
| |||
0 commit comments