session for runCommand and line for its onStdoutLine.
Throws
From line: SANDBOX_UNAVAILABLE when the server does not confirm read-only
mode, SESSION_INVALID for an unknown thread, PROTOCOL_ERROR on malformed messages,
and typed provider errors for failed requests.
Creates the stdin session and stdout line handler for one Codex app-server turn.