Skip to content

Conversation

@istarkov
Copy link
Contributor

@istarkov istarkov commented Nov 2, 2025

Allows to use relative worker path.

Allows to use dev version with different cwd, i.e. test against user own projects.
like excuting this in my project.

bun run --preload @opentui/solid/preload  {{OPENCODE_DIR}}/packages/opencode/src/index.ts
# or
cd opencode-repo
bun dev ~/my-own-repo

Original bun issue oven-sh/bun#15981

Bun doc has example of using worker with URL (href is not needed)
https://bun.com/docs/runtime/workers#%22open%22

Closes #3220

@kommander
Copy link
Collaborator

Thanks for looking into this, it has to work with standalone executable build as well though. #3778 should fix this.

@istarkov
Copy link
Contributor Author

istarkov commented Nov 4, 2025

@kommander having that it's bun bug may be easier to use oven-sh/bun#15981 (comment) so after fixing switching to new URL will be easier?

@kommander
Copy link
Collaborator

Have you tried running bun script/build.ts in the opencode package, moving the dist binary to a directory far away from the opencode repository an running the binary?

@istarkov
Copy link
Contributor Author

istarkov commented Nov 4, 2025

I havent changed previous build behaviour, having release version works well this change does not affect it

@istarkov
Copy link
Contributor Author

istarkov commented Nov 4, 2025

Closing in favor of #3778

@istarkov istarkov closed this Nov 4, 2025
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.

Unable to run opencode from source outside of packages/opencode directory on opentui branch

2 participants