Skip to content

fix: show approval destinations only when the forwarding mode uses them - #207885

Merged
daniel-lxs merged 3 commits into
mainfrom
openclaw/vyctor-idea-applied-elsewhere-3b6009
Nov 29, 2026
Merged

daniel-lxs merged 3 commits into
mainfrom
openclaw/vyctor-idea-applied-elsewhere-3b6009

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Main: unset forwarding mode still offers a destination

After (fix): With the same saved destination and no mode selected, the editor is hidden.

Fix: unset forwarding mode hides the target editor

Annotated comparison

Main: the unused destination editor highlighted

Fix: the mode control highlighted with no target editor below

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

🦞 Made with OpenClaw

roboclaw-bot and others added 2 commits November 29, 2026 01:46
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: bffea35d-eabf-4ccd-8cbd-51894615a682
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 29, 2026
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 29, 2026 01:53
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The destination remains editable even though requests use session routing.
  • After: The destination editor is hidden and returns with its saved value when Targets or Both is selected.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct UI repair with inspected visual proof and distinct browser regressions; current-head CI has not finished.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots show the changed form behavior in Chromium, supported by the author's real-Gateway verification of both approval types, mode switching, saved configuration, and reload; the screenshots directly demonstrate the unset-mode exec case.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Users can edit approval destinations that the selected or default forwarding mode will ignore.
Reason: The maintainer-authored direction removes a misleading control while retaining saved destinations and existing routing behavior.

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: 7c0ec7815811ac76c86ba36764c53948daa41b51

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 32aafab adds ui/src/components/config-form.node.collection.ts:159 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 32aafab01c35; files: ui/src/components/config-form.node.collection.ts)
  • Peter Steinberger: Raw commit 72088ef adds ui/src/components/config-form.node.collection.ts:166 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 72088ef3eae8; files: ui/src/components/config-form.node.collection.ts)
  • Vincent Koc: Raw commit ef32ee2 adds ui/src/components/config-form.node.collection.ts:84 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: ef32ee2f9da0; files: ui/src/components/config-form.node.collection.ts)

PR surface

Source +9, Tests +28. Total +37 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 10 1 +9
Tests 1 28 0 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 38 1 +37

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-29T01:58:11.696Z sha 6197144 :: passed. :: none

Reviewed November 28, 2026, 9:34 PM ET / November 29, 2026, 02:34 UTC (Revision 2).

@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@daniel-lxs
daniel-lxs merged commit 60c5bdf into main Nov 29, 2026
80 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/vyctor-idea-applied-elsewhere-3b6009 branch November 29, 2026 03:05
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…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)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…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)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
…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)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…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
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants