Repository navigation
Commit b4d593d
fix: refuse orphan tool_result during delegation rollback
- Abort rollback before saving API history or restoring the parent when
the failed pending action has no matching assistant tool_use. A
standalone tool_result is invalid history that native tool-call
providers reject; the parent stays available for an explicit retry.
- Assert the specific error for each invalidate() failure scenario
(EISDIR, SyntaxError, invalid record) instead of any rejection.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent b9c2a3c commit b4d593d
3 files changed
Lines changed: 22 additions & 5 deletions
File tree
- src
- __tests__
- core
- task-persistence/__tests__
- webview
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
806 | 810 | | |
807 | 811 | | |
808 | 812 | | |
| |||
893 | 897 | | |
894 | 898 | | |
895 | 899 | | |
896 | | - | |
| 900 | + | |
897 | 901 | | |
898 | 902 | | |
899 | 903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4049 | 4049 | | |
4050 | 4050 | | |
4051 | 4051 | | |
4052 | | - | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
4053 | 4060 | | |
4054 | 4061 | | |
4055 | 4062 | | |
| |||
4059 | 4066 | | |
4060 | 4067 | | |
4061 | 4068 | | |
4062 | | - | |
| 4069 | + | |
4063 | 4070 | | |
4064 | 4071 | | |
4065 | 4072 | | |
| |||
0 commit comments