ChatGPT supports editing Python code directly inside conversations, which is particularly useful for interactive programming lessons.
However, after editing a code block, users still need to send a separate chat message asking ChatGPT to review their changes.
Proposed improvement:
Add a Submit / Check Code button that appears when a user modifies an editable code block.
Clicking the button should:
- Submit the latest edited code to ChatGPT.
- Trigger a review against the current task or challenge.
- Return feedback on correctness, errors and suggested improvements.
- Preserve the edited code so users can make corrections and resubmit.
Why this matters:
For interactive learning, particularly programming exercises, this would create a much more natural workflow:
Read challenge β Edit code β Click Check β Receive feedback β Retry.
It would eliminate unnecessary chat messages and make ChatGPT significantly more effective as an interactive programming tutor.
Ideally, the button would submit the code for review without automatically executing it, keeping code review and code execution as separate actions.