Skip to content

fix(codex): isolate hook imports and cancel disconnected waits - #147444

Merged
vincentkoc merged 6 commits into
mainfrom
fix-codex-native-hook-91009
Sep 13, 2026
Merged

vincentkoc merged 6 commits into
mainfrom
fix-codex-native-hook-91009

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Related to #91009. The original constrained-host timeout report remains open; this PR does not establish its resolution.

What Problem This Solves

Matched Codex tool bursts repeatedly load the native hook relay, while disconnected callbacks can leave policy or approval work running beyond the request that needed it.

User Impact

Policy callbacks remain enabled, with the existing direct relay, authenticated Gateway fallback, and explicit denial behavior. Managed Codex moves to the official 0.154.0 release. There are no new configuration keys, protocol fields, or database migrations.

Observed result: all four matched A/B/B/A runs and the installed relay package proof passed. The isolated graph is smaller, but the 20-call candidate turns were slower in this bounded comparison. Both variants contain the same request/approval lifecycle repair; this is a bundling-only comparison, not a main-versus-fix reproduction of the reported timeout. The installed host and source-matched official Codex plugin also passed the original loop-detection-only setting with 1/5/20 native calls, no custom policy handler, and health/status below the 10-second incident deadline. This is bounded operator proof, not an unmodified-main-versus-fix reproduction. These measurements and packages belong to the historical source snapshots below. The resolved main integration has also passed fresh public build, tarball, installed direct/fallback, and installed host/plugin loop-only proof. Exact-head CI and the final review passed; this PR landed as 3a997793.

Why This Change Was Made

The dedicated relay entry already shipped in the earlier startup fix, but remained in the large shared output graph. Give it a separate split build graph so its Gateway fallback stays lazy.

Keep cancellation at the request and approval owners. HTTP disconnect and Gateway connection cancellation abort the disconnected request’s wait and retract its owned approval when its last waiter leaves. Duplicate approval callers share one request with independent waits; the existing bundled host capabilities retract only the owned approval claim when its last waiter leaves. Generic registrations retain pending durable approval deduplication until decision or expiry. Cancellation rejects the caller’s wait; it does not prove rollback or forcibly stop arbitrary asynchronous plugin computation. That request-lifetime contract is intentional and covered by the late-completion and surviving-sibling controls.

Approval keys now use structural tuples and exact relay ownership. Teardown detaches pending entries before cancellation callbacks, so a callback-created successor survives old cleanup. The shared abort helper also observes an already-started promise when cancellation wins synchronously, preventing an unhandled rejection.

Owner and compatibility details
  • Removed: the relay entry from the main shared build graph; the duplicated MCP-only HTTP disconnect helper; delimiter-joined approval identities and prefix-based teardown.
  • Preserved: readonly SQLite/schema admission, canonical state lookup, redaction, direct transport, lazy authenticated Gateway fallback, retained-child PreToolUse ownership, and existing command stdout denial envelopes.
  • Public runtime production: +454 / −289 lines, net +165. The growth carries request cancellation, per-approval authority and waiter ownership, exact teardown, and the separate build graph. The final diff contains no QA mock-provider implementation changes; tests/fixtures: +2031 / −10; metadata/lockfile: +40 / −44. Current managed-version documentation changes add +8 / −8 separately.
  • Released Codex still starts synchronous command hooks without a shared concurrency cap. This change isolates the relay startup closure; it does not limit the number of hook processes or claim fail-closed behavior for a native runner failure. Direct dependency inspection: synchronous dispatch, command execution and cleanup, PreToolUse result handling, PermissionRequest result handling.
  • Thanks to @nvtoroy for the constrained-host captures and guarded opt-out evidence in the callback opt-out proposal and the earlier incident work. That proposal remains a distinct mitigation: this change preserves callbacks and does not implement its public opt-out.

Review dispositions

ClawSweeper’s active-version P3/rank-up is addressed across all six affected guides; historical 0.153.4 probe results and explicit source citations remain unchanged. Its cancellation risk is accepted as the wait-versus-rollback contract above. Its performance/incident risk is retained as a limitation: this PR claims import isolation and lifecycle ownership, not faster bursts, bounded process count, or resolution of the original timeout. The issue and the distinct opt-out proposal remain open.

Evidence

  • Current integrated source: exact head ec63d2400f88c302d98061a6585fbba86a0305bf passed 317 existing mock-provider tests locally and 127 Linux lifecycle/authority/retention/private-completion tests across eight files. Production and test plugin types passed. Both full P0–P3 review passes were scoped-clean. Targeted lint passed. Its fresh clean public build passed in 224.8 seconds; packing, inventory and tarball checks passed in 269.126 seconds total. The new relay closure has eight static files / 317,749 bytes (SHA-256 505b9442452d0393aff91cc70dbefa39c07dbbb864317aba2f9bed4dbca4bccf). Fresh installed direct/fallback and native-loop proof also passed, as detailed below. Exact-head hosted CI completed successfully (126 successful jobs and 14 intentional skips). Its completed preflight checked out merge fce3ab824763c92387d0dedf521f406f985d8977, tree cf7c168f5a4ec3b283e665f823f12b94fd32db99, combining this head with main 911d14243e71e3b0fe6c9796783196ac1413f734; all four QA profiles passed on that run.

  • Fresh installed artifacts and original-setting control: the clean public tarball is SHA-256 ef8ac8d6eca04f3e9f700ba08a1bcdacc7f10842aa3b4035c100a24805fdd498. Installed direct allow/deny each delivered exactly one callback without loading the fallback chunk; authenticated fallback allow/deny loaded it and delivered one callback. The readonly locator remained byte-identical; missing locators were not created; an invalid token produced explicit denial; generated commands selected the installed entry; cleanup passed. That transport fixture uses a source Gateway. Separately, the canonical selected-plugin artifact (SHA-256 68934af25b34ab7a5de2741db4a2edf12ed66f9a1615d6db57425252f92b5faa, 137 files) was installed through the verified candidate registry and normal exact npm selector with trusted-official catalog trust. The actual installed Gateway and source-matched Codex plugin completed all 26 unique native calls across 1/5/20 loop-only workloads with exact PreToolUse IDs, exit 0, and file readback; no custom policy or synthetic delay. On two CPUs, health maxima were 325/79/44 ms; status maxima were 1182/95/74 ms, all below 10 seconds. Native executable SHA-256 remained 3188814c…40022. Each workload and final Gateway cleanup had zero observed/discovered live or zombie relays. All 9,641 installed host dist files and package.json remained unchanged. The model is a source QA fixture; shell execution is the real official native binary using the documented per-call non-login option. The batch completed successfully; a later portal-metadata sync warning did not change its exit-zero execution result.

  • Historical integrated focused proof: 223 redaction tests, 7 shared-state cleanup tests, and 13 authority/real-Gateway tests passed on the projection below. Core, the exact Gateway test stripe, and full plugin typechecks passed. The private QA build passed in 263 seconds. The subsequent control build passed in 258 seconds. In this Testbox run, baseline matched 1/5/20-tool allows, a deny, and the no-hook control passed; the unmatched first write failed with EROFS and native exit 1. Those failed rows remain retained. A subsequent finite host/native diagnostic established the fixture cause described below; the corrected A/B/B/A and public-package batch passed.

  • Historical owner proof: the adf snapshot passed 217/217 Linux tests; d4 passed 236/236. Local helper/lifecycle proof passed 41/41, and the unchanged synchronous-abort reproducer changed from exit 1 to exit 0. These are exact-snapshot receipts, not measurements of the integrated runtime.

  • Historical gates/review: adf passed core/UI types and the other applicable gates; its test-only typing failure was corrected in 5dec, which passed all 18 core-test stripes plus extension, scripts, root-test and changed-test lint commands (22/22). Both 5dec P0–P2 review passes were scoped-clean. Both complete P0–P2 review passes on final original source a8527b38 were scoped-clean, including the main-aware authority assertion and strict native output/file checks. Final source verification passed. The final uniform non-login fixture delta also passed a complete P0–P2 review with no findings; this is delta review, not a replacement for the preceding full-source review. The candidate runtime repair remains the same; these historical reviews do not qualify later main integration or its emitted artifacts.

  • Official native identity: Linux x64 package integrity and SHA-1 were checked against npm metadata. Its canonical extracted executable is SHA-256 3188814c35471432d4123203e0eb38e5bddc60226e3d7ddf0e59e649ea140022, reporting codex-cli 0.154.0. The integrated lease resolved the same bytes, and the completed workload controls observed that executable digest.

  • A/B/B/A: fixed integrated runtime, Node24.19, official Codex0.154.0, compile cache disabled, actual inherited two-CPU affinity, two interleaved repetitions per graph. All24 scenario cases passed (matched1/5/20 allows, deny, unmatched and no-hook); identical duplicate log lines are not extra repetitions. Health RPCs had no errors (maximum403ms), and observed/discovered relay identities reached zero live and zombie processes after each case and Gateway stop. Static local closure: A74 files/447,947 bytes; B8 files/315,210 bytes. Single-relay sampled peaks: A97.8–98.3MiB, B95.1–95.4MiB. Twenty-call turn times: A2.45/2.87s, B3.14/3.56s. These samples do not establish faster turns or lower aggregate peak RSS; sampled concurrency differed, and no process-count cap was introduced.

  • Historical public package: clean public pack and isolated npm installation passed. Tarball SHA-256 df21f66f419e4758bd0befa38a7820e331685a9754ff73320137f25abd0f1df9. Installed direct allow/deny each delivered one callback without loading the Gateway fallback chunk; authenticated fallback allow/deny each delivered one callback and loaded that chunk. The readonly locator remained byte-identical, missing locator files were not created, invalid token returned explicit deny, generated commands selected the installed entry, and owned children/Gateway settled. The Gateway for this transport packaging proof is a source fixture.

  • CI fixture alignment and upstream QA repair: the media-path fake server advertised 0.153.4 after the managed pin moved to 0.154.0; its producer alignment passes 12 focused tests without weakening assertions. The original visible→silent QA failure was an unchanged mock-planner history bug. Upstream #147206 now owns that classifier repair; the complete mock-provider implementation and tests in this branch are byte-identical to frozen main 46aa369b315196a0ec57f6e171e97defbe64e18e. All 317 existing server/Responses tests pass after integration. Historical head 1123429 passed full CI, including QA profiles 1–4; profile 4 job 103801199482 passed the original visible→silent order on merge ab311a59ab7cd3e68b56bf1fd2dfc1c94b882a19. That success does not substitute for new-head CI.

  • Named follow-up — projected QA worker recovery: main does not recover a quoted empty-worker task on explicit continuation. A proposed recovery also lost projected tool/completion ownership and could repeat a completed write, so that entire adjacent change was removed from this PR. The strict missing-write and repeated-write failures are retained. A future canonical recovery must preserve execution authority rather than infer it from lossy quoted history. This is independent of the native upgrade: context-engine-projection.ts has identical blob 264e86dd66fc3a4e09fcbd036481d6313f680f49 at pre-upgrade 81d0, frozen main 46aa, and this head.

  • Historical installed host/plugin pairing and loop-only proof: the initial mismatch paired the unpublished candidate host with the published @openclaw/[email protected] plugin, which still uses native 0.153.4 and the old SDK export. The released host tag exports that old name; a shipped-pair compatibility failure was not established. The rename predates this PR in #144828. The canonical selected-plugin packer then built the matching candidate artifact (SHA-256 b8b789be4c69aa92f1804643605fc574b8361d4a233eb317bac923ef13de9249), installed through the verified prerelease registry and normal exact npm selector. Catalog trust was trusted-official; all 136 plugin files matched, the native dependency was 0.154.0, and the SDK resolved to the installed candidate host. The real installed Gateway completed native 1/5/20-call turns with loop detection enabled, no custom before-tool handler or synthetic delay, exact 1/5/20 PreToolUse call IDs, exit-zero and file readback. On two CPUs, health maxima were 224/64/206 ms and status maxima 807/74/184 ms. Actual native executable bytes matched 3188814c…40022. Each scenario and final Gateway cleanup had zero observed/discovered live or zombie relays. All 9,535 installed host dist files and package.json were unchanged. This is a two-artifact installed proof; the provider remains the source QA fixture.

Source attribution and proof limits
  • Signed integrated candidate: ec63d2400f88c302d98061a6585fbba86a0305bf; diff SHA-256 a77df6e58210299095d476ccc673dbe7592a60892acbb68e602c039e064f837d, tree f956a7e6bcc48406f6e71939998267cb99e0e6c8, frozen main base 46aa369b315196a0ec57f6e171e97defbe64e18e; 35 changed paths. The normal validation checkout has this exact commit/tree. Both complete P0–P3 final-source review passes returned no actionable findings, and final source verification passed. Fresh public build/pack, installed direct/fallback, and source-matched installed native-loop checks passed; exact-head CI and the current ClawSweeper review passed with no actionable finding or remaining pre-merge item.
  • Historical runtime validation projection: diff dce90ac5d49649b820b0bfc2daed5fc8ec3faf5a1d2b5edb7d0c70ce0d17a3be, tree f76536fbcf86306ee51465812f9e18ff07245949; earlier A/B and public relay package proof used projection 3e818baa / tree 383f00cc, with identical public runtime/build/dependency bytes. Those projections used main 1a0e78fc8a794af4e16d37e82147592dd707ab0b and remain historical evidence. Main now adds Gateway ownership heartbeat, activity packaging, and a platform-gated FreeBSD identity loader reachable from the cold client; the fresh integrated public artifacts and lifecycle proof above cover those changes. The old artifact hashes do not qualify the new combined tree.
  • Historical build attribution: the retained candidate artifact was built from projection 0c3f6038 / tree 7e3ab9ee. Only the pressure test changed afterward; its runtime, configuration, lockfile, Node version, and every measured local import file remain byte-identical.
  • Retained diagnostic evidence: the cold native Bash login shell ran outside the granted workspace and the original write returned EROFS / exit 1; a warm non-login shell stayed inside and produced the exact file / exit 0. A finite host control reused the canonical QA runtime environment in memory: login pwd left the requested workspace, non-login pwd retained it, both exit 0. This establishes a host login-startup cwd effect, not a permission-materialization defect. The fixture now sets the existing per-call login: false option for every scenario; no product, policy, sandbox grant or Codex contract changed. Instrumented timings are excluded from performance claims. Dependency source: login selection, advertised login option, snapshot shell wrapping.
  • Measurement limits: the historical A/B uses real Codex and Gateway with a fixture model and a synthetic 75 ms policy delay; the separate loop-only proof has no custom policy or synthetic delay. RSS is sampled and non-atomic; CPU omits work outside samples; elapsed windows are observation intervals, not process lifetimes. Cleanup assertions cover observed/discovered identities. No process-count cap or resolution of the reported CPU/RPC timeout incident is established. The A/B fixture disabled loop-detection relay selection; it does not by itself cover the original loop-only configuration.
  • Durable PermissionRequest tests and the actual WebSocket PreToolUse disconnect test provide composed coverage. The direct/fallback transport packaging test uses a source fixture Gateway; the separate loop-only test launches the actual installed Gateway and matching official plugin. Neither claims a stale-generation rejection control.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 21:43
@vincentkoc
vincentkoc requested a review from a team as a code owner September 13, 2026 21:43
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/codex/package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: ec63d2400f88c302d98061a6585fbba86a0305bf
  • Trusted actor: @vincentkoc
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 7:08 PM ET / 23:08 UTC (Revision 4).

ClawSweeper review

What this changes

The PR isolates Codex hook subprocess imports, cancels disconnected callback waits while preserving shared approval ownership, and updates managed Codex to 0.154.0.

Merge readiness

✅ Ready for maintainer review

The PR remains useful and has no identified blocking defect. The earlier documentation finding is addressed, and the verified test merge resolves the previous conflict blocker. Current main does not contain the central changes.

Priority: P2
Reviewed head: ec63d2400f88c302d98061a6585fbba86a0305bf

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent repair with strong, source-bound runtime evidence and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The matching captured body reports installed direct/fallback allow-deny proof and real Codex execution through the installed Gateway/plugin; composed real-transport cases verify cancellation and surviving approval ownership. This supports the changed boundaries without proving incident-scale performance recovery.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The matching captured body reports installed direct/fallback allow-deny proof and real Codex execution through the installed Gateway/plugin; composed real-transport cases verify cancellation and surviving approval ownership. This supports the changed boundaries without proving incident-scale performance recovery.
Evidence reviewed 8 items Verified introduction and integration: The inspected test merge records pinned main 911d142 followed by the exact PR head as its parents. Its main-parent delta contains the introduced changes, without the unrelated base-only changes.
Current main still needs the repair: Current main’s Gateway handler does not forward connection cancellation; its relay entry remains in the shared build graph and its managed Codex version remains 0.153.4. The latest released plugin also pins 0.153.4. The merged startup and persistence PRs provide groundwork, rather than this complete repair.
Request and approval ownership: Invocation cancellation is combined with run cancellation and checked before returning authority-bearing results. Duplicate permission callers share an approval but own independent waits; only admitted-host approvals are retracted when their last waiter leaves. Generic registrations preserve pending deduplication.
Findings None None.
Security None None.

How this fits together

Codex native tool hooks call OpenClaw’s relay through direct HTTP or authenticated Gateway fallback. The relay applies tool policy and approval decisions before returning a response to Codex.

flowchart LR
  A[Codex tool hook] --> B[Isolated relay process]
  B --> C[Direct HTTP or Gateway fallback]
  C --> D[Current relay authority]
  D --> E[Tool policy and shared approval]
  E --> F[Native hook response]
  C --> G[Request disconnect]
  G --> E
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +154, Tests +2021, Docs 0, Config 0, Other +7. Total +2182 across 35 files.

View PR surface stats
Area Files Added Removed Net
Source 14 442 288 +154
Tests 10 2030 9 +2021
Docs 6 8 8 0
Config 2 2 2 0
Generated 0 0 0 0
Other 3 51 44 +7
Total 35 2533 351 +2182

Review metrics

Metric Value Why it matters
Production versus validation growth Production/build net +165 lines; tests/fixtures net +2021 lines Production growth has a stated purpose: request cancellation, shared approval ownership, exact teardown, and relay build isolation.

Technical review

Best possible solution:

Keep one relay policy owner with request-scoped cancellation and lazy fallback, while retaining incident-scale performance work in the existing timeout issue.

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

Yes for disconnected waits: current main omits connection cancellation from relay invocation, and the focused cases exercise that boundary. The original CPU/RPC timeout has not been reproduced against unmodified current main here.

Is this the best way to solve the issue?

Yes for the stated scope: the patch extends existing request and approval owners, preserves public deduplication and fallback, and separates the import graph without adding another policy implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fa5b2d16805c.

Labels

Label justifications:

  • P2: This is a bounded relay lifecycle and packaging improvement; the broader constrained-host incident is not established as resolved.
  • 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 (live_output): The matching captured body reports installed direct/fallback allow-deny proof and real Codex execution through the installed Gateway/plugin; composed real-transport cases verify cancellation and surviving approval ownership. This supports the changed boundaries without proving incident-scale performance recovery.
  • proof: sufficient: Contributor real behavior proof is sufficient. The matching captured body reports installed direct/fallback allow-deny proof and real Codex execution through the installed Gateway/plugin; composed real-transport cases verify cancellation and surviving approval ownership. This supports the changed boundaries without proving incident-scale performance recovery.

Evidence

What I checked:

  • Verified introduction and integration: The inspected test merge records pinned main 911d142 followed by the exact PR head as its parents. Its main-parent delta contains the introduced changes, without the unrelated base-only changes. (fce3ab824763)
  • Current main still needs the repair: Current main’s Gateway handler does not forward connection cancellation; its relay entry remains in the shared build graph and its managed Codex version remains 0.153.4. The latest released plugin also pins 0.153.4. The merged startup and persistence PRs provide groundwork, rather than this complete repair. (src/gateway/server-methods/native-hook-relay.ts:11, fa5b2d16805c)
  • Request and approval ownership: Invocation cancellation is combined with run cancellation and checked before returning authority-bearing results. Duplicate permission callers share an approval but own independent waits; only admitted-host approvals are retracted when their last waiter leaves. Generic registrations preserve pending deduplication. (src/agents/harness/native-hook-relay-permissions.ts:299, ec63d2400f88)
  • Composed cancellation coverage: The real-Gateway harness delays an accepted approval acknowledgement, aborts its caller, observes durable cancellation for an admitted host, and verifies a sibling approval remains usable. Separate real HTTP and WebSocket cases discard late deferred approvals while preserving the relay. These scenarios are reported passing; this read-only review did not execute tests. (src/gateway/server.native-hook-request-lifetime.test.ts:31, ec63d2400f88)
  • Complete captured proof inspected: The full PR body was retrieved and matched the captured 18,504 UTF-16 units and SHA-256 0959cf4ea34b73552d87305952ad48232ad609f89aa970bb638598172fab9034. It reports fresh exact-head package proof: direct/fallback allow and deny, invalid-token denial, unchanged readonly locators, and 26 real native calls through the installed host/plugin. Historical A/B measurements are explicitly separated and do not claim faster turns or resolution of the original timeout. (ec63d2400f88)
  • Dependency contract personally inspected: The direct dependency upgrade and native-hook compatibility claims make Codex source inspection applicable. The sibling checkout’s exact commit was verified against openai/codex and the rust-v0.154.0 tag. Inspection of dispatcher, command runner, and permission/pre-tool result handling confirms concurrent synchronous hooks, subprocess cleanup, and the distinction between explicit denial and runner failure. (codex-rs/hooks/src/engine/dispatcher.rs:124, 6b9826e3aa83)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • sightingsstellar-beep: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (3 earlier review cycles)
  • reviewed 2026-09-13T21:51:52.462Z sha 4bef45c :: blocked before merge. :: [P3] Update the active managed-Codex version documentation
  • reviewed 2026-09-13T22:16:29.495Z sha 1123429 :: blocked before merge. :: [P3] Update the active managed-Codex version documentation
  • reviewed 2026-09-13T22:31:28.877Z sha ba556f4 :: blocked before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 13, 2026
@vincentkoc vincentkoc changed the title fix(codex): reduce hook startup work and cancel disconnected waits fix(codex): isolate hook imports and cancel disconnected waits Sep 13, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​openai/​codex@​0.153.4-win32-x64 ⏵ 0.154.010010093 +14100100

View full report

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 13, 2026
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Sep 13, 2026
Isolate the native hook relay build graph while preserving direct callbacks and authenticated Gateway fallback. Retire request-owned policy waits and approval claims without cancelling surviving duplicate callers or retained child ownership.

Fixes #91009
@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 13, 2026
Use the canonical main planner without reconstructing task authority from quoted history. Preserve projected worker recovery as a separate follow-up; the native hook repair and version fixture remain unchanged.
@vincentkoc
vincentkoc force-pushed the fix-codex-native-hook-91009 branch from ba556f4 to ec63d24 Compare September 13, 2026 22:53
@vincentkoc
vincentkoc merged commit 3a99779 into main Sep 13, 2026
203 checks passed
@vincentkoc
vincentkoc deleted the fix-codex-native-hook-91009 branch September 13, 2026 23:14
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…law#147444)

Isolate the native hook relay build graph while preserving readonly state lookup, explicit policy decisions, and the lazy authenticated Gateway fallback.

Cancel disconnected request waits through the existing approval authority. Keep duplicate callers independently cancellable, retain unbound durable approval deduplication, and detach exact relay-owned entries before callbacks so old cleanup cannot remove a successor. Observe already-started promises when synchronous cancellation wins.

Update managed Codex to the official 0.154.0 release and align its version fixtures and current documentation. This improves lifecycle ownership and reduces the relay import closure; it does not cap hook concurrency, prove faster bursts, or establish resolution of the historical constrained-host timeout.

Related: openclaw#91009

Thanks to @nvtoroy for the constrained-host captures and guarded opt-out evidence in openclaw#121668 and openclaw#111205. The opt-out proposal remains distinct and unimplemented by this change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: codex extensions: openai extensions: qa-lab gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

1 participant