tech-envision commited on
Commit
3645430
Β·
1 Parent(s): 4b96179

Fix VM command execution to capture output

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. src/vm.py +1 -0
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. 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
 
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")