Skip to content

refactor(codex): centralize native completion delivery - #206447

Merged
vincentkoc merged 10 commits into
mainfrom
refactor/codex-native-subagent-completion-owner
Nov 27, 2026
Merged

vincentkoc merged 10 commits into
mainfrom
refactor/codex-native-subagent-completion-owner

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Fixes #206438

What Problem This Solves

Maintainers currently have to update two completion lifecycles: the shared subagent policy and the Codex plugin's separate ownership, retry, and receipt state. This cutover makes native Codex completions use the existing core completion obligation from 206383.

User Impact

Native child results keep their current routing, cancellation, retry delays, and persisted binding format. The plugin keeps Codex-specific receipt correlation; core owns whether a completion is pending, consumed, retrying, or retiring. No configuration or migration is required.

Why This Change Was Made

registerAgentHarnessCompletion extends the existing completion SDK subpath. The adapter reports completion and consumed receipts, supplies native readiness and persistence effects, and consumes the core handle's recorded facts. The duplicate plugin delivery map, flags, timers, counters, and attempt joining are removed. The existing obligation lifecycle is shared by the ordinary announce flow and the native registration; its policy remains in the owner established by 206383. Its lifecycle implementation is split into a sibling module to stay inside the existing source-size limit, with all callers migrated and no compatibility re-export.

The operator explicitly approved this narrow SDK extension and core-owner integration in chat. The approval covers the first completion-delivery/receipt cutover; unrelated model, admission, cancellation, and history machinery is deferred.

Native receipts do not identify the child turn. The plugin therefore retains path aliases, predecessor ordering, and result correlation instead of moving Codex wire parsing into core. The inspected upstream source is Codex commit 414782450952a196bbb64b1605a458c2531c47b6: codex-rs/app-server-protocol/src/protocol/v2/item.rs (CollabAgentToolCall, CollabAgentState, RawResponseItemCompletedNotification), codex-rs/protocol/src/models.rs (AgentMessage), and codex-rs/core/src/context/{subagent_notification,inter_agent_completion_message}.rs.

Native detached results retain their six existing retry delays; persisted registry completions retain their existing expiry/backoff policy. These are different persistence mechanisms under the same completion owner. Consumed results never re-enter delivery while bookkeeping retries. Ownership uses the logical agent/requester/assignment across replacement client contexts. If observation discovers unavailable custody, core releases that observation and preserves the durable assignment for fresh recovery.

Ownership map

All abbreviated filenames below are extensions/codex/src/app-server/native-subagent-<name>.ts.

Modules Fact or decision Owner and disposition
completion-delivery, delivery-receipts Delivery, consumption, retry, retirement; native receipt correlation Lifecycle moved to core; native correlation retained.
assignment, notification, notification-routing, turn-observation Native identities, lineage, event envelopes, activity/wait facts Codex adapters; unchanged.
history-recovery, recovery-coordinator, retry Native history, exact-turn recovery, persistence polling Native observation retained. Broader recovery policy remains a later audit; retry still has production consumers.
history-owner, pending-assignments, assignment-store Native binding identity and durable locators Existing native binding adapter and host storage authority; persisted shapes unchanged.
assignment-inventory Locator persistence/recovery and completion acknowledgement Reads consumed/retiring truth from core; native storage operations retained.
admission-custody, model-input, model-lookup, model-source Correlate native input with admitted model/source authority Existing host authority plus native correlation; broader reference-accounting audit deferred.
parent-owner, monitor-types, monitor, monitor-runtime Native registrations, subscriptions, parent observations, pending-child projection Completion-state readers migrated. Native client/turn orchestration retained.
cancellation-selection, cancellation-result, cancellation-wait, close-owner Exact native cancellation/close under host authority Native execution adapters; unchanged. No unproven deletion.
submission, submission-call, submission-owner Native submission acknowledgements and delayed-turn correlation Completion-consumption reader migrated; submission correlation and persistence retained.
roster Project current native children Existing AgentHarness.readNativeSubagents adapter; unchanged.

extensions/codex/test-api.ts and read-only extensions/copilot/src/tool-bridge.ts use the existing SDK session-key predicate for tool context; neither needs a new core-state reader in this slice.

Mechanical caller updates

  • subagent-announce.ts: import the shared obligation factory from its lifecycle module.
  • native-subagent-monitor-types.ts: replace plugin-owned delivery fields with the completion handle type.
  • native-subagent-monitor.test-support.ts, native-subagent-monitor.live.test.ts, and shared-client-lifetime.test-support.ts: construct real host-issued scopes through the existing private test SDK. plugin-test-runtime.ts provides a test-only factory reexport and remains excluded from production JS/declarations.
  • native-subagent-inventory.test.ts: remove assertions for the already-ignored expectedRequester delivery argument; keep all requester/result and recovery assertions.
  • run-attempt-parent-continuation.test.ts: use the same host-issued test scope and remove the ignored delivery argument expectation.
  • native-subagent-monitor.test.ts: await completed ownership release, rather than only the start of unsubscribe; keep the exact-once and non-reusability assertions.
  • native-subagent-assignment-inventory.ts, native-subagent-parent-owner.ts, and native-subagent-submission-owner.ts: consume the handle's recorded completion facts.
  • native-subagent-monitor.ts: reset the completion handle when a native assignment resumes.

Related contributor work

Related and overlapping: 194748 and 194764 by @dubr1k; 200947 by @shannon0430. This PR does not copy their unmerged patches or claim their separate fixes. After landing, each PR will receive the landed link and a specific supersession assessment; unresolved restart and retirement-policy work will remain explicit.

Evidence

  • Implementation base: 277b251bfa80c863e4408607bce9b372eddc24c9, including 206383. Campaign baseline: df78bb4a3ac.
  • Native owned area including test-api.ts: 9,957 → 9,799 lines (158 removed). Subagent-mentioning lines: 463 → 460. Direct imports of core subagent internals: 0 → 0.
  • Lines referencing the retired plugin lifecycle fields (nativeCompletionDelivered, completionDeliveryAbandoned, completionDeliveryAttempt, completionDeliveryTimer, deliveryOwnerKey): 40 → 0, measured with git grep -c.
  • Baseline Testbox: 45 tests passed across the completion SDK, native receipts, monitor completion, and contention suites. SDK (22 tests), native contention (5 tests), and core typecheck passed before the final adapter-only repairs; the owner-read work count changed from one to zero while durable receipt/restart assertions remain.
  • Independent P0–P2 full-branch review completed on 3c178af4e45cc286bd5f3e0c6d883dbabb6d4427, followed by branch reviews of the handoff-order repair at 264c15706de4064a627044df7dd4ab56afa763cf, the production CI repair at ecc87edc7c8454741086a5cca389753b5f8e9bab, and the final test-only synchronization at e79e8a308f77dab0a1bbf3947620c6d3b97eb6df; all found no actionable findings, with unchanged owner/custody/source context supplied.
  • Code-sloppiness: baseline run 44 (four existing files), run 59 at 264c15706de4 (same files plus the shared lifecycle). Clone SLOC 6 → 0; score 38.84 → 41.19 with expanded coverage, so this is not an aggregate complexity reduction. Native deliverAttempt (CC 29) disappears; native applyReceipts CC 15 → 12; shared attempt is CC 33 and the enclosing lifecycle is CC 63 (the scanner includes nested callbacks). Existing receipt matcher CC 11 and SDK delivery CC 26 are unchanged. The final repair adds one native cancellation-owner guard.
  • Across the full TypeScript change: 524 production lines added / 341 removed (net +183); 282 test/support lines added / 21 removed. The growth pays for one shared lifecycle and regressions for receipt/retirement ordering; no new persistence shape or generic task registry.
  • Dead-export baseline: the same Testbox reproduces all five flagged exports on the pinned base; none lost a production consumer in this cutover. The findings are the buildRequesterCompletionDeliveryResult, hasMessagingToolDeliveryToSource, and isDirectMessageDeliveryTarget reexports in subagent-announce-completion-delivery.ts, plus the first two exports in subagent-announce-obligation.ts.
  • SDK surface baseline: pnpm plugin-sdk:surface:check on the same Testbox reproduces public exports 3931 > 3930 on the pinned base; this branch retains 3,931 public exports. The added registration and test issuer are private-local. The public ratchet failure is pre-existing.
  • SDK API acknowledgement: reviewed the new private-local registerAgentHarnessCompletion contract on the existing completion subpath. pnpm plugin-sdk:api:diff and its --require-acknowledgement --acknowledge ff7b090f invocation passed on the Testbox with No Plugin SDK API changes; no new public barrel export is added.
  • Core typecheck and changed-file lint passed before the final adapter-only repairs. The one-shot client regression passes on 264c15706de4; all inventory cases, SDK tests and receipt-contention cases passed before that adapter-order repair. The full subagent/native run confirmed 2,101 passing tests across 173 files (one skipped file/test) before its Testbox lease ended; its remaining result is unknown. The replacement allocation queued and was stopped, so PR CI supplies broad proof under the coordinator's standing rule. The API acknowledgement check passed with no public API changes.
  • CI at 264c15706de4 exposed two obsolete parent-continuation fixture cases and a real descendant-Stop regression. The fixture now uses the host-issued test scope. The adapter retains a cancellation-requested child without a completion scope until the existing cancellation owner settles its process. CI at ecc87edc7c84 passes all three cases. Its remaining native idle-pool failure observed unsubscribe start before ownership release finished; the final test-only change waits for that actual completion without relaxing any assertion. Current-head CI owns the final broad proof.
  • Final-head CI run passed at e79e8a308f77dab0a1bbf3947620c6d3b97eb6df, including the previously failing Codex shard's real-process Stop, parent continuation, native completion, and idle-pool cleanup cases. Native preparation records the same head; GitHub CI gates remain enforced for merge.

The documented main failure preserves routed native Stop authority … (consumed-session) was not reached by the interrupted full Testbox suite. No passing full-suite claim is made.

Use the core completion obligation for native result ownership, consumption, retry and retirement. Keep Codex receipt correlation and binding persistence in the adapter.
@vincentkoc vincentkoc self-assigned this Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: codex plugin: file-transfer size: XL labels Nov 27, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. impact:message-loss Channel message delivery can be lost, duplicated, or misrouted. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. labels Nov 27, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 06:52
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR moves native Codex completion ownership, retries, consumption, and retirement into the core completion obligation.

Example: A Codex parent finishes while a native child is still running.

  • Before: The Codex plugin manages the child's eventual completion delivery.
  • After: Core manages that delivery lifecycle through a narrow SDK registration.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The approved ownership cutover has focused harness coverage, but recovery and affected-consumer validation are currently failing.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor has no intended user-visible change; supplied Testbox results exercise lifecycle code, while exact-head CI exposes the listed regressions.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Completion repairs currently require coordinating separate core and native lifecycle owners.
Reason: The maintainer-authored request approves this narrow consolidation while preserving native correlation, persistence formats, and retry timing.

Merge readiness

⛔ Needs changes before merge - 5 items remain

Keep open: this maintainer-approved consolidation remains useful, but grandchild recovery and several diff-caused CI failures need repair before merge.

Reviewed head: 61cea01e9acbfb93224357cf1d36cd60f2dedc8c

Before merge

  • [P2] Release unavailable nested observers for fresh recovery (P2) - When restoring a grandchild, a failed middle-thread read or revoked completion custody makes observeConsumption throw. This catch now schedules delivery retries while retaining the child and its original registration. The next parent registration takes the existing-child restoration path and cannot acquire fresh completion custody; revoked custody therefore cannot recover. The existing unavailable/revoked inventory scenarios both leave the saved grandchild at native-subagent-inventory.test.ts:220 in exact-head CI. Preserve the durable locator but release the unusable native observer so a subsequent registration can restore it with fresh custody, rather than treating failed observation as a failed delivery.
  • [P2] Obtain fixture completion scopes through the SDK test boundary (P2) - The new relative import reaches src/agents directly from extension test support. The repository's extension-test boundary checker explicitly rejects this import, and check-additional-boundaries fails on the reviewed head. Reuse the host-issued scope exposed by the existing plugin-test-runtime fixture and migrate its callers without introducing another core-internal test bridge.
  • [P2] Migrate inventory consumers to the new completion contract (P2) - The changed delivery call omits expectedRequester, which the SDK already documents as ignored, but the inventory suite still requires it in three recovery cases. The new Gateway-scoped ownership also leaves the cross-client test creating separate Gateway fixtures while expecting shared deduplication, producing two deliveries before its assertion at line 729. Update those consumer fixtures and assertions to exercise the intended custody and shared-Gateway contracts; retaining the ignored argument or weakening the deduplication behavior would hide the mismatch.
  • [P2] Use lifecycle error wording accepted by the identity ratchet (P2) - This new error introduces the literal phrase 'no longer active', which check-session-identity-ratchet.mts counts as an inference refusal. The new lifecycle file has no baseline allowance, and checks-fast-baseline-ratchets fails specifically on session-identity. Keep the explicit released-registration guard, use an appropriate lifecycle error outside that prohibited wording, and update its matching test assertion without expanding the baseline.
  • Explain or restore the original intent of Nested completion recovery - b189a9f: Acknowledge lineage-proven grandchild completion without another root delivery, leaving uncertain assignments recoverable.

Findings

  • [P2] [P2] Release unavailable nested observers for fresh recovery — src/agents/subagents/announce/subagent-announce-obligation-lifecycle.ts:274-281
  • [P2] [P2] Obtain fixture completion scopes through the SDK test boundary — extensions/codex/src/app-server/native-subagent-monitor.test-support.ts:7
  • [P2] [P2] Migrate inventory consumers to the new completion contract — extensions/codex/src/app-server/native-subagent-completion-delivery.ts:176-179

Provenance

  • Nested completion recovery changes intended behavior without addressing why it exists (b189a9f: Acknowledge lineage-proven grandchild completion without another root delivery, leaving uncertain assignments recoverable.)
Agent review details

How this fits together

The Codex monitor translates native completion events and receipts into core lifecycle operations; the plugin retains native correlation and binding persistence.

flowchart LR
  A[Codex events and receipts] --> B[Native monitor]
  B --> C[SDK completion registration]
  C --> D[Core completion obligation]
  D --> E[Requester delivery]
  D --> F[Native binding adapter]
Loading

Technical review

Best possible solution:

Keep the approved core owner and native adapters, while restoring fresh-custody recovery and migrating affected tests through supported SDK fixtures.

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

This is an ownership refactor; main's duplicate lifecycle is source-confirmed, and candidate recovery failures are supported by source tracing and exact-head CI annotations.

Is this the best way to solve the issue?

The approved SDK seam fits the existing ownership boundary, but failed native observation must preserve recovery through a fresh registration rather than retain unusable custody.

Full review comments:

  • [P2] [P2] Release unavailable nested observers for fresh recovery — src/agents/subagents/announce/subagent-announce-obligation-lifecycle.ts:274-281
    When restoring a grandchild, a failed middle-thread read or revoked completion custody makes observeConsumption throw. This catch now schedules delivery retries while retaining the child and its original registration. The next parent registration takes the existing-child restoration path and cannot acquire fresh completion custody; revoked custody therefore cannot recover. The existing unavailable/revoked inventory scenarios both leave the saved grandchild at native-subagent-inventory.test.ts:220 in exact-head CI. Preserve the durable locator but release the unusable native observer so a subsequent registration can restore it with fresh custody, rather than treating failed observation as a failed delivery.
    Confidence: 0.96
  • [P2] [P2] Obtain fixture completion scopes through the SDK test boundary — extensions/codex/src/app-server/native-subagent-monitor.test-support.ts:7
    The new relative import reaches src/agents directly from extension test support. The repository's extension-test boundary checker explicitly rejects this import, and check-additional-boundaries fails on the reviewed head. Reuse the host-issued scope exposed by the existing plugin-test-runtime fixture and migrate its callers without introducing another core-internal test bridge.
    Confidence: 1
  • [P2] [P2] Migrate inventory consumers to the new completion contract — extensions/codex/src/app-server/native-subagent-completion-delivery.ts:176-179
    The changed delivery call omits expectedRequester, which the SDK already documents as ignored, but the inventory suite still requires it in three recovery cases. The new Gateway-scoped ownership also leaves the cross-client test creating separate Gateway fixtures while expecting shared deduplication, producing two deliveries before its assertion at line 729. Update those consumer fixtures and assertions to exercise the intended custody and shared-Gateway contracts; retaining the ignored argument or weakening the deduplication behavior would hide the mismatch.
    Confidence: 0.99
  • [P2] [P2] Use lifecycle error wording accepted by the identity ratchet — src/agents/subagents/announce/subagent-announce-obligation-lifecycle.ts:121-123
    This new error introduces the literal phrase 'no longer active', which check-session-identity-ratchet.mts counts as an inference refusal. The new lifecycle file has no baseline allowance, and checks-fast-baseline-ratchets fails specifically on session-identity. Keep the explicit released-registration guard, use an appropriate lifecycle error outside that prohibited wording, and update its matching test assertion without expanding the baseline.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Core completion obligation keeps the original intent (811f999: Centralize completion decisions and receipt precedence while retaining transport and persistence owners.)
  • Native retry and delivery custody keeps the original intent (41784ac: Preserve native results through recovery and prevent duplicate delivery across lifecycle changes.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm lint:plugins:no-extension-test-core-imports
  • pnpm check:session-identity-ratchet
  • pnpm test src/plugin-sdk/agent-harness-completion.test.ts extensions/codex/src/app-server/native-subagent-inventory.test.ts extensions/codex/src/app-server/native-subagent-completion-delivery.contention.test.ts extensions/codex/src/app-server/native-subagent-monitor.completion-delivery.test.ts --maxWorkers=1
  • pnpm tsgo:core
  • git diff --check

What I checked:

PR surface

Source +168, Tests +235, Docs +12. Total +415 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 509 341 +168
Tests 3 239 4 +235
Docs 2 13 1 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 761 346 +415

Preflight source

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

Review metrics

Metric Value Why it matters
Production versus test growth Production +509/-341; tests/support +239/-4 The growth centralizes native lifecycle machinery and covers distinct receipt/retirement orderings; the native adapter itself shrinks.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: This adds an approved private-local completion registration contract and changes bundled callers; the affected consumer tests must migrate together.
  • add merge-risk: 🚨 message-delivery: The changed lifecycle governs delivery and recovery, and the retained stale registration prevents the existing grandchild recovery flow from settling.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • merge-risk: 🚨 message-delivery: The changed lifecycle governs delivery and recovery, and the retained stale registration prevents the existing grandchild recovery flow from settling.
  • merge-risk: 🚨 compatibility: This adds an approved private-local completion registration contract and changes bundled callers; the affected consumer tests must migrate together.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

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

Reviewed November 27, 2026, 2:08 AM ET / 07:08 UTC.

@vincentkoc
vincentkoc enabled auto-merge (squash) November 27, 2026 08:00
@vincentkoc
vincentkoc merged commit a9569e9 into main Nov 27, 2026
152 checks passed
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vincentkoc added a commit that referenced this pull request Nov 27, 2026
…restoration-ci-189390-20261127

* commit '6feeb50a3f14fbf0aa5167d342f186dc4d67fc18': (9846 commits)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  fix(agents): skip the bootstrap ritual in one-shot runs (#206477)
  fix(test): preserve stack coordinates in redacted failure reports (#152384)
  fix(gateway): return consistent unavailable response guidance (#191933)
  fix: preserve emphasis in Markdown table row labels (#205349)
  fix(nextcloud-talk): keep webhook spool helpers private (#206470)
  perf(plugins): overlay native receipts once per visible root (#206464)
  fix: keep GitHub comment approvals alive and skip repeat approval on the session PR (#206129)
  perf(config): retain one snapshot for unchanged validation results (#206465)
  refactor(test): reuse canonical secret fixture cleanup (#189492)
  refactor(subagents): own descendant Stop cancellation (#206444)
  refactor(subagents): keep announce cleanup action type private (#206407)
  ...
vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit 'fd681ab8786e062045fa5ec6261b1b06f60832eb': (2115 commits)
  fix: keep doctor --fix pending checks from creating SQLite sidecars (#206485)
  fix(ci): update iOS screenshot reducer gate (#206497)
  fix: keep chat photo previews sharp within their byte limits (#206461)
  fix: let agents use short Workboard card IDs
  fix(tui): run provider sign-in in the local TUI (#200605)
  improve(config): reduce repeated directory checks for larger agent rosters (#206494)
  perf(test): reuse the Periphery producer workflow snapshot (#189681)
  fix(ci): keep locale assets within the installed package budget (#206492)
  fix: preserve failed Apple chat messages across partial history pages (#205404)
  improve: avoid merging unrelated settings for agent directory lookups (#206489)
  fix: show typing while a queued follow-up turn runs (#201920)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  ...
vincentkoc added a commit that referenced this pull request Nov 27, 2026
* commit 'fd681ab8786e062045fa5ec6261b1b06f60832eb': (923 commits)
  fix: keep doctor --fix pending checks from creating SQLite sidecars (#206485)
  fix(ci): update iOS screenshot reducer gate (#206497)
  fix: keep chat photo previews sharp within their byte limits (#206461)
  fix: let agents use short Workboard card IDs
  fix(tui): run provider sign-in in the local TUI (#200605)
  improve(config): reduce repeated directory checks for larger agent rosters (#206494)
  perf(test): reuse the Periphery producer workflow snapshot (#189681)
  fix(ci): keep locale assets within the installed package budget (#206492)
  fix: preserve failed Apple chat messages across partial history pages (#205404)
  improve: avoid merging unrelated settings for agent directory lookups (#206489)
  fix: show typing while a queued follow-up turn runs (#201920)
  fix: stop 2026-11-17 main Git checkouts from half-switching on a schema update (#206341)
  refactor(codex): centralize native completion delivery (#206447)
  fix(subagents): finish claimed stops after session rotation (#206405)
  fix: let owners fork a chat with exec after a subagent or exec completion (#206483)
  test(cli): gate agent --local cold-start processes and workers (#206466)
  perf(ci): skip baseline inventory when line-cap debt is empty (#189909)
  refactor(test): share core process-result fixtures (#174149)
  refactor(ci): reuse canonical budget flag parsing (#189480)
  fix: recover Codex chats after oversized requests (#206475)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
* refactor(codex): centralize native completion delivery

Use the core completion obligation for native result ownership, consumption, retry and retirement. Keep Codex receipt correlation and binding persistence in the adapter.

* fix(agents): preserve native receipts across duplicate observers

* fix(plugin-sdk): guard absent completion context resolver

* refactor(agents): clarify completion attempt waiting

* fix(agents): keep completion fixtures on the test SDK boundary

* fix(agents): share completion custody across native clients

* fix(codex): release idle transport before completion readiness

* test(codex): use issued scope in parent continuation fixture

* fix(codex): retain cancelling child until process cleanup

* test(codex): await completed idle-thread ownership release
tideclaw-bot pushed a commit that referenced this pull request Nov 28, 2026
…06080)

(cherry picked from commit 47027a2)

Release adaptation: No source or test changes from main. Stable already carries prerequisite #206014 as 2940130, so the monitor and both regressions apply cleanly. Later same-file #206447 (a9569e9) centralizes completion delivery; it is not needed for the native-turn and contextual-receipt guards and is not included.

Co-authored-by: RomneyDa <[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 impact:message-loss Channel message delivery can be lost, duplicated, or misrouted. impact:session-state Session, memory, transcript, context, or agent state can drift or corrupt. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. plugin: file-transfer rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate native Codex completion delivery under the core owner

1 participant