pub async fn run_in_pty(
cmd: &str,
cwd: &Path,
timeout: Duration,
abort: Receiver<()>,
) -> Result<PtyOutcome, ToolError>Expand description
Run a command inside a real PTY (portable-pty). Output is merged (stderr
is folded into stdout via exec 2>&1) and filtered. Returns the filtered
output and the child’s exit code.
Low-level helper used by the bash tool when OXICODE_BASH_PTY=1 is set.
Does NOT enforce BLOCKED_ENV_VARS or workspace CWD policy — those
concerns live in the calling tool.