Skip to content

feat: Subprocess/child process exec (shell passthrough, timeouts, kill grandchildren) #3

@buihongduc132

Description

@buihongduc132

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

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions