Commit e270192
committed
refactor: implement proper typed message for file not found errors
- Add file_not_found_error to clineSays array in message types
- Emit typed file_not_found_error message from readFileTool instead of embedding in XML
- Handle file_not_found_error in ChatRow switch statement
- Remove fragile XML parsing logic for file not found errors
- Maintain consistent error handling pattern with other tool errors like diff_error1 parent 287c8eb commit e270192
File tree
3 files changed
+50
-30
lines changed- packages/types/src
- src/core/tools
- webview-ui/src/components/chat
3 files changed
+50
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
615 | 614 | | |
616 | 615 | | |
617 | 616 | | |
618 | | - | |
619 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
620 | 625 | | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
626 | 638 | | |
627 | 639 | | |
628 | 640 | | |
| |||
702 | 714 | | |
703 | 715 | | |
704 | 716 | | |
705 | | - | |
706 | 717 | | |
707 | 718 | | |
708 | 719 | | |
709 | | - | |
710 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
711 | 728 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
719 | 746 | | |
720 | 747 | | |
721 | 748 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | 1057 | | |
1070 | 1058 | | |
1071 | 1059 | | |
1072 | 1060 | | |
1073 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1074 | 1065 | | |
1075 | 1066 | | |
1076 | 1067 | | |
| |||
0 commit comments