Skip to content

Your lightweight open-source personal agent.

fix(filesystem): correct write success message from bytes to characters

Leo fu44c799209556
diff --git a/nanobot/agent/tools/filesystem.py b/nanobot/agent/tools/filesystem.py
index 11f05c557..27ae3ccd9 100644
--- a/nanobot/agent/tools/filesystem.py
+++ b/nanobot/agent/tools/filesystem.py
@@ -186,7 +186,7 @@ class WriteFileTool(_FsTool):
fp = self._resolve(path)
fp.parent.mkdir(parents=True, exist_ok=True)
fp.write_text(content, encoding="utf-8")
- return f"Successfully wrote {len(content)} bytes to {fp}"
+ return f"Successfully wrote {len(content)} characters to {fp}"
except PermissionError as e:
return f"Error: {e}"
except Exception as e: