Repository navigation
Description
From the Oct 11–16 2026 Run retrospective, finding 3. Tracking issue: #721.
The evidence below is historical and attributed to the supplied report (repository snapshot 5504c97); it has not all been independently reproduced. Limited current-checkout checks were made at 53bb9c6. This is filed for maintainer triage, not automatic Pickup.
Requested outcome and validation
Verify the supported command/session wait controls for the Codex version thirdshift launches, then make HEADLESS guidance use that Harness's actual tools. Prefer attached commands and waiting on the command's own session over redirecting output and repeatedly reading a log. Retain task ownership, cancellation, completion detection, and required progress updates.
The report's suggested instruction that base wait/commentary limits “don't apply” is a proposal, not established authority. Prompt text must respect higher-priority Harness instructions; where those constrain waits, reduce redundant reads and measure the remaining cost. The reported default_exec_yield_time_ms setting, key path, maximum value, and CLI version support are unverified and must be checked before adding configuration.
Record a before/after long-command run: wall time, model turns, input tokens, output retention, interruption, and completion. Test Harness-specific prompt selection and regenerate prompts/ from src/prompt.rs / src/prompts_page.rs with UPDATE_PROMPTS=1 cargo test prompts_page.
Current checkout check: shared HEADLESS text still refers to raising the command timeout and TaskStop; #180 and #302 explain the existing task-lifecycle requirements.
Original finding, including evidence, proposed fixes, and confidence
3. On Codex, waiting on a long command costs a model turn every 30–60 s (Factory; No-op)
- Evidence: every implement session starts the full suite as
cargo … > /tmp/…log 2>&1withyield_time_ms: 1000(all 118 calls in A Merge run reports "review required" without trying a merge it knows will be refused #707 used 1000). It then alternateswrite_stdinorsleep15–40 s withrg/tailof the log.- Two instructions drive this. Codex's base instructions say "Avoid performing blocking sleep or wait calls longer than 60 seconds" and "[the user] should not be left without a commentary update for more than 60 seconds".
HEADLESSinsrc/prompt.rsis commented "worded for either Harness", but says "raising the command's timeout" and "theTaskStoptool". On Codex those two phrases are no-ops.- The A Merge run reports "review required" without trying a merge it knows will be refused #707 security review shows long waits work: it used
pollWaitMs = 30000.
- Cost:
- A Merge run reports "review required" without trying a merge it knows will be refused #707: about 99 turns and 17M input tokens, 61% of the session.
- Tickets keep their repository from the sub-issue graph to the Run #672: about 50 polls and 8M.
- update https://thirdshift.app/ based on the latest which is part of thirdshift #663: 57% of its input.
- Check re-run reads CI as passed before the re-run's checks are listed, and Self-merges red CI #686: 43%.
- Roughly half of all implement input tokens.
- Fix:
- Prompt: a Codex variant of
HEADLESS, then regenerateprompts/. Wording such as: "Nobody reads your commentary here, so the 60-second update and wait limits don't apply. Run a long command attached and wait on its session withwrite_stdinand a longyield_time_ms. Don't send it to a log and re-read the log." - Config, to verify: Codex 0.162 has a
default_exec_yield_time_mssetting, whichcodex_argscould raise with-c. I couldn't confirm the exact key path or the maximum yield.
- Prompt: a Codex variant of
- Confidence: high on the cause and the cost; medium on the exact Codex limits.
Activity
JacobStephens2 commentedon Oct 25, 2026
Triage: ready for a human
The shared headless prompt still tells sessions to raise a command's timeout and names
TaskStop. Improving it for Codex needs live Codex work: verifyingdefault_exec_yield_time_msand its limits, and measuring turns before and after on real sessions. The issue itself says it is not for automatic Pickup.Next step: once the Codex controls are verified, a Codex-only wording change plus regenerated
prompts/is one agent session.