Repository navigation
Keep native completion receipts through child recovery - #130347
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The task-row race reproduces on the pre-fix main tree in both orderings: history returns before the parent releases, or after it releases. Each incorrectly invokes synthetic completion delivery once. Both now acknowledge the recorded native input without invoking that delivery path. Foreign turns, different authoritative parent lineage, and a later run reusing the same agent path remain unable to acknowledge the result. At b29816d, 267 monitor/notification/task-mirror/projector/client tests and 179 run-attempt/steering/native-hook tests pass on Node 24.19.0. The commands were The dependency contract was checked directly in public Codex: |
(cherry picked from commit a021f79)
* Fix missing replies after native Codex subagents finish (#130311) * Fix missing replies after native Codex subagents finish * Fence subagent completion during parent startup (cherry picked from commit 8e9db5e) * Keep test teardown compatible with the release lint rules * Keep native completion receipts through child recovery (#130347) (cherry picked from commit a021f79)
Follow up on #130311: native completion input can reach a parent while OpenClaw is still recovering its child mapping from app-server history. Discarding that receipt makes the later recovery announce a result the parent has already used, recreating the duplicate turn that can hide its answer.
Keep the receipt with the parent run and its in-flight recovery, then match it against the child's authoritative lineage and agent path. A later parent run gets a fresh receipt set; another turn or another parent cannot acknowledge the recovered result. Native delivery still does not determine task success, and detached completions still use the existing delivery path.
This closes the history-read race identified in #130328 (comment). It changes no configuration, dependencies, or final-answer selection.