mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-11 13:10:50 +00:00
fix: reset doc and persona values on submit
This commit is contained in:
parent
0c89dc7793
commit
cfe5cdb297
1 changed files with 2 additions and 0 deletions
|
|
@ -266,6 +266,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);
|
||||
|
|
@ -273,6 +274,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