mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
fix(coding-agent): handle auto-compaction failures gracefully
When auto-compaction fails (e.g., quota exceeded), emit the error via the auto_compaction_end event instead of throwing. The UI now displays the error message, allowing users to take action (switch models, wait for quota reset, etc.) instead of crashing. fixes #792
This commit is contained in:
parent
5c59caee4e
commit
20f5fcc79d
4 changed files with 25 additions and 8 deletions
|
|
@ -795,6 +795,8 @@ If `reason` was `"overflow"` and compaction succeeds, `willRetry` is `true` and
|
|||
|
||||
If compaction was aborted, `result` is `null` and `aborted` is `true`.
|
||||
|
||||
If compaction failed (e.g., API quota exceeded), `result` is `null`, `aborted` is `false`, and `errorMessage` contains the error description.
|
||||
|
||||
### auto_retry_start / auto_retry_end
|
||||
|
||||
Emitted when automatic retry is triggered after a transient error (overloaded, rate limit, 5xx).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue