Skip to content

Conversation

@zendril
Copy link

@zendril zendril commented Oct 26, 2025

Running bun x opencode@opentui was giving error: interpreter executable "/bin/sh" not found in %PATH% when running bun x opencode-ai@opentui

The package.json bin was hardcoded to the linux ./bin/opencode
This puts a shim in place to figure out whether to execute ./bin/opencode or ./bin/opencode.cmd

@zendril
Copy link
Author

zendril commented Oct 26, 2025

I dunno why the script/format.ts is now failing.. seems to be confused about being on a branch.

@rekram1-node
Copy link
Collaborator

I just merged opentui branch into this to avoid confusion

@zendril
Copy link
Author

zendril commented Oct 27, 2025

Hold on before approving/merging.

It starts the TUI fine, but I think it isn't passing any args, so only the help shows no matter what args are passed.

@zendril
Copy link
Author

zendril commented Oct 27, 2025

updated with a change to opencode.cmd. args were not be parsed correctly in there.

Now it runs the TUI if no args and then runs the other args properly if passed.

@zendril
Copy link
Author

zendril commented Oct 31, 2025

anything else you need me to do/verify or are you waiting on other reviews?

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.

2 participants