You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install.sh run under Rosetta installs an x64 Node that an arm64 server refuses #2115
Found while reviewing #2100 (fix for #596); this predates that PR.
What happens. On an arm64 Mac, install.sh run from a shell under Rosetta (an x86_64 Terminal, or a parent process that is x64) sees uname -m = x86_64 and sets arch=x64 (install.sh, the case "$(uname -m)" in main()). Then:
Bun's own installer detects Rosetta (sysctl -n sysctl.proc_translated) and installs arm64 Bun, so the server runs as arm64, and server/pty/sidecar.ts refuses an x64 Node (another architecture than the server's).
The result: where the Rust PTY host cannot run, terminals stay mirrored although install.sh reports Node as installed.
Reproduce (by reading). On an arm64 Mac, run arch -x86_64 /bin/sh install.sh with no Node 18+ and no Rust host: ~/.local/share/ovis/node gets an x64 Node, and the server logs PTY host: none.
Suggested fix. Detect Rosetta in main() as Bun's installer does ([ "$(sysctl -n sysctl.proc_translated 2>/dev/null)" = 1 ] && arch=arm64 on Darwin), so install.sh picks the architecture the server will run on.
Severity: low. It needs a Rosetta shell, an arm64 Mac without a working Rust PTY host, and no usable Node.
Fixed by 6fdc930 (#2100): the installer now picks the Node architecture from the Bun that runs the server (server_arch in install.sh), so a Rosetta shell beside an arm64 Bun no longer gets an x64 Node, and the server refuses a Node of another architecture.
Activity
devswha commentedon Oct 28, 2026
Fixed by 6fdc930 (#2100): the installer now picks the Node architecture from the Bun that runs the server (
server_archin install.sh), so a Rosetta shell beside an arm64 Bun no longer gets an x64 Node, and the server refuses a Node of another architecture.