Spaces:
Runtime error
Runtime error
Merge pull request #72 from EnvisionMindCa/codex/ensure-vm-terminal-returns-all-output
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
## Features
|
| 6 |
|
| 7 |
- **Persistent chat history** – conversations are stored in `chat.db` per user and session so they can be resumed later.
|
| 8 |
-
- **Tool execution** – a built-in `execute_terminal` tool runs commands inside a Docker-based VM
|
| 9 |
- **System prompts** – every request includes a system prompt that guides the assistant to plan tool usage, verify results and avoid unnecessary jargon.
|
| 10 |
|
| 11 |
## Environment Variables
|
|
|
|
| 5 |
## Features
|
| 6 |
|
| 7 |
- **Persistent chat history** – conversations are stored in `chat.db` per user and session so they can be resumed later.
|
| 8 |
+
- **Tool execution** – a built-in `execute_terminal` tool runs commands inside a Docker-based VM using `docker exec -i`. Network access is enabled and both stdout and stderr are captured (up to 10,000 characters). The VM is reused across chats when `PERSIST_VMS=1` so installed packages remain available.
|
| 9 |
- **System prompts** – every request includes a system prompt that guides the assistant to plan tool usage, verify results and avoid unnecessary jargon.
|
| 10 |
|
| 11 |
## Environment Variables
|
src/vm.py
CHANGED
|
@@ -120,6 +120,7 @@ class LinuxVM:
|
|
| 120 |
cmd = [
|
| 121 |
"docker",
|
| 122 |
"exec",
|
|
|
|
| 123 |
]
|
| 124 |
if detach:
|
| 125 |
cmd.append("-d")
|
|
|
|
| 120 |
cmd = [
|
| 121 |
"docker",
|
| 122 |
"exec",
|
| 123 |
+
"-i",
|
| 124 |
]
|
| 125 |
if detach:
|
| 126 |
cmd.append("-d")
|