Skip to content

fix: gate Control UI agent and skill actions by Gateway capabilities - #119286

Merged
shakkernerd merged 35 commits into
mainfrom
fix/control-ui-agent-skill-capabilities
Aug 4, 2026
Merged

shakkernerd merged 35 commits into
mainfrom
fix/control-ui-agent-skill-capabilities

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

What Problem This Solves

Agents, Skills, and Skill Workshop load through read-scoped Gateway methods, but their mutation controls did not consistently account for the connected Gateway method catalog, the operator scopes, or a replacement connection. Read-only and write-scoped operators could therefore reach actions that the Gateway would reject, and delayed work could dispatch through a different Gateway than the one that authorized it.

What Changed

  • Centralize Control UI method and operator-scope capability checks while preserving compatibility with older Gateways that omit method or scope metadata.
  • Gate Agents, Skills, Skill Workshop, Memory, configuration, upload, install, history, proposal, and revision actions at presentation and immediately before dispatch.
  • Bind delayed configuration writes, proposal work, and revision delivery to their originating Gateway so reconnects cannot retarget pending mutations.
  • Keep read-only navigation and authorized admin/write workflows available.
  • Add the changelog entry for the operator-visible behavior.

Evidence

  • Hetzner Crabbox run_017d85a83a3a: 66 focused unit/browser tests and 5 Control UI E2E tests passed; exact-file formatting, lint, and UI test types passed.
  • Earlier full remote check:changed, test:changed, and ui:build passed on the behaviorally equivalent production patch.
  • Packaged OCM browser verification covered read-only and authorized Agents, Skills, Skill Workshop, and Memory workflows, plus replacement-Gateway draft ownership and explicit save/recovery.
  • Independent exact-head review found no correctness findings.
  • Conflict-free rebase onto current origin/main retained all 35 patches exactly under git range-diff.

Fixes #119176

@shakkernerd shakkernerd self-assigned this Aug 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 4, 2026
@shakkernerd
shakkernerd force-pushed the fix/control-ui-agent-skill-capabilities branch from 998eda7 to 455e673 Compare August 4, 2026 16:48
@shakkernerd
shakkernerd merged commit bfba839 into main Aug 4, 2026
11 checks passed
@shakkernerd
shakkernerd deleted the fix/control-ui-agent-skill-capabilities branch August 4, 2026 16:48
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Merged using rebase.

What changed after review:

  • Removed 375 lines of redundant test coverage without changing production behavior.
  • Preserved the shared authorization, lifecycle, legacy compatibility, and reconnect regression coverage.
  • Kept the changelog entry unchanged.

Verification:

  • Rebased onto current origin/main before merging; all 35 patches remained equivalent under git range-diff.
  • Hetzner Crabbox run_017d85a83a3a: 66 focused unit/browser tests, 5 Control UI E2E tests, formatting, lint, and UI test types passed.
  • Packaged OCM browser verification covered authorized and read-only workflows plus replacement-Gateway draft ownership.
  • GitHub had no failed checks at merge; Real behavior proof subsequently passed.

Landed on main at bfba83956f5d7c50a76ca5d9033e44af2d4350f1.

Thanks @shakkernerd!

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main: (40 commits)
  fix(telegram): correlate deliveries to explicit topics
  fix(plugins): preserve install index state across failures (#119228)
  test: trim redundant control ui coverage (#119286)
  test: cover missing config method in memory settings
  fix: gate curated config controls by method
  test: cover read-only admin method gates
  fix: keep config drafts on their gateway
  fix: reset agent skill filters with config patch
  refactor: reuse chat error state helper
  test: avoid unbound identity request assertion
  refactor: isolate clawhub skill search
  fix: guard delayed config actions across reconnects
  fix: preserve workshop revisions across session navigation
  refactor: isolate workshop revision handoff
  test: advertise skill action methods in ui e2e
  fix: fail stale workshop revision sends
  fix: bind revision handoffs to gateway snapshots
  fix: recheck queued agent and skill access
  fix: recheck config access after parsing
  test: advertise config writes in ui e2e
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
Punchcard-Session: crisp-lantern-orchard-nv

* origin/main: (46 commits)
  perf(agents): reuse provider policy manifest registry (#119305)
  fix(media): roll back partial generated batches (#119292)
  fix(gateway): steer matching embedded turns (#119287)
  fix(telegram): correlate deliveries to explicit topics
  fix(plugins): preserve install index state across failures (#119228)
  test: trim redundant control ui coverage (#119286)
  test: cover missing config method in memory settings
  fix: gate curated config controls by method
  test: cover read-only admin method gates
  fix: keep config drafts on their gateway
  fix: reset agent skill filters with config patch
  refactor: reuse chat error state helper
  test: avoid unbound identity request assertion
  refactor: isolate clawhub skill search
  fix: guard delayed config actions across reconnects
  fix: preserve workshop revisions across session navigation
  refactor: isolate workshop revision handoff
  test: advertise skill action methods in ui e2e
  fix: fail stale workshop revision sends
  fix: bind revision handoffs to gateway snapshots
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
* origin/main: (40 commits)
  fix(telegram): correlate deliveries to explicit topics
  fix(plugins): preserve install index state across failures (openclaw#119228)
  test: trim redundant control ui coverage (openclaw#119286)
  test: cover missing config method in memory settings
  fix: gate curated config controls by method
  test: cover read-only admin method gates
  fix: keep config drafts on their gateway
  fix: reset agent skill filters with config patch
  refactor: reuse chat error state helper
  test: avoid unbound identity request assertion
  refactor: isolate clawhub skill search
  fix: guard delayed config actions across reconnects
  fix: preserve workshop revisions across session navigation
  refactor: isolate workshop revision handoff
  test: advertise skill action methods in ui e2e
  fix: fail stale workshop revision sends
  fix: bind revision handoffs to gateway snapshots
  fix: recheck queued agent and skill access
  fix: recheck config access after parsing
  test: advertise config writes in ui e2e
  ...
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 maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: gate Control UI agent and skill actions by Gateway capabilities

1 participant