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
2025-09-25 10:07:27 -07:00
committed by GitHub
parent d61dea6fe6
commit 103adcdf2d
4 changed files with 43 additions and 3 deletions

View File

@@ -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()
}

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()
}