From 74e20547edd3c4038e39fbcc3817358a4d85e375 Mon Sep 17 00:00:00 2001 From: lotherk Date: Fri, 13 Nov 2026 21:16:15 +0000 Subject: [PATCH] test_agents_ui: a fresh tmux name for the German session; starter says Xresources Reusing the session name right after kill-session raced: the typed line went to the dying pane and the test reported a missing answer. One run in four. The starter config names the default theme, so --init-config does not send people a palette they did not ask for. Co-Authored-By: Claude Opus 5.5 --- src/config.c | 2 +- tests/test_agents_ui.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index e71770b..5d14514 100644 --- a/src/config.c +++ b/src/config.c @@ -861,7 +861,7 @@ sp_config_write_example(const char *path, struct sp_buf *err) "\n" "core {\n" " default = local # a provider or pool below; -m overrides\n" - " theme = Delphinium # splinter --list-themes\n" + " theme = Xresources # or a CDE palette, --list-themes\n" " autonomous = false # true: run mutating tools without asking\n" " #locale = de\n" " steps = 150 # tool rounds per turn\n" diff --git a/tests/test_agents_ui.sh b/tests/test_agents_ui.sh index 1e07101..3e6ac88 100644 --- a/tests/test_agents_ui.sh +++ b/tests/test_agents_ui.sh @@ -64,8 +64,12 @@ tmux send-keys -t $S -l 'nochmal' tmux send-keys -t $S Enter check "build asks for consent" shows 'y/n\|allow\|approve\|Allow\|Approve' -# the language follows LANG (de_DE -> de), and no catalogue key shows through +# the language follows LANG (de_DE -> de), and no catalogue key shows through. +# A fresh session name: reusing one right after kill-session races, and a lost +# keystroke looked like a rendering bug. tmux kill-session -t $S 2>/dev/null +S=sp-agents-de-$$ +trap 'tmux kill-session -t $S 2>/dev/null; kill $F 2>/dev/null; rm -rf "$D"' EXIT tmux new-session -d -s $S -x 120 -y 30 -c "$D/proj" \ "env -u SPLINTER_LOCALE LANG=de_DE.UTF-8 HOME=$D/home SPLINTER_USAGE_DIR=$D/u \ SPLINTER_COOLDOWN_DIR=$D/c $PWD/splinter --no-config \