Repository navigation
Commit 17b84b3
committed
fix(gateway): make config.patch errors name the problem and the working next step
Three dead-end error texts in config.patch, per the never-dead-end-the-agent
doctrine (failure text states what to try next):
- "invalid config; fix before patching" hid the actual validation issues the
handler already had in the snapshot; it now summarizes them (same
summarizeConfigValidationIssues owner the sibling validation errors use),
attaches structured details, and names openclaw doctor as the fix path.
- The hashless-LWW rejection said "re-run config.get and retry" — wrong
advice, since retrying hash-free fails identically; it now names the exact
guarded paths and says to retry with baseHash.
- The mutation-conflict handler appended "re-run config.get and retry" to
every conflict; non-retryable conflicts (path ownership) fail the retry
too, so the suffix is now gated on error.retryable.
Both new regression tests fail pre-fix.1 parent 4a6f99c commit 17b84b3
2 files changed
Lines changed: 40 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
348 | 352 | | |
349 | 353 | | |
350 | 354 | | |
| |||
466 | 470 | | |
467 | 471 | | |
468 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
469 | 494 | | |
470 | 495 | | |
471 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| 774 | + | |
| 775 | + | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
777 | | - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
778 | 783 | | |
779 | 784 | | |
780 | 785 | | |
| |||
958 | 963 | | |
959 | 964 | | |
960 | 965 | | |
961 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
962 | 971 | | |
963 | 972 | | |
964 | 973 | | |
| |||
1048 | 1057 | | |
1049 | 1058 | | |
1050 | 1059 | | |
| 1060 | + | |
1051 | 1061 | | |
1052 | 1062 | | |
1053 | 1063 | | |
1054 | 1064 | | |
1055 | 1065 | | |
1056 | | - | |
| 1066 | + | |
1057 | 1067 | | |
1058 | 1068 | | |
1059 | 1069 | | |
| |||
0 commit comments