Skip to content

install.sh run under Rosetta installs an x64 Node that an arm64 server refuses #2115

Closed

Description

@devswha

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:

  • node_fits (from fix(install): keep the installer's Node off the user's PATH, and run the sidecar on it by path #2100) accepts an x64 Node, and install_node downloads the darwin-x64 build.
  • 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.

Activity

  1. devswha commented on Oct 28, 2026

    @devswha
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions