Bug: opencode messing with bunx? #922

Closed
opened 2026-02-16 17:28:46 -05:00 by yindo · 8 comments
Owner

Originally created by @jhrudden on GitHub (Jul 25, 2025).

Originally assigned to: @thdxr on GitHub.

Not really sure what is going on here, but bunx seems to get hijacked by opencode...

Image

i

Originally created by @jhrudden on GitHub (Jul 25, 2025). Originally assigned to: @thdxr on GitHub. Not really sure what is going on here, but bunx seems to get hijacked by opencode... <img src="https://uploads.linear.app/a959060b-9262-4398-9650-16bf10f1450e/09a07373-daf3-4718-a2ce-eafb9eeac46b/78d1a645-c5ab-41d6-8aac-06ef0a7ce1ee?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiL2E5NTkwNjBiLTkyNjItNDM5OC05NjUwLTE2YmYxMGYxNDUwZS8wOWEwNzM3My1kYWYzLTQ3MTgtYTJjZS1lYWZiOWVlYWM0NmIvNzhkMWE2NDUtYzVhYi00MWQ2LThhYWMtMDZlZjBhN2NlMWVlIiwiaWF0IjoxNzUzNTA2NTUwLCJleHAiOjMzMzI0MDY2NTUwfQ.sGQW5MBe3bXsfgH9eNChr0jk5xW68kMZAjjNGuQ2fVA " alt="Image" width="814" data-linear-height="1460" /> i
yindo closed this issue 2026-02-16 17:28:46 -05:00
Author
Owner

@jhrudden commented on GitHub (Jul 25, 2025):

✗ which bunx
/opt/homebrew/bin/bunx
✗ which bun
/opt/homebrew/bin/bun
@jhrudden commented on GitHub (Jul 25, 2025): ``` ✗ which bunx /opt/homebrew/bin/bunx ✗ which bun /opt/homebrew/bin/bun
Author
Owner

@thdxr commented on GitHub (Jul 26, 2025):

i have no clue how this can be happening

@thdxr commented on GitHub (Jul 26, 2025): i have no clue how this can be happening
Author
Owner

@rekram1-node commented on GitHub (Aug 5, 2025):

Someone just ran into this, see discord: https://discord.com/channels/1391832426048651334/1391832428024430645/1402297602933784587

@rekram1-node commented on GitHub (Aug 5, 2025): Someone just ran into this, see discord: https://discord.com/channels/1391832426048651334/1391832428024430645/1402297602933784587
Author
Owner

@thdxr commented on GitHub (Aug 5, 2025):

bun works fine? it's just bunx?

@thdxr commented on GitHub (Aug 5, 2025): bun works fine? it's just bunx?
Author
Owner

@jhrudden commented on GitHub (Aug 5, 2025):

bun works fine? it's just bunx?

Yeah, it was only happening when running bunx with the --bun flag

@jhrudden commented on GitHub (Aug 5, 2025): > bun works fine? it's just bunx? Yeah, it was only happening when running `bunx` with the `--bun` flag
Author
Owner

@izakfilmalter commented on GitHub (Aug 6, 2025):

Running into the same issue.

@izakfilmalter commented on GitHub (Aug 6, 2025): Running into the same issue.
Author
Owner

@thdxr commented on GitHub (Aug 6, 2025):

^ we figured it out with @izakfilmalter help

on mac you should do rm -rf /private/tmp/bun-node-*`

bun writes symlinks there and sometimes opencode runs first and links itself there - this should be something that is resolved by bun but removing that folder then running bun x will ensure it takes precedence

@thdxr commented on GitHub (Aug 6, 2025): ^ we figured it out with @izakfilmalter help on mac you should do `rm -rf `/private/tmp/bun-node-*` bun writes symlinks there and sometimes opencode runs first and links itself there - this should be something that is resolved by bun but removing that folder then running `bun x` will ensure it takes precedence
Author
Owner

@thdxr commented on GitHub (Aug 6, 2025):

i should give credit to opus also: https://opencode.ai/s/BDzvpl6j

@thdxr commented on GitHub (Aug 6, 2025): i should give credit to opus also: https://opencode.ai/s/BDzvpl6j
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#922