fix(ui): discard stale config state on explicit reload#40443
fix(ui): discard stale config state on explicit reload#40443MikeChongCan wants to merge 6 commits intoopenclaw:mainfrom
Conversation
Greptile SummaryThis PR correctly splits passive-refresh from explicit-reload semantics in the config controller so that clicking "Reload Config" discards stale local edits while background refreshes preserve unsaved work. The core implementation is sound:
Confidence Score: 4/5
Last reviewed commit: 2a467c2 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a467c20ed
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
a808f53 to
5ddeaf2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b982a39d7a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
b982a39 to
2d2db75
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d2db75ac7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1cd3a73ba
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
b1cd3a7 to
60efccd
Compare
60efccd to
07b9555
Compare
|
Rebased onto the latest |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Codex automated review: keeping this open. Keep open. Current main still lacks this PR's explicit reload versus passive refresh split: Best possible solution: Keep this PR open for maintainer review or land an equivalent fix. The best path is to rebase it onto current main, preserve the explicit reload versus passive refresh split in What I checked:
Remaining risk / open question:
Codex Review notes: model gpt-5.5, reasoning high; reviewed against 91e835ebe0ab. |
Summary
Reload Configshould replace stale local edits with the current gateway snapshot, while passive refreshes should still preserve unsaved work.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
Reload Configin Control UI now discards pending local config edits and reloads the live gateway snapshot.Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:Repro + Verification
Environment
agents.defaults.modelchanged betweenanthropic/claude-opus-4-6andollama/qwen3-coder:30b-64kSteps
Agents -> Overviewand observe the current primary model.Reload Configand verify the overview and dropdown both update.Expected
Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
Review Conversations
Compatibility / Migration
Yes)No)No)Failure Recovery (if this breaks)
2a467c2.ui/src/ui/controllers/config.ts,ui/src/ui/app-render.ts,ui/src/ui/app-channels.ts.Risks and Mitigations
AI-assisted: yes. Codex was used to implement the change, run checks, and apply follow-up fixes from Gemini/Claude review.