Skip to content

Commit 05e431e

Browse files
authored
Error in UpdateTodoList: [Errno 2] No such file or directory fix
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.
1 parent 2e022d0 commit 05e431e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cecli/coders/base_coder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4003,7 +4003,8 @@ def apply_edits_dry_run(self, edits):
40034003
return edits
40044004

40054005
def local_agent_folder(self, path):
4006-
os.makedirs(f".cecli/agents/{GLOBAL_DATE}/{self.uuid}", exist_ok=True)
4006+
abs_path = self.abs_root_path(f".cecli/agents/{GLOBAL_DATE}/{self.uuid}/path")
4007+
os.makedirs(abs_path, exist_ok=True)
40074008

40084009
stripped = path.lstrip("/")
40094010
return f".cecli/agents/{GLOBAL_DATE}/{self.uuid}/{stripped}"

0 commit comments

Comments
 (0)