Files
splinter/tools
lotherk 5de70f5dbb gateway, ui: /new starts a fresh conversation; /connect in the TUI
/new (and /reset) opens a new session file in the same directory, drops the
conversation back to the system prompt and, in the gateway, resets the
interview/connect state so a half-finished flow does not survive the reset.
The old session file stays: it is the record of what was said. In the TUI the
history pane is cleared, because it shows the old conversation. The directory
is read before the static session struct is cleared, or the second /new would
start from an empty path.

/connect exists in the TUI now: the same four questions, one answer per line,
the same validation and presets, and connect.nodir when the run has no config
file to write to (--no-config).

conv.c grows sp_conv_reset(), which frees every message and puts the system
prompt back.

test_gateway checks /new (message and a new session file); test_ui checks
/new in the pane and the /connect guard with --no-config.
2026-11-10 20:36:08 +00:00
..