tests: keep their sessions out of ~/.splinter

`make check` created a session for every splinter invocation that did not set
HOME - the A2A and gateway scripts pass --no-config, which does not change the
session directory. The user's ~/.splinter collected hundreds of "hallo",
"fehler" and "auth ohne token" sessions; the last three in /sessions were test
noise that looked like aborted chats.

- SPLINTER_SESSION_DIR overrides the session directory (o->session_dir still
  wins when a caller names one, so test_engine keeps its temp dir).
- make check exports a mktemp session dir and removes it on exit; the scripts
  that inspect $D/home/.splinter point the variable there.
- docs/CONFIG documents the variable.
- the existing test sessions were moved to
  ~/.splinter/test-sessions-2026-11-18 (not deleted) so /sessions shows the
  real conversations again.

make check: all tests passed; ~/.splinter kept 211 sessions before and after.
This commit is contained in:
lotherk committed 2026-11-18 06:48:01 +00:00
1 parent ddf0ec5462
commit 4be6e26f78
10 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -245,7 +245,7 @@ lies about what it does.
| `max_bytes` | conversation budget in bytes, `0` = no limit |
| `compact_threshold` | context tokens past which the next request is compacted (`0` = off) |
| `compact_target` | the size compaction aims for, in tokens; `/compact [tokens]` forces it now |
| `session_dir` | where session logs go (default `~/.splinter`) |
| `session_dir` | where session logs go (default `~/.splinter`); `SPLINTER_SESSION_DIR` overrides it, which is how `make check` keeps its test sessions out of yours |
| `system_prompt` | sent once at the start of a conversation |
| `telegram_allow` | user ids the gateway answers, comma-separated; empty means nobody |
| `skills_dir` | a directory of skills, one line each |