strix icon indicating copy to clipboard operation
strix copied to clipboard

Sub-agent terminal sessions don't inherit proxy environment

Open nedalaltiti opened this issue 7 months ago • 1 comments

Bug

When the Root Agent creates sub-agents in deep mode, the new tmux terminal sessions don't inherit the Caido proxy configuration (HTTP_PROXY, HTTPS_PROXY, REQUESTS_CA_BUNDLE, SSL_CERT_FILE).

Steps to Reproduce

  1. Run Strix in deep mode against an external HTTPS target
  2. Root Agent performs recon successfully (curl, katana, nmap work)
  3. Root Agent creates sub-agents (e.g., SQLi Discovery Agent)
  4. Sub-agent runs curl or httpx → fails with proxy/container errors

Expected Behavior

Sub-agent terminal sessions should inherit the same proxy and CA certificate configuration as the Root Agent.

Root Cause

TerminalSession.initialize() creates a new tmux session with /bin/bash but doesn't source /etc/profile.d/proxy.sh which is where docker-entrypoint.sh writes the proxy vars.

Fix

PR #429 — sources the proxy config in each new terminal session.

Environment

  • Strix version: 0.1.13 (sandbox image)
  • OS: macOS (Docker Desktop)
  • LLM: Gemini 3.1 Pro via Google AI Studio

nedalaltiti avatar Apr 04 '26 01:04 nedalaltiti

The premise here is the old per-sub-agent terminal session that didn't inherit the proxy environment. After the SDK refactor, proxy settings (http_proxy/https_proxy/ALL_PROXY) are injected at the container/manifest level in strix/runtime/session_manager.py, so all processes started in the sandbox pick them up. Recommend verifying on current main and closing.

NetVar1337 avatar Jun 09 '26 05:06 NetVar1337