mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Root cause: _WORKDIR was hardcoded to "/home/user" which doesn't exist in AWS AgentCore Code Interpreter environment (actual pwd is /opt/amazon/genesis1p-tools/var). Every command was prefixed with "cd /home/user && ..." which failed silently, producing empty stdout. Fix: - Default _WORKDIR to "/tmp" (universally available) - Auto-detect actual working directory via "pwd" during _construct_environment and override _WORKDIR dynamically Verified: echo, python3, uname all return correct stdout. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| aws_code_interpreter_sandbox.py | ||
| daytona_sandbox.py | ||
| dify_simple_sandbox.py | ||
| docker_daemon_sandbox.py | ||
| e2b_sandbox.py | ||
| local_without_isolation.py | ||
| ssh_sandbox.py | ||