summaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-07-04 07:34:44 +0800
committerGitHub <noreply@github.com>2025-07-04 07:34:44 +0800
commit8832484272002b4f0f23333523b360ee967b6be9 (patch)
tree2ad0f8975934f7dc8fcad7a58a9d22afe5faa98b /src/config/mod.rs
parenta833512c19f501f1bea84166e6e41b97274f530b (diff)
downloadaichat-8832484272002b4f0f23333523b360ee967b6be9.tar.gz
feat: enhence `.regenerate` (#1340)
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 04ae4ef..242826b 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -2051,7 +2051,7 @@ impl Config {
output: &str,
tool_results: &[ToolResult],
) -> Result<()> {
- if output.is_empty() || !tool_results.is_empty() {
+ if !tool_results.is_empty() {
return Ok(());
}
self.last_message = Some(LastMessage::new(input.clone(), output.to_string()));