Skip to content

E2B is enabled on all scripts when running standalone #3084

@wsargent

Description

@wsargent

Describe the bug

When I set up E2B integration by.setting the E2B_API_KEY for the run_code tool, then I see that other python scripts such as excerpt.py are also run from the sandbox -- this breaks as I have Tailscale running and cannot resolve my local MCP server .

If I run the tool directly from ADE, I can see that I can't get to my tools server from the URL:

"Error executing function excerpt: ConnectionError: HTTPSConnectionPool(host='hayhooks-proxmox.tail88e86.ts.net', port=443): Max retries exceeded with url: /excerpt/run (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7df54d1310>: Failed to resolve 'hayhooks-proxmox.tail88e86.ts.net' ([Errno -2] Name or service not known)"))"

And when I look at the logs, I can see that excerpt.py is being run inside a sandbox, even though it's not using run_code:

  Letta.letta.services.tool_sandbox.e2b_sandbox - WARNING - E2B execution failed: excerpt

Please describe your setup

  • How are you running Letta?
    • Docker
  • Describe your setup
    • Ubuntu Linux running systemctl service on Letta 0.15.1

Additional context

To reproduce this, create a python script that uses requests and makes a GET call to an internal service -- the sandbox will not let it see the internal service.

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