Skip to content

Commit 2048fcd

Browse files
committed
Clarify CWD system message to AI
CWD in system message does not update as AI changes folders (in tools that support changing folders).
1 parent 11f55f3 commit 2048fcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interpreter/interpreter.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ def default_system_message(self):
201201
print("Error adding system capability for date")
202202

203203
try:
204-
system_message += f"* The user's cwd is {os.getcwd()}"
204+
# This is not updated as the chat progresses, and does not necessarily match CWD within tools.
205+
system_message += (
206+
f"* You were launched from {os.getcwd()} (but tool environments may have a different CWD).\n"
207+
)
205208
except:
206209
print("Error adding system capability for cwd")
207210

0 commit comments

Comments
 (0)