Repository navigation
fix(codex): stop interrupting active turns during quiet native work - #134755
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 11:14 PM ET / September 2, 2026, 03:14 UTC. ClawSweeper reviewWhat this changesThe PR replaces Codex app-server output-inference timeout watches with attempt-owned execution and settlement deadlines, and removes obsolete Codex timeout settings through Doctor. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessNo concrete introduced defect was found. Keep this protected maintainer PR open for the intentional retirement of three existing Codex timeout settings, which remains a compatibility decision despite the tested Doctor migration. Priority: P1 Review scores
Verification
How this fits togetherThe bundled Codex plugin turns native app-server events into OpenClaw embedded-agent lifecycle and session results. Native Codex owns stream liveness and terminal completion; OpenClaw owns the bounded attempt and settlement budgets it hands to the generic execution lane. flowchart LR
A[User turn] --> B[Codex app-server]
B --> C[Native events and completion]
C --> D[Attempt lifecycle owner]
D --> E[Embedded-agent lane]
E --> F[Session result]
G[Doctor migration] --> D
Decision needed
Why: This changes the upgrade contract for existing operator configuration and requires maintainer compatibility intent beyond the code-level correctness review. Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the explicit Doctor cleanup, aligned timeout documentation, and exact-head lifecycle evidence when maintainers approve the configuration retirement. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main still has the output-inference abort path and the PR contains focused ordering regressions; this review did not execute the harness. Is this the best way to solve the issue? Yes. Native terminal completion plus one attempt-owned elapsed budget removes competing inference watches while core receives only a generic deadline handoff. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 20a69e750a50. LabelsLabel justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
be6bf33 to
48b900d
Compare
Give built-in attempts and tool-free finalizers fresh closure-bound deadline and cancellation controls. Preserve approval pauses and compaction grace, honor unlimited execution without a sentinel timer, and remove synthetic lane progress heartbeats. Capture diagnostic generation before question expiry so stale observations cannot abort resumed or replacement work. Record final timeout explanations at the terminal owner and carry them through command and channel settlement without replacing them with earlier tool errors or reporting success. This complements the native Codex lifecycle repair in #134755 and addresses the blind heartbeat in #122233. Prove retired Codex settings migrate at startup while retaining connection settings and the execution budget. Carry the upstream stdin test-type fix 01129d7 and use canonical fixture exports instead of redundant forwarding functions. Validation: 1,632 owner/sibling tests across 52 files; 237 native fixture cases rerun after cleanup; all 38 canonical changed-check commands; full runtime, SDK declaration and Control UI build; fresh P0 Codex autoreview. Live isolated Gateway/UI: 45,035ms execution timeout despite provider progress, actionable error details, and a successful subsequent user turn. No deployment, production-session resumption, or release.
Current landing candidate and maintainer decisionPublished head: 7bd12290e95eae418607649d190f1d70c1aba357. Exact-head CI completed successfully, including enforced Maintainer decision: deliberately retire Last CI correction is test-only. The preceding run had one timed-out confirmed-stop resume test and 410 passing tests in that shard. The fixture still used a naked mock for a resume path that now requires a managed native process. It failed before the first The corrected case passes in 2.4 seconds in its original full-file order. All 399 tests across four lifecycle/resume/cleanup files, all 19 canonical changed checks, and fresh isolated Codex P0-only autoreview pass. The last commit changes no runtime code. Main integration retained full authenticated compaction context and ordinary/incognito policy ownership, and deleted the superseded narrow context helper. The latest inspected main Refreshed real Stop-flow recording: on the semantic-integration head Runtime production +1177/-2334 (net -1157); tests/support including test tooling +3645/-4289 (net -644); schema -30, docs/generated -24, ratchet -1. Total -1856 lines across 131 files. Earlier gross counts classified test configuration/E2E tooling differently; production net is unchanged by the final fixture correction. Exact latest validation commandsnode scripts/run-vitest.mjs extensions/codex/src/app-server/run-attempt.turn-watches.test.ts extensions/codex/src/app-server/attempt-client-cleanup.test.ts extensions/codex/src/app-server/thread-lifecycle.binding.test.ts extensions/codex/src/app-server/run-attempt.test.tsnode scripts/check-changed.mjs -- extensions/codex/src/app-server/run-attempt.turn-watches.test.tsnode scripts/run-vitest.mjs src/commands/doctor-config-preflight.process.test.tspnpm build:ci-artifactsThe latest four-file run took 255.54s. The startup refresh passed all 11 process cases, including retired-key migration in 10.252s under the unchanged bound. Earlier semantic-integration proof passed 537 tests/10 files and the runtime/SDK/Control UI build. Earlier full build, finite-budget proof and native-binary before/after evidence remain below and in the PR body. Counts overlap and are not summed as unique tests. Native recordings predate rebases, with explicit provenance; no fresh paid inference or single all-composed forced-release/delayed-cleanup/successor test is claimed. No release, production Gateway operation or original-chat resumption is included. Earlier published proof and media (preserved with original provenance)Published CI repair and fresh Stop proofThe repaired candidate is now published as 096587001a02c13b77d55e02dac0ee80d9b1f340. Its production code is identical to the freshly built and live-tested e20a4ee879ee0228f00ae36067297fb414c0413e; the last commit changes test initialization only. The four failed shards in run 33546630367 had three stale fixtures and one real Stop regression. Two fixtures still provided retired dispatch controls; the acquisition fixture asserted original signal identity instead of composed cancellation behavior. Those now exercise the real lane/admission controls and verify parent cancellation, queue expiry, original abort reasons, and callback cleanup. The Stop failure was an ownership error: Gateway cancellation revokes authority and aborts the parent signal before the retained callback runs. Correctly fenced callbacks therefore cannot set a second cancellation flag. Normalization now reads the authoritative lane signal after persistence, preserves completed compaction facts, and deletes the duplicate flag. Shared direct-abort classification also preserves cancellation when the caller signal remains live, replacing a command-only special case. Retained callback fencing and internal-interruption warnings are unchanged. Fresh live result: real isolated Gateway, built-in OpenClaw runtime and Control UI, synthetic credentials, and a deterministic local Responses provider. The run remained active for 70,375ms with fifteen progress frames. Actual UI Stop disconnected the provider in 97ms. Normal Validation: 277 owner/sibling tests across 16 files and all 30 incremental changed checks passed before the mechanical rebase. Final rebase verification passed 599 tests across 12 files from a fresh module cache, including real Gateway Stop, restart/direct cancellation ordering, skill/admission integration, queue liveness, and Codex side-question/thread/attempt/settlement paths. The full build, declarations, public SDK export check and Control UI build passed with lockfile-matched dependencies. Regenerated config digest and resolved-file lint also passed. Full-branch Codex P0 autoreview passed in two chunks; the final test-only change passed a separate scoped P0 review. These are P0-scope reviews, not all-priority certification. A cold-import test failure was fixed without weakening assertions or deadlines: the first cancellation row installed a shared one-shot mock before importing the execution graph. Vitest can time out the row without terminating its async function, allowing it to consume the next row's mock. Loading the graph during collection now precedes per-case ownership; restart and direct Stop then passed in their original order. Earlier interrupted/stale-dependency runs are not counted as passing proof. The rebase required aligning Size: production +1,197/−2,356 (−1,159); tests/support +3,631/−4,290 (−659); manifest/schema −30; docs/generated −24; ratchet −1. Rebase preserved main's skill snapshot preparation and better stdin test type. Config generation removes exactly the three retired plugin keys, with no new option or schema change. The latest ClawSweeper Rank-up move is exact-head CI. This update repairs its observed failures; green CI on the newly published head remains required before merge. The startup migration regression and previous native/finite-budget proof below remain part of the evidence. No release, production restart or original-chat resumption is included. Exact final validation commandspnpm buildOPENCLAW_VITEST_MAX_WORKERS=4 OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=.artifacts/pr-134755-proof/collection-test-module-cache node scripts/run-vitest.mjs src/gateway/server.chat-first-turn-binding.test.ts src/agents/embedded-agent-runner/run/attempt-normalization.test.ts src/agents/embedded-agent-runner/run/run-attempt-dispatch.owner.test.ts src/agents/embedded-agent-runner/run/run-attempt-dispatch.media.test.ts src/agents/embedded-agent-runner/sandbox-skills.test.ts src/agents/embedded-agent-runner/run/lane-controller.queue-liveness.test.ts src/auto-reply/reply/reply-turn-admission.test.ts src/auto-reply/reply/agent-runner-execution-lifecycle.test.ts extensions/codex/src/app-server/side-question.test.ts extensions/codex/src/app-server/thread-lifecycle.test.ts extensions/codex/src/app-server/run-attempt.test.ts extensions/codex/src/app-server/run-attempt.settlement.test.tsnode --import ./scripts/tsx.mjs scripts/generate-config-doc-baseline.ts --checknode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/agents/embedded-agent-runner/run/run-attempt-dispatch.ts src/cli/models-cli.auth-login.integration.test.tsnode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/auto-reply/reply/agent-runner-execution-lifecycle.test.tsgit diff --check d9af9d694b40559e7c7c50e11ac4c833009ed0e7The live recorder used the normal dist-backed CLI for owner handoff and Earlier timeout and startup-migration proof (preserved)Built-in/shared follow-up and fresh live proofThe repair now also covers the built-in OpenClaw harness: one execution-deadline owner, fresh closure-bound controls for attempts and tool-free finalizers, queue cancellation that actually aborts execution, and removal of the unconditional 15-second progress heartbeat. Diagnostic recovery captures the observed generation before expiring a pending question, so it cannot abort resumed or replacement work using a freshly borrowed generation. The final-timeout producer records its existing canonical error. Command and channel settlement preserve that explanation and classify the run as failed instead of losing the message or allowing an earlier tool error to replace it. No new setting, timeout knob, dependency, or database/protocol change. Fresh rebased live proof: an isolated real Gateway and Control UI, built-in runtime, synthetic SQLite credentials, and a local Responses provider emitting genuine bookkeeping frames every five seconds. With a 20-second provider idle limit and 45-second execution budget, lifecycle start→error was 45,035ms; the provider emitted nine progress frames, the complete actionable timeout explanation was visible, and the next user turn completed. This is real Gateway/UI proof with deterministic inference, not a live OpenAI inference claim. Zero page errors and one console error were recorded. The full recording and all screenshots were inspected for behavior and sensitive content; the two owned servers are stopped. Attachments show the earlier before state (generic “Chat error”), the rebased after state (full timeout explanation), the successful next turn, and the complete fresh recording. The sidebar's generic “Unknown error” summary remains a separately owned follow-up and is not claimed fixed here. ClawSweeper finding / Rank-up moveThe requested retired-key-plus-valid-siblings startup regression now passes through the actual automatic startup Doctor path in 16.58 seconds, with the original 60-second bound. It verifies initial rejection of all three retired keys; automatic repair despite The initial test forced source/Jiti plugin loading and timed out during Doctor module resolution. Removing that test override lets the normal resolver use the test wrapper's fresh built plugin artifacts; no timeout, assertion, or production behavior was weakened. The finding's normal-upgrade premise does not hold: foreground/service startup requires a migration checkpoint; The original native-binary before/after recordings remain explicitly pre-rebase evidence. The managed Codex version is unchanged, and native rebase resolutions were fixtures and generated metadata, not a new native timeout policy. The complete final candidate passed fresh independent Codex autoreview at its P0-only scope. The follow-up is published in 48b900df86a4e8f43521591bffb2bde1969ea5d9. Local validation covers 1,632 owner/sibling cases across 52 files, a further 237 native fixture cases after cleanup, and all 38 canonical changed-check commands. Exact-head CI remains the required next gate before merge. The requested follow-up review was completed on September 1; its remaining Rank-up move is exact-head CI. attachment-1022633767.webmNew Stop-flow mediaAppended in order: earlier before recording, repaired after recording, preserved partial after Stop, and successful next user turn. Persisted status is established by the RPC comparison above, not a visible status label in the images. attachment-1518113392.webmattachment-2328822044.webmRefreshed Stop-flow videoattachment-4065726882.webm |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Settle definitive lifecycle errors through the canonical terminal classifier without provider retry grace. Cancel an older error timer before finalization so it cannot replace a subsequent successful run's status. Preserve retryable provider errors and normal read-dismiss behavior. Add real SQLite/session-event regression coverage for the missing timeout reason and stale-timer ordering. Related: #134755.
Use the shared isolated test-state owner so ordered timeout and exhaustion regressions close SQLite resources before deleting their fixtures. Restore genuinely buffered terminal coverage and compare the flushed delta's actual delivery order. Document prompt sidebar timeout reasons and normal read dismissal. The production sidebar repair remains net-neutral and separate from the parent lifecycle work. Related: #135466, #134755
48b900d to
0965870
Compare





Fixes #99272 — quiet native turns interrupted by competing idle watchdogs and no elapsed execution budget (reported by @obviyus).
Fixes #122233 — unconditional lane heartbeats hide elapsed execution time (reported by @ernestrolfson-design).
Additional instructions
This is an upstream, maintainer-editable branch. No deployment or production-session resumption is included.
What Problem This Solves
Fixes an issue where users running multi-step Codex tasks would receive an incomplete-turn error while native Codex was still working. Tool-argument generation can keep the native provider connection active without producing the app-server events OpenClaw's idle watchdogs expect. A successful tool result followed by a child-agent message could also replace the five-minute continuation allowance with the one-minute completion watch and interrupt the parent prematurely.
The affected workflow is ordinary Codex-backed chat, including the Control UI. Increasing the idle windows does not repair the ownership mismatch, and generic stuck-session/queue recovery could independently interrupt the same legitimate quiet wait.
Why This Change Was Made
Make native completion authoritative instead of predicting it from projected output. Codex owns native inference/transport continuation; OpenClaw owns its configured elapsed execution budget, cancellation, host requests/tools, result projection, and resource settlement.
A bounded adjacent fix normalizes synchronous process-inspector spawn failures through the existing actionable error type. The isolated macOS proof exposed this path; two failing-before regressions cover it without weakening process-identity validation.
Current runtime production LOC: +1177/-2334, net -1157. Tests/support and test tooling: +3645/-4289, net -644. Separately: plugin schema -30; docs/generated -24; ratchet -1. Total net -1856 across 131 files. Most deletions remove prediction-only watches/bookkeeping and tests of those retired paths; replacement tests protect the canonical ownership boundaries.
Built-in and shared ownership follow-up
The built-in OpenClaw harness now has one bounded/paused/unlimited/closed execution-deadline owner. Scoped approvals pause remaining execution time; one compaction grace remains; user questions do not pause the whole budget. Configured zero arms no execution timer. Provider liveness and cancellation/settlement bounds remain independent.
Attempts and tool-free finalizers receive fresh closure-bound queue controls. Old callbacks cannot renew or abort a successor, real queue expiry aborts execution, and the synthetic 15-second lane heartbeat is removed. Cold acquisition retains its existing pre-attempt budget boundary. Diagnostic recovery captures activity identity/generation before a stateful question-expiry probe and keeps that observation through logging reentry.
A live-discovered terminal projection defect is repaired at its producer: a final timeout now records the existing canonical error, and command/channel settlement preserves its actionable explanation and failure status. Earlier tool errors cannot replace the timeout message or reopen replay after the final timeout branch. Explicit public-safe/deferred guidance and successful-delivery early returns retain precedence.
Test-only landing corrections await asynchronous admission fixtures, use normal prebuilt Doctor plugin resolution, remove redundant forwarding helpers, and load execution modules during collection before cases own one-shot mock state. Current main already owns the improved stdin fixture type; that earlier carried fix is no longer part of this diff.
User Impact
Long-running native work no longer fails solely because OpenClaw sees a quiet interval. Finite Codex execution budgets now enforce actual elapsed time, even while progress is arriving. Explicit unlimited execution accepts an indefinitely active native turn until Stop or a real terminal failure; it does not disable bounded host settlement or request/tool deadlines.
If processing the result genuinely fails, the user retains available output and receives an explicit incomplete-turn error rather than silent success. A confirmed interruption preserves usable native context for a later explicit user turn. The obsolete
turnCompletionIdleTimeoutMs,turnAssistantCompletionIdleTimeoutMs, andpostToolRawAssistantCompletionIdleTimeoutMskeys are removed by Doctor; unrelated configuration is preserved.Explicit Stop now reads the authoritative lane cancellation after user-message persistence, rather than depending on a callback that may correctly be fenced after revocation. The session remains cancelled/killed, usable partial output stays visible, and completed compaction facts survive. Shared direct-abort classification prevents a live caller signal from turning that deliberate cancellation into a generic failure.
Local documentation is updated for the Codex harness, its reference, and the agent loop.
Evidence
Landing-candidate verification
Published head: 7bd12290e95eae418607649d190f1d70c1aba357, based on inspected main
1cf0c31f305e5775405c73fe8fcf30955736fda5. Native review also inspected8a8bf9cbfe6cd7ae930302fc14af698a044f1ae1; later overlap is limited to an independent browser assertion-ratchet shrink and additiveagent.waitdocumentation, not runtime changes. Main integration preserves full authenticated compaction-hook context, ordinary/incognito policy ownership, and warm-session fixtures. The superseded narrow hook-context helper was deleted. The final refresh only regenerated the config digest and preserved adjacent startup tests; its range-diff changes no runtime repair logic.Latest semantic-integration proof passed 537 tests across 10 files, runtime/SDK/Control UI build, focused lint and fresh two-chunk Codex P0 review. Final mechanical-refresh proof passed all 11 startup-process tests, including retired-key migration in 10.252s with the original bound, plus generated-digest and lint checks. Earlier repair/rebase proof passed 277 tests/16 files with 30 changed checks and 599 tests/12 files from cold cache. Full build and earlier 1,632-case ownership proof remain documented in the maintainer proof comment. Counts from overlapping runs are not added as unique tests.
Fresh real isolated Gateway/Control UI proof on the semantic-integration head
5d0c14fe93670f7bac8608ab42353e82266ad398exercised explicit unlimited execution through 70,095ms, actual UI Stop, provider disconnect in 54ms, persistedkilled/abortedLastRun:true/no active run, visible partial text, and a successful next user turn. The final mechanical refresh leaves the deadline/Stop implementation unchanged. All screenshots and video inspection frames were reviewed for behavior and sensitive content; owned servers are stopped. Zero page errors; one synthetic workspace-icon404. This uses deterministic local Responses data, not paid upstream inference. Earlier finite-budget proof observed 45,035ms despite five-second progress frames and showed full actionable timeout details. Original native-binary before/after proof is retained below with its historical provenance.Maintainer decision — retired settings: this maintainer-authored simplification deliberately retires
turnCompletionIdleTimeoutMs,turnAssistantCompletionIdleTimeoutMs, andpostToolRawAssistantCompletionIdleTimeoutMs, with Doctor removing their values. Native Codex owns liveness; the existingagents.defaults.timeoutSecondsowns the elapsed limit. Old idle durations are not equivalent elapsed budgets and are not translated. This is the intended contract of the requested repair and landing, not an accidental compatibility loss or a request for new configuration.Startup migration removes only those three keys while preserving custom command, URL, synthetic headers, other settings and
timeoutSeconds:0; it releases the lease and is byte-idempotent. Current process tests also verify main's advisory-warning startup behavior. No runtime compatibility reader was added. This records the migration decision requested by the latest ClawSweeper review.A test-only cold-import race was repaired without raising timeouts or weakening assertions: a timed-out row could resume after the next row reset its shared one-shot mock. Collection-time module initialization now precedes per-case ownership, preserving original restart-to-direct-Stop order. Interrupted/stale-dependency runs are not counted as passing. Fresh Codex reviews are P0-only, not all-priority certification.
The preceding exact-head CI exposed one further stale test fixture: a confirmed-stop resume used an unleased mock despite main's managed-process preflight. Local reproduction timed out in 120 seconds; observing the rejected run exposed the exact preflight error in 982ms. The final test-only commit uses the existing real managed-client/JSONL fixture, explicitly confirms native interruption, and preserves the no-replay and successful-next-turn assertions. The test passes in 2.4 seconds in its original full-file order; 399 tests across four lifecycle/resume files, all 19 canonical changed checks, and a fresh scoped Codex review pass. No production guard, timeout or assertion was weakened. Exact-head CI completed successfully, including required
openclaw/ci-gatejob 100108821838. The rollup watcher initially stopped on a cancelled auxiliary ClawSweeper dispatch; the actual CI workflow and enforced gate were independently verified green. The latest ClawSweeper review covers this exact head, reports no actionable finding, accepts the migration decision and rates readiness/proof/quality 5/6. Native prepare/merge is the remaining step.Known boundaries: sidebar-only presentation work is independently owned and is not attributed to this PR. The distinct reported 26-second output-loss race in this issue is not closed merely because it mentions timeouts. No deployment, production Gateway restart, original-chat resumption, or release is included.
Real native before/after comparison
Two isolated development Gateways used the managed Codex CLI 0.151.0, real native Code Mode execution, ordinary dashboard owner authentication, and a deterministic local Responses provider. Each had separate state/HOME/workspace, synthetic credentials, a private port, and an OS-enforced loopback-only network boundary. No production state was copied or changed. This is real native-binary and UI proof, not paid live inference against OpenAI and not a fake app-server.
The provider observed the first real native tool output, then streamed the second tool's input in 65 valid deltas over 320 seconds. Only the second native tool output unlocked the final answer.
8d9282414c6d943d814ac552d194458c38a9ceabBefore — premature interruption:
After — native completion and a subsequent user turn:
The attached videos are the last 35 seconds of the corresponding real recordings, with a three-second hold on the real final frame for readability. The first video is
before-native-cutoff.mp4; the second isafter-native-completion.mp4. Screenshots and video contact sheets were inspected for the asserted behavior and incidental sensitive content. All proof services are stopped.Earlier native publication proof
The native recording, build, full changed-check plan, and broad focused test batches below cover the pre-rebase repair snapshot (
65e4aefccbd). The original publication rebased that repair ontod155fe40557a575ffee516918b1d60752cf1a04d;git range-diffconfirms only upstream context changes and the union of a type-only queue import. The recording is not represented as a new run against the rebased head.Publish-time checks: all additional post-rebase regressions pass: 348 tests across 10 files in four shards (44 process/queue, 19 embedded-agent, 22 embedded-run, 263 Codex/Doctor). The runner automatically retried the embedded-agent shard once after a no-output timeout; its retry passed. Core and plugin production types and the resolved import lint/format checks also pass. The earlier native-only head CI workflow completed successfully for
be6bf339f4f2f5e4186a45dad947f5aef5c8c965. This completes the previously pending local proof.agent_messageregression failed against the original code with an unexpectedturn/interruptat 60,001 ms, then passed unchanged through the actual JSONL client transport after repair.pnpm buildpasses; no missing export or ineffective dynamic-import warning remains.node scripts/check-changed.mjsplanner pass, executed in four non-overlapping groups: 26 preparation/type/format/owner gates, full core lint, full plugin lint, and nine script/architecture guards. Final command coverage was compared against the current plan; runtime import cycles: zero.git diff --checkpasses.Focused regression entry points and native contract evidence
The committed regression entry points include:
extensions/codex/src/app-server/run-attempt.turn-watches.test.tsextensions/codex/src/app-server/attempt-deadlines.test.tsextensions/codex/src/app-server/run-attempt.settlement.test.tsextensions/codex/src/app-server/run-attempt-thread-cleanup.test.tsextensions/codex/doctor-contract-api.test.tssrc/agents/embedded-agent-runner/runs.liveness.test.tssrc/agents/embedded-agent-runner/run.terminal-timeout.test.tssrc/process/command-queue.deadline.test.tsDirect sibling Codex source inspection was pinned to
86b1123ff6b5d089a146be4e603a324cf454223a:codex-rs/codex-api/src/endpoint/responses_websocket.rs:676–799: transport idle handling wraps each incoming frame before parsing/filtering.codex-rs/core/src/session/turn.rs:2372–2448andcodex-rs/core/src/stream_events_utils.rs:392–438: native custom-tool generation need not emit the typed item-start events the removed watches depended on.codex-rs/app-server/src/bespoke_event_handling.rs:187–202: native completion settles pending thread requests before publishing completion.That source snapshot is contract evidence, not an assertion of exact source provenance for the managed 0.151.0 binary. The live comparison covers a native post-tool visibility gap; the exact original child-message sequence is covered separately by the real-JSONL regression. The original introducing commit was not established; the baseline reproduction is not an attribution claim.
The force-release/same-thread-successor composition is supported by exact route-claim ordering and existing stale-release/pending-unsubscribe/sibling tests, but there is no single combined 30-second forced-release → delayed old cleanup → same-thread successor regression.
attachment-519534265.mp4
attachment-3035846354.mp4