summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-02-08 08:58:08 +0800
committerGitHub <noreply@github.com>2025-02-08 08:58:08 +0800
commit696f7659eb671a32bb9bb93d47ff025e8012a2e2 (patch)
tree02ea535b66895e2930c5a05398a70f18d503648d
parenteb527ea758b49adbc1e311638cc6999190ff1124 (diff)
downloadaichat-696f7659eb671a32bb9bb93d47ff025e8012a2e2.tar.gz
fix: messages with tool_calls have not been saved to messages.md (#1156)
-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 38f2f79..78f1e64 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -2072,7 +2072,7 @@ impl Config {
return Ok(());
}
let mut file = self.open_message_file()?;
- if output.is_empty() || !self.save {
+ if output.is_empty() && input.tool_calls().is_none() {
return Ok(());
}
let now = now();