From 60a30697055bab137ec0dd4441b9f1443c2cdf9a Mon Sep 17 00:00:00 2001 From: dongchao <2193993758@qq.com> Date: Tue, 26 May 2026 23:31:21 +0800 Subject: [PATCH] fix(paste): defer large-paste @file consolidation to submit time (#2168) --- crates/tui/src/tui/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/tui/src/tui/app.rs b/crates/tui/src/tui/app.rs index a8975c5b..884242c4 100644 --- a/crates/tui/src/tui/app.rs +++ b/crates/tui/src/tui/app.rs @@ -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), );