Skip to content

test(codex): choose task replies from request history - #665

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/task-stop-transcript
Nov 6, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/task-stop-transcript

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Codex can discard a pending model reply when a peer task finishes and sends a native message. The stop-task fixture previously offered the child recovery command only on the fourth parent request; the next request returned ordinary text, so the parent completed without resuming the child.

Choose every parent action from the request's user input and completed tool results. A proposal interrupted before execution remains available; a recorded tool result prevents another execution. Child delays also follow the task payload. Request counters now serve only as diagnostics. Share this script with the native probe.

The native regression controls peer completion before and during the parent follow-up. It retains the exact two target requests, interrupted first turn, completed second turn, distinct turn IDs and usable parent and peer, and additionally requires exactly one native follow-up activity. The interrupted case observes repeated proposals with only one execution. Both cases retain raw requests and session records on failure.

Validation on Linux:

  • Controlled native ordering reproduces the original failure on Codex 0.166.0 with five parent requests, one target request and no second target turn.
  • Four HTTP regressions verify both spawn steps and follow-up before and after execution, plus child input routing. The existing concurrent request routing regression also passes.
  • Full check passes: 3,610 tests, typecheck, lint and 18 mock behavior cases.
  • Codex 0.167.0 native probe and all 77 Codex vendor cases pass, including both controlled completion orders.

No product behavior, existing lifecycle assertion or timeout changes. macOS and Windows are left to this PR's CI. Task #194; diagnosis and rerun commands are in experiments/task-controls/README.md.

@stamp-build
stamp-build Bot merged commit 2ca01bf into main Nov 6, 2026
40 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/task-stop-transcript branch November 6, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants