Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/sandbox-docker/Dockerfile.box
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,15 @@ RUN printf '%s\n' \
' . /etc/agentbox/box.env' \
' set +a' \
'fi' \
'# Land interactive login shells in the workspace (remote-host integrations,' \
'# plain `ssh <box>`); interactive-only and only when still at $HOME.' \
'case $- in' \
' *i*)' \
' if [ "$PWD" = "$HOME" ] && [ -d /workspace ]; then' \
' cd /workspace' \
' fi' \
' ;;' \
'esac' \
> /etc/profile.d/agentbox.sh \
&& chmod 0644 /etc/profile.d/agentbox.sh

Expand Down
12 changes: 12 additions & 0 deletions packages/sandbox-e2b/scripts/build-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,18 @@ export DISABLE_AUTOUPDATER=${DISABLE_AUTOUPDATER:-1}
export DISPLAY=${DISPLAY:-:1}
export AGENT_BROWSER_EXECUTABLE_PATH=${AGENT_BROWSER_EXECUTABLE_PATH:-/usr/local/bin/chromium}
export BROWSER=${BROWSER:-/usr/local/bin/agentbox-open}
# Land interactive login shells in the workspace, so remote-host integrations
# (Codex app, VS Code Remote-SSH, plain `ssh <box>`) open in the project instead
# of $HOME. Interactive-only so scp/sftp and `ssh box <cmd>` are untouched; only
# when still at $HOME so a caller-chosen dir (e.g. agentbox's tmux `-c /workspace`)
# is never overridden.
case $- in
*i*)
if [ "$PWD" = "$HOME" ] && [ -d /workspace ]; then
cd /workspace
fi
;;
esac
PROFILE
chmod 0644 /etc/profile.d/agentbox.sh
done_ "login-shell shim (/etc/profile.d/agentbox.sh)"
Expand Down
12 changes: 12 additions & 0 deletions packages/sandbox-hetzner/scripts/install-box.sh
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,18 @@ export LC_ALL=${LC_ALL:-en_US.UTF-8}
export DISPLAY=${DISPLAY:-:1}
export AGENT_BROWSER_EXECUTABLE_PATH=${AGENT_BROWSER_EXECUTABLE_PATH:-/usr/local/bin/chromium}
export BROWSER=${BROWSER:-/usr/local/bin/agentbox-open}
# Land interactive login shells in the workspace, so remote-host integrations
# (Codex app, VS Code Remote-SSH, plain `ssh <box>`) open in the project instead
# of $HOME. Interactive-only so scp/sftp and `ssh box <cmd>` are untouched; only
# when still at $HOME so a caller-chosen dir (e.g. agentbox's tmux `-c /workspace`)
# is never overridden.
case $- in
*i*)
if [ "$PWD" = "$HOME" ] && [ -d /workspace ]; then
cd /workspace
fi
;;
esac
PROFILE
chmod 0644 /etc/profile.d/agentbox.sh
done_ "login-shell shim (/etc/profile.d/agentbox.sh)"
Expand Down
12 changes: 12 additions & 0 deletions packages/sandbox-vercel/scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,18 @@ export DISABLE_AUTOUPDATER=${DISABLE_AUTOUPDATER:-1}
export DISPLAY=${DISPLAY:-:1}
export AGENT_BROWSER_EXECUTABLE_PATH=${AGENT_BROWSER_EXECUTABLE_PATH:-/usr/local/bin/chromium}
export BROWSER=${BROWSER:-/usr/local/bin/agentbox-open}
# Land interactive login shells in the workspace, so remote-host integrations
# (Codex app, VS Code Remote-SSH, plain `ssh <box>`) open in the project instead
# of $HOME. Interactive-only so scp/sftp and `ssh box <cmd>` are untouched; only
# when still at $HOME so a caller-chosen dir (e.g. agentbox's tmux `-c /workspace`)
# is never overridden.
case $- in
*i*)
if [ "$PWD" = "$HOME" ] && [ -d /workspace ]; then
cd /workspace
fi
;;
esac
PROFILE
chmod 0644 /etc/profile.d/agentbox.sh
done_ "login-shell shim (/etc/profile.d/agentbox.sh)"
Expand Down
Loading