fix: esc w/ queued messages overwrites draft in composer (#4237)

Instead of overwriting the contents of the composer when pressing
<kbd>Esc</kbd> when there's a queued message, prepend the queued
message(s) to the composer draft.
This commit is contained in:
Jeremy Rose authored and GitHub committed 2025-09-25 10:07:27 -07:00
1 parent d61dea6fe6
commit 103adcdf2d
4 files changed
+43 -3

No files matched your search

@@ -264,7 +264,6 @@ impl ChatComposer {
}
/// Get the current composer text.
#[cfg(test)]
pub(crate) fn current_text(&self) -> String {
self.textarea.text().to_string()
}
-1
View File
@@ -262,7 +262,6 @@ impl BottomPane {
}
/// Get the current composer text (for tests and programmatic checks).
#[cfg(test)]
pub(crate) fn composer_text(&self) -> String {
self.composer.current_text()
}