aboutsummaryrefslogtreecommitdiffstats
path: root/src/session.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-15 18:54:00 +0100
committersalmonik <salmonik@tuta.io>2026-11-15 18:55:21 +0100
commit53c85c99647ded9fab199c97b9383744e2524364 (patch)
tree0c4bad8cad75bd4d00e2eff5374c10a42a31210b /src/session.rs
parent0.7.1: drop argument-less tool calls, print each command once (diff)
downloadagent686-53c85c99647ded9fab199c97b9383744e2524364.tar.gz
agent686-53c85c99647ded9fab199c97b9383744e2524364.zip
0.8.0: comp.sh reports how to build for the machine it runs on
Detects distro, arch, libc/glibc, CPU baseline and toolchain, prints the target triple, build command, cfg values, and the portable paths (static musl, older glibc image, cargo-zigbuild). --run builds and checks; --musl and --old-glibc select the other plans. Verified: native gnu build needs GLIBC_2.34; static musl build runs on Debian 10 and reaches the live API.
Diffstat (limited to '')
-rw-r--r--src/session.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/session.rs b/src/session.rs
index 8e0ef02..a1da28f 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -131,7 +131,6 @@ impl Session {
131 pub fn open(id: &str) -> Result<(Session, Value, Vec<Value>), String> { 131 pub fn open(id: &str) -> Result<(Session, Value, Vec<Value>), String> {
132 let path = sessions_dir().join(format!("{id}.jsonl")); 132 let path = sessions_dir().join(format!("{id}.jsonl"));
133 let raw = std::fs::read(&path).map_err(|e| format!("{}: {e}", path.display()))?; 133 let raw = std::fs::read(&path).map_err(|e| format!("{}: {e}", path.display()))?;
134 let _ = File::open(&path);
135 134
136 let mut model = String::new(); 135 let mut model = String::new();
137 let mut system = Value::Null; 136 let mut system = Value::Null;