fix(ui): read tools.exec.security in Quick Settings instead of agents.defaults path#78340
fix(ui): read tools.exec.security in Quick Settings instead of agents.defaults path#78340XuZehan-iCenter wants to merge 3 commits into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: this PR addresses a real current-main Control UI bug, but the same remaining fix is already covered by the more complete open implementation at #78448, which includes the changelog entry and sufficient real behavior proof this PR still lacks. So I’m closing this here and keeping the remaining discussion on the canonical linked item. Review detailsBest possible solution: Land a single canonical fix that reads the documented Do we have a high-confidence way to reproduce the issue? Yes. Source inspection reproduces the current-main bug: render Quick Settings with Is this the best way to solve the issue? No for this PR as the merge path. The patch direction is now reasonable, but #78448 is the safer canonical solution because it tracks the same bug with changelog coverage and sufficient real behavior proof. Security review: Security review cleared: The diff is limited to Control UI config display logic and a jsdom unit test; it does not add dependencies, workflows, secret handling, or code-execution paths. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 1f822d7c222c. |
3653ce9 to
aa9b36e
Compare
aa9b36e to
4b09c27
Compare
….defaults path The Control UI Quick Settings security badge was reading cfg.agents.defaults.exec.security, which does not exist in current configs. The exec security setting has lived under ools.exec.security since v2026.4.x. This restores the correct exec-policy display (�llowlist, �locklist, etc.) in the UI. Backward-compatible: falls back to the old �gents.defaults.exec.security path if ools.exec.security is absent, preserving behavior for legacy configs. Closes openclaw#78311
This comment was marked as low quality.
This comment was marked as low quality.
Thanks for the review! I had originally planned to add a changelog entry, but since the branch merge timing was sensitive and the change was relatively small, I skipped it this time to avoid conflicts. I’ll make sure to include changelog updates and inline notes in future PRs to keep the style consistent. Appreciate the suggestion! |
- Remove legacy agents.defaults.exec.security fallback (schema does not define this path) - Use path-presence check instead of sentinel-value check for tools.exec.security - Trim whitespace on security value, consistent with gatewayAuth normalization - Export extractQuickSettingsSecurity for regression test coverage - Add 6-case jsdom regression test covering canonical path, legacy-path ignore, missing-config fallback, whitespace trim, empty-string fallback, and absent-config sentinel Fixes openclaw#78311
Fixes #78311
The Control UI Quick Settings security badge was reading
cfg.agents.defaults.exec.security, which does not exist in current configs. The exec security setting has lived undertools.exec.securitysince v2026.4.x.Real behavior proof
Before fix:
tools.exec.securityto"blocklist"in configallowlist(wrong path)After fix:
tools.exec.securityand showsblocklistagents.defaults.exec.securityonly iftools.exec.securityis absent (backward-compatible)Changelog
tools.exec.securityinstead of the staleagents.defaults.exec.securitypath, restoring correct display of the user's exec-policy badge. Fixes [Bug]: Control UI Settings page shows wrong Exec Policy — reads from wrong config path #78311.Formatting
pnpm exec oxfmt --check --threads=1 ui/src/ui/app-render.ts— passed.Closes #78311