summaryrefslogtreecommitdiffstats
path: root/src/config/agent.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-08-30 20:00:07 +0800
committerGitHub <noreply@github.com>2024-08-30 20:00:07 +0800
commitd8d52b60d6dba47a0c318e68172e2d28e5351385 (patch)
treee67fd41faa1eaea83d8956754b3bffb1ea07d466 /src/config/agent.rs
parent4bbf4796169e2840b59dc29cbc6fb36e7959d24d (diff)
downloadaichat-d8d52b60d6dba47a0c318e68172e2d28e5351385.tar.gz
feat: save temp session with `temp-<timestamp>` if `save_session: true` (#811)
Diffstat (limited to 'src/config/agent.rs')
-rw-r--r--src/config/agent.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/config/agent.rs b/src/config/agent.rs
index 25e128c..bf4ef54 100644
--- a/src/config/agent.rs
+++ b/src/config/agent.rs
@@ -420,14 +420,7 @@ fn builtin_variables() -> Vec<(&'static str, String)> {
("__arch__", env::consts::ARCH.to_string()),
("__shell__", SHELL.name.clone()),
("__locale__", sys_locale::get_locale().unwrap_or_default()),
- (
- "__now__",
- time::OffsetDateTime::now_utc()
- .format(simplelog::format_description!(
- "[year]-[month]-[day]T[hour]:[minute]:[second].[subsecond digits:3]Z"
- ))
- .unwrap_or_default(),
- ),
+ ("__now__", now()),
(
"__cwd__",
env::current_dir()