From 05e431e6db98b2f45b889a7f12fabbcdc8d1708b Mon Sep 17 00:00:00 2001 From: BecoKo Date: Wed, 29 Apr 2026 18:28:05 +0300 Subject: [PATCH] Error in UpdateTodoList: [Errno 2] No such file or directory fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Win11 I started cecli with option '--subtree-only' in a subfolder of my repo. Agent failed to update todo list with error message: Unable to write file C:\SandBox\repo1\.cecli\agents\2026-04-29\cab13e36-34e7-433a-8431-4147676a23ca\todo.txt: [Errno 2] No such file or ▃ directory: 'C:\\SandBox\\repo1\\.cecli\\agents\\2026-04-29\\cab13e36-34e7-433a-8431-4147676a23ca\\todo.txt' Error in UpdateTodoList: [Errno 2] No such file or directory: 'C:\\SandBox\\repo1\\.cecli\\agents\\2026-04-29\\cab13e36-34e7-433a-8431-4147676a23ca\\todo.txt' Traceback (most recent call last): File "C:\Python\cecli-dev-venv\Lib\site-packages\cecli\tools\update_todo_list.py", line 158, in execute coder.io.write_text(abs_path, new_content) File "C:\Python\cecli-dev-venv\Lib\site-packages\cecli\io.py", line 737, in write_text with open(str(filename), "w", encoding=self.encoding, newline=newline) as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'C:\\SandBox\\repo1\\.cecli\\agents\\2026-04-29\\cab13e36-34e7-433a-8431-4147676a23ca\\todo.txt' This commit fix the error for me. --- cecli/coders/base_coder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cecli/coders/base_coder.py b/cecli/coders/base_coder.py index 0b7f847d436..8d16f741998 100755 --- a/cecli/coders/base_coder.py +++ b/cecli/coders/base_coder.py @@ -4003,7 +4003,8 @@ def apply_edits_dry_run(self, edits): return edits def local_agent_folder(self, path): - os.makedirs(f".cecli/agents/{GLOBAL_DATE}/{self.uuid}", exist_ok=True) + abs_path = self.abs_root_path(f".cecli/agents/{GLOBAL_DATE}/{self.uuid}/path") + os.makedirs(abs_path, exist_ok=True) stripped = path.lstrip("/") return f".cecli/agents/{GLOBAL_DATE}/{self.uuid}/{stripped}"