mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 19:05:11 +00:00
fix(coding-agent): preserve editor content during tree navigation summarization (#1169)
Do not overwrite editor text with the rewound user message after navigateTree completes if the user has already typed something during the summarization wait. Applies to both the /tree selector and the extension-driven navigateTree handler. docs: update changelog for PR #1169
This commit is contained in:
parent
86b43c8eac
commit
fe1d0ae7f3
2 changed files with 3 additions and 2 deletions
|
|
@ -1051,7 +1051,7 @@ export class InteractiveMode {
|
|||
|
||||
this.chatContainer.clear();
|
||||
this.renderInitialMessages();
|
||||
if (result.editorText) {
|
||||
if (result.editorText && !this.editor.getText().trim()) {
|
||||
this.editor.setText(result.editorText);
|
||||
}
|
||||
this.showStatus("Navigated to selected point");
|
||||
|
|
@ -3443,7 +3443,7 @@ export class InteractiveMode {
|
|||
// Update UI
|
||||
this.chatContainer.clear();
|
||||
this.renderInitialMessages();
|
||||
if (result.editorText) {
|
||||
if (result.editorText && !this.editor.getText().trim()) {
|
||||
this.editor.setText(result.editorText);
|
||||
}
|
||||
this.showStatus("Navigated to selected point");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue