Commit bb8871a
committed
fix: preserve tool-call history across thread hydration
Fixes #568
Thread hydration discarded tool-call history, causing the LLM to
re-attempt completed tool calls on page reload. Emit full tool-call
sequences in messages(), enrich persisted JSON for DB rebuild, sanitize
before recording in all paths, fix multi-stage alignment. No schema
migration; backward compatible. 13 regression tests added.1 parent 3079043 commit bb8871a
3 files changed
+617
-80
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | 690 | | |
708 | 691 | | |
709 | 692 | | |
| |||
743 | 726 | | |
744 | 727 | | |
745 | 728 | | |
| 729 | + | |
746 | 730 | | |
747 | 731 | | |
748 | 732 | | |
| |||
756 | 740 | | |
757 | 741 | | |
758 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
759 | 757 | | |
760 | 758 | | |
761 | 759 | | |
| |||
0 commit comments