Commit 9bc3c7e
committed
fix: clean up v2 projection and cold history output
- skip empty thinking parts in the agent loop (live stream, interrupted
drain, cold history) so no empty thinking shells are emitted
- emit the steered prompt's user message when submission races with
turn completion, assigning it to the new turn exactly once
- emit goal system entries only on goal status transitions, and mirror
that in cold history (goal.create produces the active entry,
goal.update/clear produce none)
- let before_turn history paging reach past the compaction floor so
loading earlier messages keeps returning pages
- refresh the v2 example fixtures and add a steer-race projection case1 parent 751c70e commit 9bc3c7e
8 files changed
Lines changed: 3620 additions & 3532 deletions
File tree
- .changeset
- packages
- agent-core-v2/src/agent/loop
- kap-server
- src/services/v2Projection
- test
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
| |||
950 | 951 | | |
951 | 952 | | |
952 | 953 | | |
| 954 | + | |
953 | 955 | | |
954 | 956 | | |
955 | 957 | | |
| |||
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1148 | 1153 | | |
1149 | 1154 | | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1153 | 1160 | | |
| 1161 | + | |
1154 | 1162 | | |
1155 | 1163 | | |
1156 | 1164 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
590 | 591 | | |
591 | 592 | | |
592 | 593 | | |
| |||
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
| 601 | + | |
600 | 602 | | |
601 | 603 | | |
602 | 604 | | |
| |||
608 | 610 | | |
609 | 611 | | |
610 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
611 | 621 | | |
612 | 622 | | |
613 | 623 | | |
| |||
629 | 639 | | |
630 | 640 | | |
631 | 641 | | |
| 642 | + | |
632 | 643 | | |
633 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
634 | 649 | | |
635 | 650 | | |
636 | 651 | | |
637 | 652 | | |
638 | 653 | | |
639 | 654 | | |
| 655 | + | |
640 | 656 | | |
641 | 657 | | |
642 | 658 | | |
| |||
762 | 778 | | |
763 | 779 | | |
764 | 780 | | |
| 781 | + | |
765 | 782 | | |
766 | 783 | | |
767 | 784 | | |
| |||
1025 | 1042 | | |
1026 | 1043 | | |
1027 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
1028 | 1047 | | |
1029 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1030 | 1052 | | |
1031 | 1053 | | |
1032 | 1054 | | |
| |||
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
| |||
507 | 508 | | |
508 | 509 | | |
509 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
510 | 524 | | |
511 | 525 | | |
512 | 526 | | |
| |||
544 | 558 | | |
545 | 559 | | |
546 | 560 | | |
547 | | - | |
| 561 | + | |
548 | 562 | | |
549 | 563 | | |
550 | 564 | | |
| |||
775 | 789 | | |
776 | 790 | | |
777 | 791 | | |
778 | | - | |
| 792 | + | |
779 | 793 | | |
780 | 794 | | |
781 | 795 | | |
| |||
0 commit comments