Gemini exp-1206 indentation errors

There seems to be a recursive indentation error when Gemini is writing code into artifacts/files. Bolt.diy will save it, upon new prompt for more code into said files Gemini will continue with good code, yet the integration with bolt.diy produces indentation error repeatedly. A workaround was to copy/paste Geminis response code (full code) into the file, save it, and continue. The problem, is anytime the file is altered; the indentation errors are back.
Also yes it’s spelled ‘rigmarole’

Hi @liku408,

if not already done, you could try to use the new optimized prompt which is currently in experimentation status, but it should fix this:

You can enable in the Settings:

2 Likes

please let us know if the optimized prompt solved the indentation issue ?

i had the same issue.
i guess bolt.diy is not really made for python coding


the experimental prompt puts ``` python into the .py file leading to another type of interpretation error

@tazztone you are right. Bolt is made for NodeJS applications and also cannot preview python applications.
so for this I would recommend using other tools like (Cline, Claude, Windsurf, Aider, …)

1 Like

try the latest stable branch with optimized prompt. it has cleanup code to remove``` prefix.

but yes its not optimized for python yet. but might focus on other languages once the project matures

2 Likes