Skip to content

fix(plugins): scope Codex relay with tool matchers - #109603

Merged
vincentkoc merged 12 commits into
openclaw:mainfrom
nakamasato:feat/tool-hook-matchers-codex-relay
Jul 29, 2026
Merged

vincentkoc merged 12 commits into
openclaw:mainfrom
nakamasato:feat/tool-hook-matchers-codex-relay

Conversation

@nakamasato

@nakamasato nakamasato commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes #109522

What Problem This Solves

Codex app-server tool calls can spawn openclaw hooks relay for every tool once any tool hook, trusted tool policy, or tool-result middleware is registered, even when the registration only applies to one tool. On constrained hosts, that unnecessary relay fan-out contributes to the process and memory pressure tracked in #91009.

Why This Change Was Made

Adds an optional exact tool-name matcher to the three tool-scoped registration surfaces:

  • api.on("before_tool_call" | "after_tool_call", handler, { matcher })
  • registerTrustedToolPolicy({ matcher })
  • registerAgentToolResultMiddleware(handler, { matcher })

One canonical matcher implementation now owns dispatch filtering, trusted-policy identity, tool-result middleware filtering, and the Codex native relay configuration. OpenClaw/Codex aliases such as exec, Bash, and exec_command, plus apply_patch, Write, and Edit, normalize through the same table.

Omitted, empty, and wildcard matchers preserve the existing match-all contract. Malformed runtime matcher values are rejected instead of silently broadening a scoped registration to match all. The final validation fix also rejects sparse arrays: JavaScript array iteration had skipped holes, allowing an invalid matcher collection to reach the native relay. Custom tool names are escaped and anchored before being forwarded as a Codex regex.

User Impact

Plugins that scope tool hooks can avoid relay processes for unrelated tool calls without weakening policy coverage. Existing unscoped registrations remain match-all.

Evidence

Exact head: 9d6b7eda8ec0d8f9fd62e390f0b6573b35956a7f

  • Seven focused hook, policy, middleware, native relay, and Codex adapter files: 201 tests passed across five Vitest shards.
  • Composed-registry relay/policy proof: 190 tests passed across native relay, global registry composition, and before-tool policy E2E suites. The regression splits the ordinary hook and trusted policy across distinct registries and asserts the combined native matcher.
  • Malformed matcher proof rejects sparse arrays and falsey non-array values, and trusted policies fail closed before evaluator execution.
  • The first exact-head CI ownership repair moved the matcher-scope helper out of the public hook-runner module; the exact failing SDK guardrail plus native relay and registry composition suites passed 102 tests.
  • The next exact-head CI diagnostics identified test fixture typing errors and an unused exported matcher type. The final static fix removes that export, completes middleware-result fixtures, and types the handler mock; 180 focused tests passed.
  • Rebase conflict resolution preserved current main's before_agent_reply eligibleTriggers contract and legacy-hook registration ownership while composing independent tool matcher filtering. The rebased tree passed 216 focused tests; a final 95-test conflict-surface smoke passed after the last conflict-free main replay.
  • Changed-file oxfmt, oxlint, and git diff --check passed. The release-owned root changelog entry was removed; release-note context remains in this PR body.
  • Fresh branch autoreview on the identical patch before the final conflict-free base replay: clean, confidence 0.95.
  • Redacted live Codex 0.145.0 relay/process proof on pre-rebase behavior head c2c0bce881f10a07c1e770646213e4e2446a8315:
    • Startup-loaded before_tool_call matcher ["exec_command"] produced native matcher Bash|exec|exec_command.
    • Matching bash: relayed exactly once and completed.
    • Excluded apply_patch: zero relay hook processes.
    • Sparse one-hole matcher: rejected before native relay matcher construction.
    • Live result: 1 passed, 1 skipped, 258.86s; identifiers, paths, credentials, and tokens were not retained.
    • The linked-worktree gateway inventory logged a local package-artifact warning, but the selected Codex agent runtime pre-warmed and the real app-server hook lifecycle and relay assertions completed successfully.
  • Direct Codex contract inspection at rust-v0.145.0 (annotated tag 1635de866c61d1b76e50b31928ee6d61482435a8, source commit 25af12f7e61572b0bc18ddb1008be543b91519b0):
    • codex-rs/hooks/src/events/common.rs: omitted, wildcard, and empty matchers are match-all; exact alternatives support |.
    • codex-rs/hooks/src/engine/dispatcher.rs: matching handlers are selected once before execution.
    • codex-rs/hooks/src/engine/command_runner.rs: selected handlers spawn piped child processes with kill-on-drop and timeout handling.
    • codex-rs/hooks/src/events/pre_tool_use.rs: no matching handler returns without spawning a hook process.
    • codex-rs/core/src/tools/hook_names.rs: shell and patch identities include the expected aliases.
    • codex-rs/core/src/hook_runtime.rs and codex-rs/app-server/src/bespoke_event_handling.rs: hook started/completed events are emitted and forwarded through app-server notifications.

Current-Main Codex 0.146.0 Proof

Exact head: 9d6b7eda8ec0d8f9fd62e390f0b6573b35956a7f
Base replayed: c6dfee1b78b465ff858fdb6396537d7c2227b36f

result=PASS
codexServerVersion=0.146.0
nativeMatcher=Bash|exec|exec_command
covered relayInvocations=1 hookStarted=1 hookCompleted=1
excluded apply_patch executed=true additionalRelayInvocations=0
omitted matcher=match-all preserved
non-array/sparse/wildcard malformed matchers=rejected
credentialsExposed=false privatePathsExposed=false

The proof used an actual Codex app-server 0.146.0, the generated openclaw hooks relay command, and a local mock Responses endpoint. The disposable exact-head build passed; all changed files passed formatting and git diff --check.

Direct dependency contract inspected at Codex tag rust-v0.146.0, commit e363b08c9175ac1cbe5893615dd2cb9ddf95043b:

  • codex-rs/hooks/src/events/common.rs
  • codex-rs/hooks/src/engine/dispatcher.rs
  • codex-rs/hooks/src/events/pre_tool_use.rs
  • codex-rs/core/src/tools/hook_names.rs
  • codex-rs/app-server/src/bespoke_event_handling.rs

Focused Vitest and oxlint replay on this head were queued behind the repository's active maintainer prepare gate; the pre-replay identical patch had 221 focused tests and exact-head CI green. The release-owned root changelog entry was removed; release-note context remains in this PR body. Fresh hosted CI is required for this pushed head.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: codex size: L labels Jul 17, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 1:15 PM ET / 17:15 UTC.

ClawSweeper review

What this changes

This PR adds optional canonical tool-name matchers to plugin tool hooks, trusted tool policies, and tool-result middleware, then uses their combined scope to prevent Codex from spawning native relay processes for unrelated tools.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

Keep this PR open for maintainer review. The latest branch repairs the earlier alias and mixed-runtime scope blockers, preserves unscoped match-all behavior, and includes credible real Codex relay proof; the remaining blocker is confirming that an exact tool-name matcher is the intended permanent public contract across three plugin APIs.

Priority: P1
Reviewed head: 9d6b7eda8ec0d8f9fd62e390f0b6573b35956a7f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong live and focused-test evidence supports a bounded implementation, while public plugin API direction and current-main refresh remain maintainer merge considerations.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR body provides redacted exact-head terminal proof from a real Codex 0.146.0 app-server run, showing one covered relay execution, no relay for an uncovered tool, preserved match-all omission behavior, and malformed matcher rejection.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides redacted exact-head terminal proof from a real Codex 0.146.0 app-server run, showing one covered relay execution, no relay for an uncovered tool, preserved match-all omission behavior, and malformed matcher rejection.
Evidence reviewed 7 items Canonical matcher validation: The branch validates matcher input as a non-empty, dense array of canonical OpenClaw tool IDs; omission alone remains match-all, while aliases, wildcards, sparse arrays, and malformed values are rejected.
Alias and scoped relay projection: The Codex adapter expands canonical OpenClaw tool IDs to Codex aliases for relay selection, while the relay codec normalizes native aliases back to canonical OpenClaw IDs before local filtering. This addresses the prior Write/Edit/Agent mismatch concern.
Runtime and matcher scope pairing: Middleware registrations now retain runtime-plus-matcher scopes and test that Codex-only and OpenClaw-only registrations do not form a cross-product. This addresses the earlier repeated-registration blocker.
Findings None None.
Security None None.

How this fits together

Plugin registrations feed the active hook and policy registries used during agent tool calls. For Codex app-server sessions, the relay adapter projects the active registrations into Codex hook configuration so Codex can skip launching an OpenClaw relay process when no registered local behavior covers that tool.

flowchart LR
  A[Plugin hook or policy registration] --> B[Matcher validation]
  B --> C[Active plugin registries]
  C --> D[Combined event matcher scope]
  D --> E[Codex native hook configuration]
  E --> F[Codex tool call]
  F --> G{Tool matches scope?}
  G -->|Yes| H[OpenClaw relay and local policy]
  G -->|No| I[No relay process]
Loading

Decision needed

Question Recommendation
Should exact canonical tool-name matching become a supported, long-term plugin API contract for hooks, trusted tool policies, and tool-result middleware, rather than remaining a Codex-specific relay optimization? Approve the shared matcher contract: Accept canonical OpenClaw IDs with omission as match-all, provider alias projection at adapters, and independently paired runtime/matcher scopes; then merge after the refreshed exact-head checks pass.

Why: The implementation is intentionally shared across three public registration surfaces, so maintainers must choose the permanent SDK semantics before merge; tests can verify the selected contract but cannot choose it.

Before merge

  • Resolve merge risk (P1) - This adds one optional public matcher capability across three existing plugin registration APIs; maintainers must explicitly own the permanent canonical-ID, omission, alias-projection, repeated-registration, and runtime-scope contract.
  • Resolve merge risk (P1) - The branch is behind current main. Although GitHub reports a clean merge, rebase or merge-result review plus the remaining exact-head CI gates should confirm that current-main hook ownership still composes with the matcher path.
  • Resolve merge risk (P1) - The required direct local inspection of the sibling Codex source and complete repository policy file could not be independently completed because every read-only shell command failed before execution; the PR supplies dependency and live-run evidence, but a final maintainer review should repeat that dependency-contract check.
  • Complete next step (P2) - The branch has no concrete remaining mechanical defect from the supplied evidence; a maintainer must decide whether this compatibility-sensitive public matcher contract should exist before any merge action.
Agent review details

Security

None.

PR surface

Source +413, Tests +536, Docs +9. Total +958 across 27 files.

View PR surface stats
Area Files Added Removed Net
Source 18 434 21 +413
Tests 7 541 5 +536
Docs 2 15 6 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 27 990 32 +958

Review metrics

Metric Value Why it matters
Plugin matcher surfaces 3 existing registration APIs gain 1 optional matcher field The same compatibility-sensitive behavior is now exposed by hooks, trusted policies, and middleware, so one maintained semantic contract is required.

Stored data model

Persistent data-model change detected: serialized state: extensions/codex/src/app-server/native-hook-relay.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #109522
Summary: This PR is the named implementation candidate for the exact matcher-scoping request; it partially overlaps broader relay exhaustion reports but does not replace their lifecycle and loop-detection work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Confirm the SDK contract before merge (recommended)
    Approve the three-surface matcher contract, then rebase or inspect the clean merge result and require the exact-head checks to finish successfully.
  2. Keep matching inside the Codex adapter
    Pause this PR if maintainers do not want tool-name matcher semantics to become a shared public plugin capability.

Technical review

Best possible solution:

Adopt the matcher as a runtime-neutral plugin contract only if the relay owners approve its canonical-ID semantics, then refresh the branch on current main and merge after exact-head checks confirm the documented live Codex behavior.

Do we have a high-confidence way to reproduce the issue?

No independent current-main run was possible in this review environment because read-only shell execution failed. The PR supplies a concrete exact-head Codex 0.146.0 process-count reproduction path and source-level tests for matcher selection, alias normalization, and paired runtime scopes.

Is this the best way to solve the issue?

Unclear pending maintainer direction: the implementation is a narrow, coherent fix for relay fan-out and appears to repair prior review blockers, but only maintainers can decide whether the shared public matcher API is the intended long-term product boundary.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against a47d81e7b33b.

Labels

Label changes:

  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.

Label justifications:

  • P1: The PR addresses an active Codex relay fan-out path that can degrade agent and gateway responsiveness for affected operators.
  • merge-risk: 🚨 compatibility: It extends three public plugin registration contracts, so future plugin behavior depends on stable matcher and alias semantics.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides redacted exact-head terminal proof from a real Codex 0.146.0 app-server run, showing one covered relay execution, no relay for an uncovered tool, preserved match-all omission behavior, and malformed matcher rejection.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides redacted exact-head terminal proof from a real Codex 0.146.0 app-server run, showing one covered relay execution, no relay for an uncovered tool, preserved match-all omission behavior, and malformed matcher rejection.

Evidence

What I checked:

  • Canonical matcher validation: The branch validates matcher input as a non-empty, dense array of canonical OpenClaw tool IDs; omission alone remains match-all, while aliases, wildcards, sparse arrays, and malformed values are rejected. (src/plugins/tool-hook-matcher.ts:23, 9d6b7eda8ec0)
  • Alias and scoped relay projection: The Codex adapter expands canonical OpenClaw tool IDs to Codex aliases for relay selection, while the relay codec normalizes native aliases back to canonical OpenClaw IDs before local filtering. This addresses the prior Write/Edit/Agent mismatch concern. (extensions/codex/src/app-server/native-hook-relay.ts:45, 9d6b7eda8ec0)
  • Runtime and matcher scope pairing: Middleware registrations now retain runtime-plus-matcher scopes and test that Codex-only and OpenClaw-only registrations do not form a cross-product. This addresses the earlier repeated-registration blocker. (src/plugins/agent-tool-result-middleware.ts:64, 9d6b7eda8ec0)
  • Composed pre-tool scope: The relay computes one pre-tool matcher from before-tool hooks and trusted policies, while intentionally retaining match-all relay coverage for loop detection or malformed trusted-policy state so policy evaluation remains fail-closed. (src/agents/harness/native-hook-relay-events.ts:72, 9d6b7eda8ec0)
  • After-fix behavior proof: The PR body records an exact-head Codex app-server 0.146.0 run: an exec-scoped matcher relayed once, an apply_patch call executed without an additional relay, omitted matchers remained match-all, and malformed matcher forms were rejected. (extensions/codex/src/app-server/native-hook-relay.test.ts:310, 9d6b7eda8ec0)
  • Current-main status: Current main is a47d81e, whereas this PR is based on c6dfee1 and is reported mergeable but behind. No evidence identifies this matcher implementation as already merged or released in v2026.7.1. (a47d81e7b33b)

Likely related people:

  • pashpashpash: Prior relay-history review connects the native Codex hook relay lifecycle and its fail-closed behavior to this area, making this the strongest routing signal for matcher semantics and relay scope. (role: introduced behavior; confidence: medium; commits: cec746f6a752, 7a197391c50f; files: src/agents/harness/native-hook-relay.ts, extensions/codex/src/app-server/native-hook-relay.ts)
  • pash-openai: Prior feature-history evidence links this contributor to the embedded native-hook bridge and current Codex adapter behavior adjacent to the proposed matcher projection. (role: recent adjacent contributor; confidence: medium; commits: 3b9265afeab2; files: src/agents/harness/native-hook-relay.ts, extensions/codex/src/app-server/native-hook-relay.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm that the shared three-surface matcher contract is the intended permanent plugin API.
  • Refresh the branch against current main and let the remaining exact-head checks complete before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-07-17T03:29:25.476Z sha a9167eb295764bd6b735b2df252082e26cce0d74 :: needs real behavior proof before merge. :: [P1] Merge matchers when deduplicating result middleware
  • reviewed 2026-07-17T05:35:53.157Z sha d1065f2d6fcdb4e8e124af84a48a34169c88e10f :: needs real behavior proof before merge. :: [P1] Canonicalize Codex aliases before local matcher filtering | [P1] Preserve matcher scopes independently for each runtime
  • reviewed 2026-07-17T11:16:01.226Z sha d1065f2d6fcdb4e8e124af84a48a34169c88e10f :: needs real behavior proof before merge. :: [P1] Canonicalize Codex aliases before local matcher filtering | [P1] Preserve matcher scopes independently for each runtime
  • reviewed 2026-07-17T11:57:49.005Z sha 9635fda4934de653ce12e8d035e1a9788c7e00a3 :: needs real behavior proof before merge. :: [P1] Canonicalize Codex aliases before local matcher filtering | [P1] Preserve matcher scopes independently for each runtime
  • reviewed 2026-07-21T04:49:43.439Z sha a6a2d42085a32479479ff11fe4cbf1e231f2d10b :: needs real behavior proof before merge. :: [P1] Preserve matcher scopes independently for each runtime | [P1] Canonicalize Codex aliases before local matcher filtering
  • reviewed 2026-07-29T12:59:40.416Z sha cdc633c :: needs real behavior proof before merge. :: [P1] Cover Codex’s Agent alias in local matcher normalization
  • reviewed 2026-07-29T15:14:11.980Z sha 8d8aa98 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-29T16:13:54.526Z sha 97f51ad :: needs maintainer review before merge. :: none

@nakamasato
nakamasato force-pushed the feat/tool-hook-matchers-codex-relay branch from a9167eb to d1065f2 Compare July 17, 2026 05:28
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 17, 2026
@nakamasato
nakamasato marked this pull request as ready for review July 17, 2026 11:10
@nakamasato
nakamasato force-pushed the feat/tool-hook-matchers-codex-relay branch from 9635fda to a6a2d42 Compare July 21, 2026 04:45
@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the feat/tool-hook-matchers-codex-relay branch from a6a2d42 to c45c06c Compare July 29, 2026 06:56
@vincentkoc vincentkoc changed the title feat(plugins): tool-name matchers scope tool hooks and Codex native hook relay spawns fix(plugins): scope Codex relay with tool matchers Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the feat/tool-hook-matchers-codex-relay branch from c45c06c to 35a8de1 Compare July 29, 2026 06:59
@vincentkoc
vincentkoc force-pushed the feat/tool-hook-matchers-codex-relay branch 2 times, most recently from c5ff6ad to c2c0bce Compare July 29, 2026 09:09
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 29, 2026
Preserve contributor branch ancestry while replaying the reviewed matcher implementation.
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 29, 2026
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jul 29, 2026
@vincentkoc
vincentkoc merged commit 68dbf92 into openclaw:main Jul 29, 2026
125 of 129 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit to ryanrhughes/openclaw that referenced this pull request Jul 29, 2026
* commit 'e80fe942c8dae4b264acb2b501466224e842aa61':
  fix(gateway): stop start-time repair from retargeting managed services (openclaw#115935)
  fix(plugins): scope Codex relay with tool matchers (openclaw#109603)
  fix(discord): bound webhook send body reads (openclaw#109076)
  fix(ui): preserve initials for missing user avatars (openclaw#115976)
  feat(ui): add provider icons to coding catalogs (openclaw#115956)
  fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285)
  fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927)
  fix(test): isolate plugin install fixtures (openclaw#116008)
  fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729)
  fix(sms): isolate validated webhook quotas per sender (openclaw#104862)
  fix(sessions): recover deleted chats without endless retries (openclaw#115974)
  fix(restart): log errors from restart hook callbacks instead of swallowing (openclaw#108847)
  feat(ui): enable tool-loop detection from Labs (openclaw#115983)
  fix(telegram): catch unhandled rejections in webhook and ingress worker shutdown (openclaw#100998)
  fix(memory): keep rollbacks compatible after recall metadata upgrade (openclaw#116003)
vincentkoc added a commit to nvtoroy/openclaw that referenced this pull request Jul 29, 2026
* origin/main:
  refactor(agents): remove retired Codex CLI parser (openclaw#116017)
  feat(mac): hand off gateway-owned settings panes to the dashboard (openclaw#115999)
  fix(gateway): declare viewer presence explicitly instead of deriving it from subscriptions (openclaw#116001)
  test(plugins): include dreaming sidecar in startup expectation (openclaw#116018)
  fix(openai): prevent GPT-Live errors from stalling (openclaw#115582)
  fix(gateway): stop start-time repair from retargeting managed services (openclaw#115935)
  fix(plugins): scope Codex relay with tool matchers (openclaw#109603)
vincentkoc added a commit to sunlit-deng/openclaw that referenced this pull request Jul 29, 2026
* origin/main: (823 commits)
  fix(memory): return early for blank searches (openclaw#116034)
  fix(tool-search): long-lived gateways leak heap from finished embedded runs (openclaw#114767)
  feat(harness): report copilot code-mode engagement on the attempt result (openclaw#115913)
  fix(ui): compact the macOS gateway picker menu (openclaw#115977)
  perf(codex): stream large CLI session JSONL scans (openclaw#115997)
  cron: reject webhook URLs with embedded credentials (openclaw#51822)
  refactor(agents): remove retired Codex CLI parser (openclaw#116017)
  feat(mac): hand off gateway-owned settings panes to the dashboard (openclaw#115999)
  fix(gateway): declare viewer presence explicitly instead of deriving it from subscriptions (openclaw#116001)
  test(plugins): include dreaming sidecar in startup expectation (openclaw#116018)
  fix(openai): prevent GPT-Live errors from stalling (openclaw#115582)
  fix(gateway): stop start-time repair from retargeting managed services (openclaw#115935)
  fix(plugins): scope Codex relay with tool matchers (openclaw#109603)
  fix(discord): bound webhook send body reads (openclaw#109076)
  fix(ui): preserve initials for missing user avatars (openclaw#115976)
  feat(ui): add provider icons to coding catalogs (openclaw#115956)
  fix(daemon): refuse duplicate launchd gateway managers (openclaw#97285)
  fix(memory-lancedb): share the recall cooldown with the auto-recall prompt-build hook (openclaw#112927)
  fix(test): isolate plugin install fixtures (openclaw#116008)
  fix(feishu): guard Object.assign against prototype pollution in webhook payload merge (openclaw#111729)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* fix(plugins): scope Codex relay matchers

Co-authored-by: Masato Naka <[email protected]>

* fix(plugins): reject sparse tool hook matchers

* test(plugins): cover mixed relay matcher scopes

* fix(plugins): fail closed on invalid policy matchers

* test(plugins): prove composed relay policy scope

* fix(plugins): keep matcher scope internal

* fix(plugins): satisfy matcher static checks

* fix(plugins): enforce canonical tool hook matchers

* fix(codex): project native hook matcher aliases

* fix(plugins): scope Codex relay with tool matchers

* chore: keep release changelog maintainer-owned

---------

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: codex merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

[Feature]: Scope Codex native hook relay spawns with per-tool hook matchers

2 participants