forked from openai/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed as not planned
Closed as not planned
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
- Provide robust subprocess execution: shell passthrough, streaming output, per-command timeouts, and cleanup of child/descendant processes.
Motivation
- Match Claude Code Bash/tool behavior and ensure reliable exec for long-running or nested processes.
Scope
- Shell passthrough command prefix (e.g.,
! cmd) from TUI/CLI. - Exec policy: working dir, env, per-profile PATH; soft/hard timeouts; SIGINT/SIGTERM escalations; kill grandchildren.
- Output: live tail, size limits, truncation messaging; exit codes.
- Config:
exec_timeout_ms, per-profile overrides.
References
- Docs (Claude Bash tool): https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/bash-tool
- Related base PRs:
- Kill grandchildren on timeout: ``openai/codex
PR 1852 - Shell passthrough
!commands: ``openai/codexPR 2471 - Customizable exec timeout: ``openai/codex
PR 2416 - MCP timeout fixes: ``openai/codex
PR 2968
- Kill grandchildren on timeout: ``openai/codex
Acceptance Criteria
- Commands run with streaming output, respect timeouts, and terminate all descendants.
- Clear UX on termination and errors; tests cover nested processes.\n\nNote: Links to base PRs are defanged to avoid cross-repo noise. Open locally via:\n- gh pr view openai/codex#<PR_NUMBER> -w\n
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request