Improve Code Editor Efficiency: Avoid Full Code Regeneration on Edits

Hello OpenAI team,

I’d like to suggest a feature enhancement for the ChatGPT code editor.

Currently, when requesting a small change in a code block, the assistant regenerates the entire script, even when only a single line or section is affected. This results in unnecessary processing and makes collaboration on longer scripts more cumbersome.

It would be much more efficient — both in terms of user experience and compute resources — if the model could apply incremental changes to the existing code. For instance, if I ask to modify a function or fix a bug in a specific section, it would be ideal for only that part to be updated, leaving the rest untouched.

This would:

Prevent the loss of context or comments outside the modified area.

Enable users to work more effectively on large scripts without version confusion.

Save significant compute time and cost, especially for long or complex code files.

Looking forward to your thoughts on this!

Best regards,
Sam

1 Like