Skip to content

feat(codex): make app-server timeouts configurable - #79230

Draft
Shimada666 wants to merge 1 commit into
NousResearch:mainfrom
CorgiCortex:agent/codex-app-server-configurable-timeouts
Draft

feat(codex): make app-server timeouts configurable#79230
Shimada666 wants to merge 1 commit into
NousResearch:mainfrom
CorgiCortex:agent/codex-app-server-configurable-timeouts

Conversation

@Shimada666

Copy link
Copy Markdown

Summary

  • Add agent.codex_app_server_turn_timeout with the existing 600-second default.
  • Add agent.codex_app_server_post_tool_quiet_timeout with the existing 90-second default.
  • Treat non-positive values as unlimited.
  • Apply the configured turn timeout to native Codex app-server compaction as well as normal turns.

Why

The Codex app-server transport currently uses hard-coded host-side deadlines for turns and post-tool silence. These deadlines can terminate otherwise healthy long-running workflows even when the outer gateway inactivity timeout is disabled.

Operators need an explicit way to disable these policy deadlines while retaining user interrupts and subprocess-death detection.

Behavior

The defaults remain unchanged:

agent:
  codex_app_server_turn_timeout: 600
  codex_app_server_post_tool_quiet_timeout: 90

Set either value to 0 to disable that deadline:

agent:
  codex_app_server_turn_timeout: 0
  codex_app_server_post_tool_quiet_timeout: 0

Explicit interruption and Codex subprocess-death detection remain active.

Validation

  • scripts/run_tests.sh tests/agent/test_codex_app_server_persist.py tests/run_agent/test_codex_app_server_compaction.py tests/agent/transports/test_codex_app_server_session.py -q
  • scripts/run_tests.sh tests/hermes_cli/test_config.py -q
  • Ruff checks for all changed Python files
  • YAML parsing for cli-config.yaml.example

@alt-glitch alt-glitch added type/feature New feature or request comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard provider/openai OpenAI / Codex Responses API area/config Config system, migrations, profiles sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades P3 Low — cosmetic, nice to have labels Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have provider/openai OpenAI / Codex Responses API sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants