Skip to content

Commit 9878bfc

Browse files
docs: drop retired gateway.reload keys and modes from config docs (#116975)
The gateway.reload documentation advertised four settings the shipped build rejects. gateway.reload is a strictObject accepting only `mode`, and `mode` is a union of "off" | "hybrid", so a config written from the docs fails validation and the gateway fails closed on the unknown keys. Retired but still documented: - `debounceMs` and `deferralTimeoutMs` (RETIRED_TUNING_PATHS; stripped by `openclaw doctor --fix` via stripRetiredTuningKnobs) - `mode: "restart"` and `mode: "hot"` (mapped to "hybrid" by `openclaw doctor --fix`) Correct all four docs pages that still describe them, and say what replaced them: debounce and active-work deferral now run behind built-in defaults rather than config keys. Refs #116973
1 parent 61fb29e commit 9878bfc

4 files changed

Lines changed: 16 additions & 18 deletions

File tree

‎docs/gateway/configuration-reference.md‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -761,21 +761,19 @@ See [Multiple Gateways](/gateway/multiple-gateways).
761761
{
762762
gateway: {
763763
reload: {
764-
mode: "hybrid", // off | restart | hot | hybrid
765-
debounceMs: 500,
766-
deferralTimeoutMs: 300000,
764+
mode: "hybrid", // off | hybrid
767765
},
768766
},
769767
}
770768
```
771769

772770
- `mode`: controls how config edits are applied at runtime.
773771
- `"off"`: ignore live edits; changes require an explicit restart.
774-
- `"restart"`: always restart the gateway process on config change.
775-
- `"hot"`: apply changes in-process without restarting.
776-
- `"hybrid"` (default): try hot reload first; fall back to restart if required.
777-
- `debounceMs`: debounce window in ms before config changes are applied (non-negative integer; default: `300`).
778-
- `deferralTimeoutMs`: optional maximum time in ms to wait for in-flight operations before forcing a restart or channel hot reload. Omit it to use the default bounded wait (`300000`); set `0` to wait indefinitely and log periodic still-pending warnings.
772+
- `"hybrid"` (default): apply hot-safe changes in-process, then restart when a change requires it.
773+
774+
The earlier `"restart"` and `"hot"` values are retired; [`openclaw doctor --fix`](/cli/doctor) maps both to `"hybrid"`.
775+
776+
Reload debounce and in-flight operation deferral are no longer configurable and run behind built-in defaults. [`openclaw doctor --fix`](/cli/doctor) removes the retired `debounceMs` and `deferralTimeoutMs` keys from older config files.
779777

780778
---
781779

‎docs/gateway/configuration.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -535,21 +535,21 @@ for the checklist.
535535

536536
### Reload modes
537537

538-
| Mode | Behavior |
539-
| ---------------------- | --------------------------------------------------------------------------------------- |
540-
| **`hybrid`** (default) | Hot-applies safe changes instantly. Automatically restarts for critical ones. |
541-
| **`hot`** | Hot-applies safe changes only. Logs a warning when a restart is needed - you handle it. |
542-
| **`restart`** | Restarts the Gateway on any config change, safe or not. |
543-
| **`off`** | Disables file watching. Changes take effect on the next manual restart. |
538+
| Mode | Behavior |
539+
| ---------------------- | ----------------------------------------------------------------------------- |
540+
| **`hybrid`** (default) | Hot-applies safe changes instantly. Automatically restarts for critical ones. |
541+
| **`off`** | Disables file watching. Changes take effect on the next manual restart. |
544542

545543
```json5
546544
{
547545
gateway: {
548-
reload: { mode: "hybrid", debounceMs: 300 },
546+
reload: { mode: "hybrid" },
549547
},
550548
}
551549
```
552550

551+
The earlier `hot` and `restart` modes are retired; [`openclaw doctor --fix`](/cli/doctor) maps both to `hybrid`. Reload debounce is no longer configurable and runs behind a built-in default.
552+
553553
### What hot-applies vs what needs a restart
554554

555555
Most fields hot-apply without downtime; some hot-applied sections restart just that

‎docs/gateway/index.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ Gateway startup uses the same effective port and bind when it seeds local Contro
113113
| `gateway.reload.mode` | Behavior |
114114
| --------------------- | ------------------------------------------ |
115115
| `off` | No config reload |
116-
| `hot` | Apply only hot-safe changes |
117-
| `restart` | Restart on reload-required changes |
118116
| `hybrid` (default) | Hot-apply when safe, restart when required |
119117

118+
The earlier `hot` and `restart` modes are retired; [`openclaw doctor --fix`](/cli/doctor) maps both to `hybrid`.
119+
120120
## Operator command set
121121

122122
```bash

‎docs/help/faq.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ First-run Q&A - install, onboard, auth routes, subscriptions, initial failures -
592592
</Accordion>
593593

594594
<Accordion title="Do I have to restart after changing config?">
595-
The Gateway watches the config and supports hot-reload: `gateway.reload.mode: "hybrid"` (default) hot-applies safe changes and restarts for critical ones. `hot`, `restart`, and `off` are also supported. Most `tools.*`, `agents.*` policy, `session.*`, and `messages.*` changes apply immediately with no reload action at all; `gateway.*` binding/port changes require a restart.
595+
The Gateway watches the config and supports hot-reload: `gateway.reload.mode: "hybrid"` (default) hot-applies safe changes and restarts for critical ones. `off` disables config reload; the earlier `hot` and `restart` modes are retired. Most `tools.*`, `agents.*` policy, `session.*`, and `messages.*` changes apply immediately with no reload action at all; `gateway.*` binding/port changes require a restart.
596596
</Accordion>
597597

598598
<Accordion title="How do I enable web search (and web fetch)?">

0 commit comments

Comments
 (0)