Repository navigation
Commit eb7e970
committed
fix(lifecycle): narrow PR to rejected-action settlement and dedupe Gemini call IDs
Remove deletion coordination, the generic file-lock wrapper, atomicReplace
backup machinery, lock-compromise propagation, and the partial deleteMany
write-through. Issue #1714 requires none of them. Restore base
safeWriteJson behavior and base store deletion semantics, and restore the
pre-existing real-lock write-barrier tests.
Reimplement clearPendingActionIfMatching on the base safeWriteJson merge
callback. The merge callback reads the persisted record under the per-file
lock, a throwing merge writes nothing, so a record deleted by another host
still fails settlement closed without recreation.
Add a request-unique component to synthesized Gemini tool-call IDs. The
per-request counter restarts at zero, so the first new_task call of every
request previously persisted the same pending-action ID. Exact-ID
settlement matching is unchanged.
Drop the tests that only covered removed behavior and add a focused test
for request-unique Gemini call IDs.1 parent 748f8e3 commit eb7e970
10 files changed
Lines changed: 218 additions & 739 deletions
File tree
- src
- api/providers
- __tests__
- core
- task-persistence
- __tests__
- webview/__tests__
- utils
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
335 | 372 | | |
336 | 373 | | |
337 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
| |||
398 | 402 | | |
399 | 403 | | |
400 | 404 | | |
401 | | - | |
| 405 | + | |
402 | 406 | | |
403 | 407 | | |
404 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
270 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
271 | 279 | | |
272 | 280 | | |
273 | 281 | | |
| |||
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
306 | 301 | | |
307 | | - | |
308 | 302 | | |
309 | 303 | | |
310 | 304 | | |
| |||
889 | 883 | | |
890 | 884 | | |
891 | 885 | | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | 886 | | |
921 | 887 | | |
922 | 888 | | |
| |||
1122 | 1088 | | |
1123 | 1089 | | |
1124 | 1090 | | |
1125 | | - | |
1126 | | - | |
1127 | 1091 | | |
1128 | 1092 | | |
1129 | 1093 | | |
1130 | 1094 | | |
| 1095 | + | |
| 1096 | + | |
1131 | 1097 | | |
1132 | 1098 | | |
1133 | 1099 | | |
| |||
1141 | 1107 | | |
1142 | 1108 | | |
1143 | 1109 | | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
| 1110 | + | |
1154 | 1111 | | |
1155 | 1112 | | |
1156 | 1113 | | |
| |||
0 commit comments