mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-20 09:24:08 +00:00
fix: reset doc and persona values on submit
This commit is contained in:
parent
b22a261650
commit
e6b53a5079
1 changed files with 2 additions and 0 deletions
|
|
@ -268,6 +268,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
.anyMatch(it -> it.getSuggestion() instanceof DocumentationActionItem);
|
||||
if (addedDocumentation != null && appliedInlayExists) {
|
||||
message.setDocumentationDetails(addedDocumentation);
|
||||
CodeGPTKeys.ADDED_DOCUMENTATION.set(project, null);
|
||||
}
|
||||
|
||||
var addedPersona = CodeGPTKeys.ADDED_PERSONA.get(project);
|
||||
|
|
@ -275,6 +276,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
.anyMatch(it -> it.getSuggestion() instanceof PersonaActionItem);
|
||||
if (addedPersona != null && personaInlayExists) {
|
||||
message.setPersonaDetails(addedPersona);
|
||||
CodeGPTKeys.ADDED_PERSONA.set(project, null);
|
||||
}
|
||||
|
||||
sendMessage(message, ConversationType.DEFAULT);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue