Capture native and PowerShell command status after the UTF-8 wrapper so failing commands still settle with a non-zero exit.
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Force cmd, PowerShell, and piped Python subprocesses to emit UTF-8 so V2 shell output is decoded without CJK mojibake.
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
ShellSelect.args() ran zsh/bash with -l and explicitly sourced .zshrc/.bashrc,
loading user functions and aliases that can shadow builtins and return non-zero
exit codes, breaking && chains. Match the old tool behavior: plain non-login
non-interactive shell -c command with cwd passed via spawn options.