Repository navigation
Commit 26bc67d
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 f9c1d02 commit 26bc67d
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 | |
|---|---|---|---|
| |||
4535 | 4535 | | |
4536 | 4536 | | |
4537 | 4537 | | |
4538 | | - | |
4539 | | - | |
4540 | | - | |
4541 | | - | |
| 4538 | + | |
4542 | 4539 | | |
4543 | 4540 | | |
4544 | 4541 | | |
| |||
4589 | 4586 | | |
4590 | 4587 | | |
4591 | 4588 | | |
4592 | | - | |
| 4589 | + | |
4593 | 4590 | | |
4594 | 4591 | | |
4595 | 4592 | | |
| |||
| 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