[PR #6695] tui: apply direnv env for user shell commands #12046

Open
opened 2026-02-16 18:16:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6695

State: open
Merged: No


  • run direnv export inside the bash/zsh wrapper before eval so .envrc gets applied even for non-interactive ! commands.
    • Change is in packages/opencode/src/session/prompt.ts:1206 (zsh) and packages/opencode/src/session/prompt.ts:1220 (bash).
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6695 **State:** open **Merged:** No --- - run direnv export <shell> inside the bash/zsh wrapper before eval so .envrc gets applied even for non-interactive ! commands. - Change is in packages/opencode/src/session/prompt.ts:1206 (zsh) and packages/opencode/src/session/prompt.ts:1220 (bash).
yindo added the pull-request label 2026-02-16 18:16:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12046