Raw codex CLI subprocess session.
Sessions are useful for interactive or long-running commands such as:
codexcodex resumecodex forkcodex app-servercodex mcp-server
The caller process receives raw erlexec messages for the spawned process:
{:stdout, os_pid, binary}{:stderr, os_pid, binary}{:DOWN, os_pid, :process, pid, reason}
Use collect/2 to accumulate output until the process exits.
Summary
Functions
Closes the subprocess stdin by sending EOF.
Collects stdout/stderr until the subprocess exits.
Interrupts the subprocess.
Sends input bytes to the subprocess stdin.
Starts a raw subprocess session for binary_path and args.
Stops the subprocess.
Types
Functions
Closes the subprocess stdin by sending EOF.
Collects stdout/stderr until the subprocess exits.
Interrupts the subprocess.
Sends input bytes to the subprocess stdin.
Starts a raw subprocess session for binary_path and args.
Stops the subprocess.