Repository navigation
Commit 1661516
committed
fix(gateway): promote hot-mode reload-drop to error with remediation
When the gateway runs in hot reload mode and a config write touches any
restart-required path, the whole plan is dropped behind a single log.warn.
Operators routinely miss this in log aggregator UIs and the runtime quietly
serves a stale snapshot until manually restarted. Observed in production:
`openclaw doctor --fix` migrated agents.defaults.models keys correctly but
the auth.profiles rename in the same change set forced restart-required;
in-memory agent kept resolving the old model id, every turn failed model
lookup for 4 hours before manual launchctl kickstart -k recovered.
Promote the log line to error so level=ERROR alert rules and Loki queries
catch it, and include the remediation command verbatim so the operator does
not have to look it up. Add a focused regression test that fakes hot mode,
emits a restart-required watcher change, and asserts the new error message
shape plus the absence of any hot-reload or restart calls.
Mutation-verified: reverting to log.warn fails the new test on the
'log.warn was not called' expectation.1 parent 1d3cfc4 commit 1661516
2 files changed
Lines changed: 51 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1107 | 1151 | | |
1108 | 1152 | | |
1109 | 1153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
278 | 283 | | |
279 | 284 | | |
280 | | - | |
| 285 | + | |
281 | 286 | | |
282 | 287 | | |
283 | 288 | | |
| |||
0 commit comments