Hi @Fรฉlix_banqi,
Sorry you are facing this issue. That definitely doesnโt sound like the intended experience.
I would like to understand the issue better to give you a better steer. Is there an example you can share?
In the meantime, given that you have already tried the developer settings, a couple of things may help...
- If you are using Genie Code in Agent mode, it can behave much more autonomously. Databricks documents that Agent mode is designed for multi-step workflows, while Chat mode is better for narrower help, such as explanations and simpler code generation, so switching to Chat mode is often the safest option when you want assistance without many automatic changes. See Use Genie Code.
- It's also worth keeping approvals strict. The docs say Genie Code asks for approval before using tools like editing notebooks or running code, and "Ask every time" is the default behaviour. See Use Genie Code.
- For notebook/code fixes specifically, Genie Code supports diff-based flows like /fix, where you can accept or reject the proposed change, and accepted code does not automatically run. See Get coding help from Genie Code.
- Databricks also calls out that results can vary and usually improve when prompts are more explicit... for example, specifying the exact output you want, the library to use, or the format of the answer. See Tips to improve Genie Code responses.
If you already got into a bad state, another useful point is that Genie Code edits are tracked in revision history, and Databricks says you can roll back changes across notebooks, queries, files, and pipelines. See Introducing Genie Code.
There is in-product feedback built in... Databricks documents the Useful/Not useful controls directly under Genie Code answers in Use Genie Code. If this is causing code corruption or unexpected edits, I would also recommend raising it through their normal Databricks support channel with as much detail as possible.
Once I have additional information (such as an example), I'm happy to raise this internally.
Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***