fix(paste): defer large-paste @file consolidation to submit time (#2168)

This commit is contained in:
dongchao
2026-05-26 23:31:21 +08:00
committed by GitHub
parent 0611b86863
commit 60a3069705
+2 -2
View File
@@ -3152,7 +3152,7 @@ impl App {
// safety-net at submit time so any other code path that fills
// self.input above the cap still consolidates rather than
// silently truncating.
self.consolidate_large_input_if_oversized();
// self.consolidate_large_input_if_oversized(); // deferred to submit time
}
pub fn insert_media_attachment(&mut self, kind: &str, path: &Path, description: Option<&str>) {
@@ -4279,7 +4279,7 @@ impl App {
self.input = format!("@{rel_path}");
self.cursor_position = char_count(&self.input);
self.push_status_toast(
"Large paste consolidated — sent as @mention",
"Large paste consolidated — auto-wrote to file and replaced with @mention. The text is still fully accessible to the model.",
StatusToastLevel::Info,
Some(5_000),
);