artmoskvin / autocoder

Coding agent prototype
0 stars 0 forks source link

DB fails to save files containing a directory in path #5

Closed artmoskvin closed 11 months ago

artmoskvin commented 11 months ago

AI proposed to create dir tests/ for tests but left it empty. Directory was added to staging and created during commit as a file (why?). On another iteration I asked AI to implement the tests and when it tried to save them it failed with File exists: '/Users/artemm/Code/autocoder/projects/example1/tests'

artmoskvin commented 11 months ago

Turned out that the tests/ dir was recognized as a file and saved. And when the system tried to save tests/my_test.py it failed with the exception above. For now I decided to filter out the paths that end with / while parsing the LLM output.