You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also facing this now.
I have Volta installed and other manager tool (mise) and in the terminal where I launch opencode, I see that in the $PATH mise is listed before volta, but when I am inside opencode I see that a new entry for volta was added in the beggining of the PATH.
Where and why it is adding this ? How can I make it does not add ?
I looked at that code and was surprised to see it source-ing shell startup files like .zshenv, .zshrc, .bashrc in a non-standard way:
Loading .zshenv should be superfluous for zsh, because it will automatically source this anyway.
.zshrc and .bashrc are intended for use in interactive shells only.
Why is it using -l? These are not login shells.
The second point might actually explain the root cause in my case, although I'm not sure of that yet. We already know from #2033 that bun can do strange things with its environment.
Activity
github-actions commentedon Aug 23, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
aspiers commentedon Aug 23, 2025
Checked - not a duplicate.
trystan2k commentedon Nov 27, 2025
I am also facing this now.
I have Volta installed and other manager tool (mise) and in the terminal where I launch opencode, I see that in the $PATH mise is listed before volta, but when I am inside opencode I see that a new entry for volta was added in the beggining of the PATH.
Where and why it is adding this ? How can I make it does not add ?
rekram1-node commentedon Dec 2, 2025
I assume there must be some sort of bug here:
https://github.com/sst/opencode/blob/733e5cd876bb0a025bacbbd1aab7f8abf4e957f1/packages/opencode/src/session/prompt.ts#L1221
aspiers commentedon Dec 12, 2025
I looked at that code and was surprised to see it source-ing shell startup files like
.zshenv,.zshrc,.bashrcin a non-standard way:.zshenvshould be superfluous for zsh, because it will automatically source this anyway..zshrcand.bashrcare intended for use in interactive shells only.-l? These are not login shells.The second point might actually explain the root cause in my case, although I'm not sure of that yet. We already know from #2033 that bun can do strange things with its environment.