Skip to content

Error in UpdateTodoList: [Errno 2] No such file or directory fix#501

Merged
dwash96 merged 1 commit intocecli-dev:v0.99.9from
BecoKo:patch-1
Apr 30, 2026
Merged

Error in UpdateTodoList: [Errno 2] No such file or directory fix#501
dwash96 merged 1 commit intocecli-dev:v0.99.9from
BecoKo:patch-1

Conversation

@BecoKo
Copy link
Copy Markdown

@BecoKo BecoKo commented Apr 29, 2026

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.

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.
@dwash96 dwash96 changed the base branch from main to v0.99.9 April 30, 2026 00:55
@dwash96 dwash96 merged commit 60a745d into cecli-dev:v0.99.9 Apr 30, 2026
12 checks passed
@dwash96 dwash96 mentioned this pull request Apr 30, 2026

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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path should be {path} here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants