Skip to content

Skip Claude and Pi on CPUs without SSE4.2/POPCNT - #8149

Closed
chessing234 wants to merge 3 commits into
omacom:quattrofrom
chessing234:fix/skip-incompatible-bun-agents
Closed

chessing234 wants to merge 3 commits into
omacom:quattrofrom
chessing234:fix/skip-incompatible-bun-agents

Conversation

@chessing234

@chessing234 chessing234 commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Default user setup always installed Claude and Pi through mise. On x86-64-v1 CPUs without SSE4.2/POPCNT (Bun's linux-x64 baseline) both natives install then SIGILL.

omarchy-hw-cpu-sse4_2 detects that baseline before install. Missing either flag skips and prints why; ARM/aarch64 (including Apple Silicon/Asahi) still installs. Choosing Claude/Pi as the default agent is refused on incompatible CPUs, and those menu rows are hidden.

bun-agent-cpu-test.sh stubs cpuinfo: skip without sse4_2, install with flags, install on aarch64.

Fixes #7881

Bun's linux-x64 natives SIGILL on x86-64-v1 (Core 2 Duo and similar). Detect the baseline before install, print a reason, and hide those menu entries. ARM/aarch64, including Apple Silicon and Asahi, still installs.
Stub cpuinfo via OMARCHY_CPUINFO: missing sse4_2 skips install, sse4_2+popcnt and aarch64 still install.
Copilot AI balanced review requested due to automatic review settings August 25, 2026 03:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prevents Bun-based Claude and Pi binaries from running on unsupported x86 CPUs.

Changes:

  • Adds CPU capability detection and guarded mise installation.
  • Blocks incompatible default-agent selections and hides menu entries.
  • Adds CPU and menu tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
bin/omarchy-hw-cpu-sse4_2 Detects Bun-compatible CPUs.
bin/omarchy-mise-install-bun Skips incompatible agents.
bin/omarchy-default-agent Rejects incompatible selections.
install/user/mise.sh Applies guarded installation to Claude and Pi.
default/omarchy/omarchy-menu.jsonc Hides incompatible agent options.
test/shell.d/bun-agent-cpu-test.sh Tests detection and installation behavior.
test/shell.d/menu-test.sh Verifies menu guards.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

chessing234 added a commit to chessing234/omarchy that referenced this pull request Sep 21, 2026
@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #11514 with the other mise/default-agent fixes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip incompatible Bun-based agents on CPUs below their instruction-set requirements

2 participants