Open eli-byers opened 6 months ago
Is this history data stored in Postgres?
It's in SQLite3 database, on your system it should be in /Users/elbyers/Documents/Personal/gpt-pilot/pilot/gpt-pilot
file (no extension).
Can I introspect it to see if I can manually repair the data?
You can inspect and/or modify it using a tool such as https://sqlitebrowser.org/ or command-line sqlite3
tool. The development_steps
table shows communication with the LLM, so you'd probably want to have a look at steps 48 and 70 there.
From the bug description, it sounds to me like we had an error talking to LLM, stored incorrect (non-JSON) result, which basically caches it, and now every time we want to load the project we replay this and crash on the same spot.
Can I clear out the dev steps and start with a fresh history or is that equivalent to starting with a new project and not supported yet?
Yeah, clearing out the dev steps basically removes progress with the project.
does the issue persist ?
Version
VisualStudio Code extension
Operating System
MacOS
What happened?
MacBook Pro Apple M2 Pro 32 GB MacOS Sonoma 14.2.1
I was going through the steps and at step 70 I accidentally closed the GPT Pilot tab. I opened it again and used the Load App option. It shows all 70 steps and I selected 70 (I also tried 69 & 68) and it starts spinning through the steps from the start. It logs 'Restoring development step with id 48 ... DONE' but then errors out with the following JSONDecodeError:
I also tried with the CLI and with the step and skip_until_dev_step command line arguments, I got the same error at step 48. It seems to me that there is some data in the step history that is not Json (maybe corrupted?) and it is failing when re initialized the dev history.
Questions:
Is this history data stored in Postgres? Can I introspect it to see if I can manually repair the data? Can I clear out the dev steps and start with a fresh history or is that equivalent to starting with a new project and not supported yet?
Going back to step 47 let me continue again but I lost a good about of progress. Once I got to step 70 it crashed with another JSONDecodeError:
I am now wondering if it is something about the history length at 70 that is causing it. Any ideas? Thanks!