Files
oh-my-pi/packages
roboomp d256367b72 fix(agent): name billed output tokens on capped empty stops
An empty assistant `stop` that exhausts the retry cap always reported the
context/`/shake images` hint, even when the provider billed output tokens
for the turn. Billed output on a zero-block stop means content was generated
and then dropped downstream (a filter/refusal flattened to
`finish_reason: "stop"` by a proxy, or a lossy API translation), so the
images/context advice is actively misleading there.

Branch the capped `finalError` in `#handleEmptyAssistantStop` on
`assistantMessage.usage.output`: keep the context hint when nothing was
generated, and otherwise name the billed output-token count and point at a
provider-side filter/translation. Also log `outputTokens` alongside the
existing warning fields.

Fixes #8511
2026-08-14 04:51:06 +00:00
..
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-06 13:32:34 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00
2026-08-14 05:44:05 +02:00