Skip to content

Measure and reduce Codex model turns spent waiting for long commands #723

Open

Description

@JacobStephens2

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)

Activity

  1. added
    enhancement
    needs-triage
    on Oct 17, 2026
  2. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    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: verifying default_exec_yield_time_ms and 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.

  3. added
    ready-for-human
    and removed
    needs-triage
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions