CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

fix: make EditCode independent from chat interface ChatMode (#1086)

Open marcoscale98 opened this issue 5 months ago • 1 comments

Summary

  • EditCode now always uses EDIT mode (no backticks) regardless of the chat interface ChatMode setting
  • Fixes issue #1086 where backticks were being added to output despite system prompt settings
  • Makes EditCode functionality consistent and independent from chat interface

Changes

  • Modified EditCodeSubmissionHandler.kt to hardcode ChatMode.EDIT
  • Removed dependency on global ChatMode configuration for EditCode
  • Added explanatory comments for the design decision

Test plan

  • [x] Verified EditCode now uses EDIT mode prompt (no backticks)
  • [x] Confirmed EditCode works independently from chat interface ChatMode setting
  • [ ] Tested that chat interface ChatMode toggle still works for regular chat"

marcoscale98 avatar Aug 01 '25 10:08 marcoscale98

I'm not exactly sure how this is going to fix the backtick problem during inline editing. The given modes (ask, edit) are only used for Chat.

carlrobertoh avatar Sep 03 '25 09:09 carlrobertoh