test issue script #3063

Closed
opened 2026-02-16 17:38:25 -05:00 by yindo · 0 comments
Owner

Originally created by @tyrellshawn on GitHub (Nov 22, 2025).

Problem

Multiple outdated opencode installations were conflicting with each other:

  • `/home/$user/.bun/bin/opencode` (old npm install)
  • `/home/$user/.opencode/bin/opencode` (old install script)
  • `/usr/local/bin/opencode` (old compiled binary from June)

This caused `which opencode` to resolve to stale binaries instead of the local development version.

Solution

  1. Removed `/home/$user/.bun/bin/opencode` (old npm install)
  2. Removed `/home/$user/.opencode/bin/opencode` (old install script)
  3. Removed `~/.bun/bin` from PATH in fish config
  4. Added code to remove `~/.opencode/bin` from `fish_user_paths`
  5. Configured fish function to run local development build: `bun run --conditions=development /home/$user/agents/opencode/packages/opencode/src/index.ts`

Result

`opencode` command now properly resolves to the fish function
Runs local development build from source instead of stale binaries
Ready for local development with `opencode .`

Files Modified

  • `/home/$user/.config/fish/config.fish` - Updated bun PATH configuration and added cleanup for old opencode installations
Originally created by @tyrellshawn on GitHub (Nov 22, 2025). ## Problem Multiple outdated opencode installations were conflicting with each other: - \`/home/$user/.bun/bin/opencode\` (old npm install) - \`/home/$user/.opencode/bin/opencode\` (old install script) - \`/usr/local/bin/opencode\` (old compiled binary from June) This caused \`which opencode\` to resolve to stale binaries instead of the local development version. ## Solution 1. Removed \`/home/$user/.bun/bin/opencode\` (old npm install) 2. Removed \`/home/$user/.opencode/bin/opencode\` (old install script) 3. Removed \`~/.bun/bin\` from PATH in fish config 4. Added code to remove \`~/.opencode/bin\` from \`fish_user_paths\` 5. Configured fish function to run local development build: \`bun run --conditions=development /home/$user/agents/opencode/packages/opencode/src/index.ts\` ## Result ✅ \`opencode\` command now properly resolves to the fish function ✅ Runs local development build from source instead of stale binaries ✅ Ready for local development with \`opencode .\` ## Files Modified - \`/home/$user/.config/fish/config.fish\` - Updated bun PATH configuration and added cleanup for old opencode installations
yindo closed this issue 2026-02-16 17:38:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3063