Repository navigation
Commit 425502d
authored
feat(api): add compaction progress events (#2749)
## Summary
Adds typed compaction progress events to Responses streams and WebSocket
listeners.
## Changes
- Expose response.compaction.compacting with its item ID, output index,
and sequence number
- Accept compaction progress in response stream helpers while preserving
the response snapshot
- Recognize credit_balance_exhausted errors from managed agent turns
- Keep direct WebSocket error access while excluding the underlying
event from automatic serialization
Co-authored-by: markstuart-oai <[email protected]>1 parent 0d69cb9 commit 425502d
20 files changed
Lines changed: 1119 additions & 1030 deletions
File tree
- api_reference
- src
- internal/responses
- resources
- beta
- agents
- responses
- live
- forks
- sideband
- responses
- tests/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
| |||
0 commit comments