Skip to content

fix(ui): show restart banner for unapplied config#107577

Merged
steipete merged 10 commits into
mainfrom
codex/applied-config-hash
Jul 14, 2026
Merged

fix(ui): show restart banner for unapplied config#107577
steipete merged 10 commits into
mainfrom
codex/applied-config-hash

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Closes #107216

What Problem This Solves

Control UI config pages could not truthfully determine whether the saved config was active after a refresh, reconnect, or Gateway restart.

Why This Change Was Made

The Gateway now publishes an additive applied config revision hash in the hello snapshot and config.get. Control UI compares the persisted and applied revision hashes, polls through hot-reload convergence, and keeps a process-local fallback for older Gateways. The protocol version is unchanged.

User Impact

The Restart & apply banner now reflects Gateway runtime truth and survives capability recreation instead of depending on localStorage.

Evidence

AI Assistance

AI-assisted implementation and review. Findings were independently verified with focused tests before disposition.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts size: L maintainer Maintainer-authored PR labels Jul 14, 2026
@steipete
steipete force-pushed the codex/applied-config-hash branch from 24f277d to 664db75 Compare July 14, 2026 14:48
@steipete
steipete force-pushed the codex/applied-config-hash branch from 664db75 to 747ff0f Compare July 14, 2026 14:55
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 747ff0f5fde4c2aa17155916b10f0d9cbb67d802:

The change is additive and intentionally does not bump the gateway protocol version. No known proof gaps.

@steipete
steipete merged commit 2ecc6b6 into main Jul 14, 2026
156 of 160 checks passed
@steipete
steipete deleted the codex/applied-config-hash branch July 14, 2026 15:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 15, 2026
* fix(ui): derive config apply state from gateway

* test(ui): align applied config hash coverage

* test(ui): follow config autosave flow

* fix(ui): guard applied config refreshes

* fix(ui): reconcile patched config revisions

* fix(ui): prevent stale config apply polling

* chore: leave release notes to release flow

* refactor(config): split applied revision helpers

* style(config): format gateway methods

* fix(i18n): refresh Korean native glossary hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the active config revision over the Gateway protocol

1 participant