-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Description
When GH_TOKEN is set as an environment variable, it conflicts with gh CLI authentication when running commands through opencode's bash tool.
Opencode uses Bun runtime (via bun build --compile) which automatically loads .env files from the working directory. Variables like GH_TOKEN in .env get inherited by child processes, causing gh CLI authentication conflicts.
Should perhaps warn user when using .env vars that was perhaps not meant to be loaded by opencode.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels