You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e3de98a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(update): scheduled update campaigns with countdown, dev-channel auto-update, and Updates settings page (#120506)
* feat(update): scheduled update campaigns with countdown, dev-channel auto-update, and Updates settings page
* fix(ui): satisfy update campaign deadcode checks
* feat(update): extend scheduled update campaigns
* test(ui): include Updates page in settings sidebar search expectations
* fix(update): end campaigns when apply fails
* fix(update): pin dev campaign applies to the announced commit
* test(ui): align update e2e fixtures
* fix(update): pin adopted dev updates to the announced commit
* docs(update): document automatic dev update campaigns
* fix(ui): gate automatic dev updates on git installs
* fix(gateway): scope detailed update metadata to read-capable clients
* fix(gateway): break post-attach madge cycle with a leaf client-lookup type
* chore(protocol): regenerate clients after rebase
* test(gateway): update method tail after rebase
* fix(update): preserve campaign target and hold state
* test(update): align adoption mocks and split handoff suite
* test(update): route split handoff suites on Windows
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1370,7 +1370,7 @@ writer is best-effort, not a lossless compliance archive.
1370
1370
1371
1371
-`channel`: release channel - `"stable"`, `"extended-stable"`, `"beta"`, or `"dev"`. Extended-stable is package-only: foreground commands own installation, while the Gateway may emit read-only update hints.
1372
1372
-`checkOnStart`: check for npm updates when the gateway starts (default: `true`). Stored extended-stable selections use the same read-only hint and 24-hour hint schedule.
1373
-
-`auto.enabled`: enable background auto-update for stable and beta package installs (default: `false`). Extended-stable never applies automatically.
1373
+
-`auto.enabled`: enable background auto-update campaigns for stable and beta package installs and dev git installs (default: `false`). Extended-stable never applies automatically.
|`stable`| After a built-in delay with deterministic jitter for a spread rollout, announces an update campaign. |
272
+
|`extended-stable`| Checks for a read-only update hint on startup and every 24 hours when `checkOnStart` is enabled. Never applies automatically. |
273
+
|`beta`| Checks on a built-in interval and announces an update campaign as soon as a newer release is available. |
274
+
|`dev`| With `auto.enabled`, git installs check hourly. When upstream commits are available, the Gateway announces an update campaign pinned to the exact announced commit. |
275
+
276
+
### Update campaigns
277
+
278
+
When an automatic update is due, the campaign waits for active work to finish,
279
+
then starts a one-minute countdown. A 15-minute hard deadline starts the update
280
+
even if work remains, using the normal restart drain and session-recovery path.
281
+
282
+
An admin can use **Hold 1 h** once to postpone the campaign and shift its hard
283
+
deadline, or choose **Update now** from the sidebar update card or
284
+
**Settings → Updates**. For a `dev` git install, the campaign installs the exact
285
+
commit it announced. The displayed list previews up to five commits from that
286
+
fixed target and does not move if upstream `main` advances during the countdown.
287
+
288
+
Every failed apply ends the campaign so the UI does not remain on
289
+
**Updating…**. Failures after a managed-service handoff starts are also recorded
290
+
in the restart sentinel and surface after the Gateway returns; direct
291
+
unsupervised failures remain in the running Gateway's logs.
292
+
293
+
`OPENCLAW_NO_AUTO_UPDATE=1` and external-supervisor mode disable automatic
294
+
applies entirely. Startup update hints can still run unless
295
+
`update.checkOnStart` is also disabled.
272
296
273
297
The gateway also logs an update hint on startup (disable with
274
298
`update.checkOnStart: false`). Stored extended-stable selections use this
275
299
read-only hint path and the existing 24-hour hint interval, but never invoke
276
300
automatic installation, handoff, restart, stable delay/jitter, or beta polling.
277
-
For downgrade or incident recovery, set `OPENCLAW_NO_AUTO_UPDATE=1` in the gateway environment to block automatic applies even when `update.auto.enabled` is configured. Startup update hints can still run unless `update.checkOnStart` is also disabled.
278
301
279
302
Package-manager updates requested through the live Gateway control-plane
280
303
(`update.run`) do not replace the package tree inside the running Gateway
0 commit comments