From 6694ca8af26d42b0c7fb54185cf42cf56aebb3f8 Mon Sep 17 00:00:00 2001 From: Greg Pstrucha <875316+Gricha@users.noreply.github.com> Date: Thu, 22 Jan 2026 23:59:07 +0000 Subject: [PATCH] fix: add opencode to SSH SetEnv PATH Non-login SSH sessions were missing opencode in PATH. This adds /home/workspace/.opencode/bin to the sshd_config SetEnv PATH. --- perry/Dockerfile.base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perry/Dockerfile.base b/perry/Dockerfile.base index 2fdb1f0..42f8312 100644 --- a/perry/Dockerfile.base +++ b/perry/Dockerfile.base @@ -109,7 +109,7 @@ RUN mkdir -p /run/sshd \ && sed -i 's/#\?AllowTcpForwarding.*/AllowTcpForwarding yes/' /etc/ssh/sshd_config \ && sed -i 's/#\?AllowAgentForwarding.*/AllowAgentForwarding yes/' /etc/ssh/sshd_config \ && sed -i 's/#\?GatewayPorts.*/GatewayPorts clientspecified/' /etc/ssh/sshd_config \ - && echo 'SetEnv PATH=/home/workspace/.npm-global/bin:/home/workspace/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' >> /etc/ssh/sshd_config + && echo 'SetEnv PATH=/home/workspace/.opencode/bin:/home/workspace/.npm-global/bin:/home/workspace/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' >> /etc/ssh/sshd_config # Install Node.js (needed for npm global packages like codex) RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \