Skip to content

Directory Creation Failure and Duplicate File Creation in Coder Agent #21

Description

@kuruhakr

🐞 Bug Report
About: Report a reproducible bug or unexpected behavior


Description of the issue:

The Coder Agent is encountering inconsistent behavior during file and directory creation steps. Specifically, it reports a failure to create a directory, followed by a successful creation of a Python file twice. The final status indicates success, despite the earlier failure.


Steps to reproduce:

  1. Initiate a coding task with the Coder Agent that involves file and directory creation.
  2. Observe the output logs during the task execution.
  3. Look for any failure messages during the directory creation phase.

Expected behavior:

  • Directory should be created successfully if the -p option is used (assuming a Unix-like mkdir -p behavior).
  • The file should only be created once with a single success message.
  • If a directory creation fails, the task should not proceed or should at least return a warning/failure status.

Actual behavior:

  • Directory creation reports a failure: Failed to create directory.
  • File creation logs appear twice:
    Creating file updown_game.py
    Creating file updown_game.py
    File updown_game.py created successfully
  • Final message states: Coding task completed successfully — which is misleading given the earlier failure.

Screenshots/Logs [Mandatory]:

Creating directory -p
Executing operation
Failed to create directory
Creating file updown_game.py
Creating file updown_game.py
File updown_game.py created successfully
Coding task completed successfully

Environment (OS, Browser):

  • OS:Ubuntu 22.04]

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions