Skip to content

Sub-agent terminal sessions don't inherit proxy environment #430

@nedalaltiti

Description

@nedalaltiti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions