Repository navigation
Commit 65be69c
committed
fix(acp): turn token spend no longer blocks provider handoffs
An idle state_update reports tokens consumed across every model request in the turn, but it was
stored as context occupancy and replaced the window size from usage_update. Long Claude ACP turns
then exceeded the 128k fallback window and every switch back to ACP was refused. Context usage now
comes only from usage_update.
Fixes #224071 parent 31dcc7c commit 65be69c
4 files changed
Lines changed: 3 additions & 20 deletions
File tree
- apps/server/src/orchestration-v2/Adapters
- packages/provider-acp/src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | | - | |
1152 | 1151 | | |
1153 | 1152 | | |
1154 | 1153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4524 | 4524 | | |
4525 | 4525 | | |
4526 | 4526 | | |
4527 | | - | |
4528 | | - | |
4529 | | - | |
4530 | | - | |
| 4527 | + | |
4531 | 4528 | | |
4532 | 4529 | | |
4533 | 4530 | | |
| |||
4578 | 4575 | | |
4579 | 4576 | | |
4580 | 4577 | | |
4581 | | - | |
| 4578 | + | |
4582 | 4579 | | |
4583 | 4580 | | |
4584 | 4581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
| 957 | + | |
961 | 958 | | |
962 | 959 | | |
963 | 960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1563 | 1563 | | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | 1566 | | |
1577 | 1567 | | |
1578 | 1568 | | |
| |||
0 commit comments