Files
splinter/docs
lotherk 6166acfdea config: a leading ~ is the home directory
The shipped --init-config template suggests "session_dir = ~/.splinter" and
"tools_root = ~/src". Nothing expanded "~": no shell is involved in reading
the file, so the first created a directory literally named "~" in the cwd and
the second made the tool fence match nothing.

set_path() now expands a leading "~/" (or a bare "~") for the settings that
name a place on disk: session_dir, state_dir, skills_dir, tools_root. A
"~user" form is left alone rather than half-guessed.

Verified: the template with both lines uncommented starts, writes its sessions
under $HOME and leaves no "~" directory behind; tests/test_config covers the
expansion (3 checks red without it, green with it); make check: all tests
passed.
2026-11-23 16:55:49 +00:00
..