diff options
| author | sigoden <sigoden@gmail.com> | 2025-07-04 07:34:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-04 07:34:44 +0800 |
| commit | 8832484272002b4f0f23333523b360ee967b6be9 (patch) | |
| tree | 2ad0f8975934f7dc8fcad7a58a9d22afe5faa98b /src/config/mod.rs | |
| parent | a833512c19f501f1bea84166e6e41b97274f530b (diff) | |
| download | aichat-8832484272002b4f0f23333523b360ee967b6be9.tar.gz | |
feat: enhence `.regenerate` (#1340)
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 2 |
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())); |
