Repository navigation
fix: show approval destinations only when the forwarding mode uses them - #207885
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: bffea35d-eabf-4ccd-8cbd-51894615a682
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesThis PR shows exec and plugin approval destinations only when forwarding mode is Targets or Both, preserving saved destinations while hidden. Example: Exec approvals have a saved IRC destination of #approval-review and no forwarding mode selected.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a misleading approval destination editor with a focused presentation change; no actionable defects were found, and current-head CI is still running. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe schema-backed Control UI form receives approval configuration and produces editable fields; the Gateway separately owns saving configuration and routing approval requests. flowchart TD
A[Approval configuration] --> B[Schema form field resolver]
B --> C[Forwarding mode control]
B --> D[Conditional destination editor]
C --> E[Existing config patch path]
D --> E
E --> F[Gateway configuration and routing]
Technical reviewBest possible solution: Keep the visibility filter in the existing form resolver while preserving configuration values and the Gateway's routing contract. Do we have a high-confidence way to reproduce the issue? Current main renders the targets field without consulting forwarding mode, while the routing owner defaults an unset mode to session; the inspected before screenshot shows this mismatch. Is this the best way to solve the issue? The narrow field filter matches the existing routing modes, covers both approval types, and introduces no alternate editor, state owner, or configuration option. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 793ccbd52f9e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9, Tests +28. Total +37 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 28, 2026, 9:34 PM ET / November 29, 2026, 02:34 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…seline * commit '32403124cae2ccbcfc556e844b218682b133956e': (547 commits) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) chore: stop the Workboard resident-owner CLI test from failing on main (#207898) test(agents): isolate endpoint-based overflow classification (#207688) chore(doctor): record why the root defaultModel migration stays (#207890) ...
…eline * commit 'eee1e0553d29456424ac367008c3cf080f9866ec': (550 commits) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) test(activity): check midnight refresh against the elapsed window (#207859) test(ui): use one persisted message ID in queued-image handoff (#207861) test(agents): release configured MCP fixture resources (#207716) fix(workboard): clear CI failures in the session filter editor (#207858) perf(ai): reduce allocation in OpenAI Responses streams (#207889) ...
…ions suite * commit '60e80f1c5fd439f7aa4ce33f54985c7efdc30884': (555 commits) refactor: remove the bundled GBrain adapter (#207924) improve(ui): show optional run limits beside the automation schedule (#201283) test(onboarding): inspect recorded output for credential leaks (#207872) perf(exec): reduce host memory sampler allocations (#207927) test(mcp-relay): isolate the Connected apps fallback locale (#207923) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) fix: verify chat Stop recovery after dashboard pairing (#207888) ...
* commit 'ba0a7a5fac3e2f1b642d05502273b98dc75adf4f': (556 commits) test(agents): fix provider header filtering coverage (#207732) refactor: remove the bundled GBrain adapter (#207924) improve(ui): show optional run limits beside the automation schedule (#201283) test(onboarding): inspect recorded output for credential leaks (#207872) perf(exec): reduce host memory sampler allocations (#207927) test(mcp-relay): isolate the Connected apps fallback locale (#207923) fix(acp): deliver bound channel replies to the pending question (#207035) fix(cron): keep required reports from going silent when nothing changes (#207044) test(sessions): assert participant queue rollback state (#207891) perf(gateway): skip session display preparation for transcript recall (#207916) test(agents): verify complete bracketed paste payload (#207733) test: stop timing out the cron recovery settlement test on slow runners (#207920) fix: show when worktree cleanup stopped or will retry (#207883) fix: show approval destinations only when the forwarding mode uses them (#207885) fix: keep inherited tools when changing agent settings (#207884) feat: let Knowledge add someone's email or other alias to a page without rewriting it (#207881) fix: stop reporting a child worker as finished when the Gateway loses contact (#207713) fix: keep the Activity visibility test stable at midnight (#207847) perf(agents): reuse prepared tool catalog executors (#207900) fix: show the Gateway command default beside host rules in Devices (#207887) ...
…em (openclaw#207885) Show saved exec and plugin approval destinations in Targets and Both. Preserve the entries when the operator switches to Session. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: bffea35d-eabf-4ccd-8cbd-51894615a682
What Problem This Solves
In Privacy & security, I could save a destination for exec or plugin approvals without picking a forwarding mode. In that mode requests go to the originating session, not the saved destination.
User Impact
The destination editor now appears only for Targets and Both. Switching to Session hides the editor without deleting its entries. Selecting Targets or Both again brings them back. No migration or routing change.
Why This Change Was Made
I filtered the row in the existing form, not the config sent to the Gateway. This keeps the two approval types independent and leaves their mode controls, saved values and routing rules alone. No new editor or copy.
Evidence
I used Chromium and a real loopback Gateway on AWS with a synthetic IRC destination. On main (
15a54eaa5479), both forms saved a changed destination with no mode selected. On the fix (93fccffbb422), I switched each form through Targets, Session and Both, checked the config file after each change, then reloaded and saw the saved destination again when I selected Targets.Both regression cases failed on main because the editor was visible. On the fix, all 8 tests in the focused Chromium suite passed (1.08 s); the UI build, typecheck, scoped lint and formatting passed. I did not send a live approval through a channel.
I reviewed the diff against the schema and routing contract. Local autoreview could not start in its read-only sandbox; no independent review result is claimed.
Clean comparison
Before (main): No mode is selected, but the form offers an editable destination.
After (fix): With the same saved destination and no mode selected, the editor is hidden.
Annotated comparison
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.
🦞 Made with OpenClaw