Commit 1c5d208
committed
fix: defer common_sampler_accept until after p_accept resolution
Fixes sampler state bug identified by Ooooze - previously common_sampler_accept
was called with target id before p_accept check, leaving grammar FSM and
gsmpl->prev tracking wrong token when draft token was substituted.1 parent 12706d0 commit 1c5d208
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
619 | 617 | | |
620 | 618 | | |
621 | 619 | | |
| |||
625 | 623 | | |
626 | 624 | | |
627 | 625 | | |
628 | | - | |
| 626 | + | |
| 627 | + | |
629 | 628 | | |
630 | 629 | | |
631 | 630 | | |
| 631 | + | |
| 632 | + | |
632 | 633 | | |
633 | 634 | | |
| 635 | + | |
| 636 | + | |
634 | 637 | | |
635 | 638 | | |
636 | 639 | | |
| |||
0 commit comments