How to not break existing features?

I’m developing a language learning app, where I have Imagen generate an image, and then ask questions about it. But as I describe more features to add, it keeps breaking older features that seem completely unrelated. Is there some way I can compact what’s already been discussed into a feature list that gets sent along with every prompt? I’ve tried asking the model directly, and it’s started implementing a test suite, but that doesn’t seem very effective in preserving existing functionality.

@Frederik

welcome to the community,

try describing what you are doing and what you expect in the system prompt,

you can also periodically summarize and re iterate the expected behaviour to reenforce the expected behaviour