Skip to content

Conversation

@chuckchen
Copy link

@chuckchen chuckchen commented Jan 12, 2026

The wrapper script in bin/opencode already has robust logic to find the correct platform-specific binary by searching through node_modules, so we don't need to replace it with a symlink. The postinstall script should only ensure the binary package is installed, not modify the wrapper script.

What does this PR do?

It fixes #7911

How did you verify your code works?

The release package is tested in local.

The wrapper script in `bin/opencode` already has robust logic to find the correct platform-specific binary by searching through `node_modules`, so we don't need to replace it with a symlink. The postinstall script should only ensure the binary package is installed, not modify the wrapper script.
@github-actions
Copy link
Contributor

Hey! Your PR title Remove the symlinkBinary function call that replaces the wrapper script doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@chuckchen chuckchen changed the title Remove the symlinkBinary function call that replaces the wrapper script fix: opencode Remove the symlinkBinary function call that replaces the wrapper script Jan 12, 2026
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@chuckchen chuckchen changed the title fix: opencode Remove the symlinkBinary function call that replaces the wrapper script fix: opencode Remove the symlinkBinary function call that replaces the wrapper script (fixes #7911) Jan 12, 2026
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@chuckchen chuckchen force-pushed the fix/skip-symlink-at-postinstall branch from c09ac8e to ed6eceb Compare January 12, 2026 07:22
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.

Wrapper script trying to execute native binary with Node.js if installed by pnpm

2 participants