AI Studio is doing more than I asked for

Ok,

Let’s address your issues one by one @Katje

1. File Deletion in “server_code” Folder
Can you be specific on what actions in your workflow triggered wiping out contents.. Please elaborate on this and I will try to reproduce on my end.

2. Unwanted Proxies for API Calls
If your OpenAI spec points to a direct endpoint, AI Studio should not introduce a third-party proxy unless explicitly instructed. I’ll flag this behavior so our team

To ensure direct calls, as a temporary fix, can you remove or override proxy logic in the generated code or add a clear directive such as:

Do not use any proxy service. Always call the Web API directly.

This instruction in your project prompt can reinforce this instruction.

3. User-Provided API Keys Being Ignored
The sandbox’s tendency to ignore runtime-provided keys (especially for Gemini) is a known limitation. Sandbox environments use project-level credentials by default for security reasons.

I’ll attach your feedback directly to that internal discussion to help them consider your feature request for future sandbox upgrades.

4. Unintended behavior
To improve control use more direct prompts like:

“Fix only the API call logic; do not touch any other part of the code.”
“Create this feature, validate with me and perform code change.”

Explicitly providing prompts like these can help manage its behavior.

4. Coding Checkpoints
I will raise this to the concerned team as well.

Thanks for sharing your feedback and observations @Katje.. Keep exploring and keep sharing your experience.. Our team is constantly learning from feedbacks like yours and use them to improve our products..

So thanks again for posting :slight_smile: