Repository navigation
Commit 19fac16
fix(mesh): assert the prefill release on P/D cancel and error paths
- The cancel and stalled error-body P/D tests check the prefill charge is
taken and released, not only the request load.
- WorkerLoadGuard::with_prefill_tokens debug-asserts a fresh guard
instead of releasing a charge no caller has.
- The mesh_worker_prefill_tokens help names the paths that charge it.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 42d9d8c commit 19fac16
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
| 747 | + | |
747 | 748 | | |
748 | 749 | | |
749 | 750 | | |
750 | 751 | | |
| 752 | + | |
751 | 753 | | |
752 | 754 | | |
753 | 755 | | |
| |||
836 | 838 | | |
837 | 839 | | |
838 | 840 | | |
| 841 | + | |
839 | 842 | | |
840 | 843 | | |
841 | 844 | | |
| |||
858 | 861 | | |
859 | 862 | | |
860 | 863 | | |
| 864 | + | |
861 | 865 | | |
862 | 866 | | |
863 | 867 | | |
| |||
0 commit comments