Commit c70b1a9
committed
fix(readFileTool): fix legacy format detection and test mocks
- Enhance isLegacyReadFileParams to also detect bare 'files' array (real legacy chat data)
- Fix batch approval test: add explicit readWithSlice mocks for file content
- Fix partial display test: mock fs.readFile to return string for utf8 encoding1 parent e9af57e commit c70b1a9
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
771 | 788 | | |
772 | 789 | | |
773 | 790 | | |
| |||
823 | 840 | | |
824 | 841 | | |
825 | 842 | | |
826 | | - | |
| 843 | + | |
| 844 | + | |
827 | 845 | | |
828 | 846 | | |
829 | 847 | | |
| |||
0 commit comments