Skip to content

Park terminal polls (write_stdin) instead of holding a turn slot #324

Closed

Description

@lydakis

From the Codex review of #322.

An empty write_stdin waits for the terminal's output inside run_tool: 5 s by default, at most 30 s (MAX_YIELD_MS). Each poll keeps its turn's active slot for that time. With an active-turn limit set, bots that poll could keep other bots from starting.

This is the same cost as a foreground shell call, which holds its slot for the whole command, and the bound is lower. A long wait on a terminal already parks durably through wait proc:N. If it matters in practice, a poll past a threshold could go through the same parking as wait, with the terminal's output as the wake.

Logged so #322 can merge, per the "merge when green, log findings" rule.

Activity

  1. added 7 commits that reference this issue on Nov 1, 2026
    33f5e38
    6bba79d
    f047d85
    f321952
    a449fd2
    37ebb4d
    2fc6491
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions