Skip to content

fix: add opencode to SSH SetEnv PATH#144

Merged
gricha merged 1 commit intomainfrom
fix/ssh-path-opencode
Jan 23, 2026
Merged

fix: add opencode to SSH SetEnv PATH#144
gricha merged 1 commit intomainfrom
fix/ssh-path-opencode

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 22, 2026

Summary

  • Add /home/workspace/.opencode/bin to sshd_config SetEnv PATH
  • Fixes issue where non-login SSH sessions (e.g., ssh workspace@name "command") could not find opencode

Without this, SSH commands had to use the full path:

# Before (broken)
ssh workspace@foo "opencode run ..."

# After (works)
ssh workspace@foo "opencode run ..."

Non-login SSH sessions were missing opencode in PATH.
This adds /home/workspace/.opencode/bin to the sshd_config SetEnv PATH.
@gricha gricha merged commit 3c0cb7a into main Jan 23, 2026
8 checks passed
@gricha gricha deleted the fix/ssh-path-opencode branch January 23, 2026 00:04
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.

1 participant