Konrad, 24.11.: "v1 geht durch ohne irgendwas. ich will auch keine approvals
generell. ich will nur das der user mit ask nach sachen gefragt werden kann."
Removed the whole approval apparatus, not just the prompt:
- agent.c: the decision point (sp_host_gate/approve callbacks), the
pause/resume path (has_pending, pending_from, sp_agent_resume), ack_approval,
ask_operator and the ack stdin thread are gone. A tool runs; its exit status
is the observation. sp_tool_policy (allow/deny per profile) stays - that is
the operator's own configuration, not a question to the operator.
- engine.c: SP_EV_APPROVAL, sp_engine_approve, the approve_pending condition
variable and the `approval`/`approve` protocol commands are gone.
- openai_server.c: the v1 endpoint runs gw_* tools without a gate; the
autonomous flag is no longer part of sp_gateway_opts.
- a2aserver.c: INPUT_REQUIRED and the resume-by-taskId path are gone; CancelTask
stays. An A2A caller has no operator sitting in front of a prompt.
- mcpserver.c: --autonomous no longer gates mutating tools; the flag and the
config key are accepted for compatibility and documented as changing
nothing.
- telegram.c: tg_approve and the approval callback are gone; ask is the only
dialog, and /cancel inside it still ends the turn.
- front ends: protocol.c, curses.c, ui_local.c, ui_remote.c, client.c lose the
approval event and the waiting flag.
- ack.c stays: it is a plugin API (plugins/kids asks its parent through it),
not splinter's own gate. --ack is documented as such.
Tests: test_pause.c guarded the pause and now guards the opposite (a mutate and
a destructive tool run, nothing is asked). test_a2a_input.sh, test_protocol.sh,
test_ui.sh, test_agents_ui.sh, test_gateway.sh, test_gateway_openai.sh,
test_agent.c and test_mcpsession.sh were rewritten the same way;
splinter_approve must now be absent from the MCP tool list. Every rewritten
test was run red against the old behaviour where that was possible.
make check: all tests passed (428 s)
make check-asan: all 47 test binaries clean
make check-tsan: all 47 test binaries free of data races
Another harness's conversation is not a session until splinter can resume
it. plugins/foreign reads the three stores that already exist on the
machine - ~/.claude/projects/<slug>/<id>.jsonl, <root>/state.db (and
profiles/*/state.db) and opencode.db's session_v2/session_message - and
offers four tools plus /foreign:
list, search TEXT, read SOURCE ID, import SOURCE ID
The stores are read with sqlite3 -readonly: an import copies, it never
moves. Reasoning blocks are dropped on the way in, because a provider does
not accept another model's thinking as evidence. Tool calls arrive with
their results in place, which is what makes the imported session worth
resuming instead of retyping.
import writes a real splinter session: the conversation as a replayable
jsonl, and a .meta with the source's title, its start time and *its*
working directory. So /open continues it in the chat,
--session-id <id> --resume in a shell, and -c finds it in the directory the
conversation actually ran in. The marker foreign=<source>:<id> survives
every later reopen, which needed the core's .meta sidecar to carry keys it
does not own.
Building this found nine bugs, each one seen red before it was green:
- four use-after-frees: mcp_arg_string returns a pointer *into* the parse
tree, read after mcp_json_free. That garbage in `only`/`src` was why a
list of three stores answered "no sessions" and named AÃ_Â¥U.
- sql_json took "no rows" for a failure (NULL), so every empty answer
looked like a broken database.
- args_split never terminated its buffers: /foreign list became
"unknown subcommand 'list('".
- path_join(dir, id, ".meta") built dir/id/.meta, so the sidecar landed
in a subdirectory.
- claude_slug_dir had the sign inverted and returned -1 for every
non-empty cwd, so the project directory was never found.
- sp_session_open overwrote cwd with getcwd() on *every* open, though the
comment beside it promised the opposite: imports claimed the directory
they were imported from and -c then picked the wrong session.
- hermes_text ran strncmp(p, "\x00json:", 6) on an empty content, a
one-byte allocation - heap-buffer-overflow, found by ASAN. The marker is
stripped in SQL anyway.
- hermes_calls never freed the root node on the object path (5456 bytes
over 42 allocations).
- list_any reported strerror(errno) with errno never set: a real file with
the wrong schema read as "No such file or directory". The SQL reason is
passed through now.
Checked end to end against the stores on this machine: claude 64 sessions,
opencode 25, hermes 0 (both hermes databases here are empty, count(*) = 0).
A real opencode session of 150 messages reads back with its tool output; one
of 75 imports with the right cwd and title, --resume sends its history, and
-c from the source directory opens it.
tests/sh/port.sh comes along: the shell tests guessed a port with
20000 + $$ % 30000 and on 2026-11-21 landed on one dtsession held. The fake
died, curl got an answer from dtsession, and twenty checks blamed the
gateway. They ask the kernel for a free port now.
--interview opened the chat and then waited: the system prompt told the model
to interview the operator, but nobody sent a turn. The UI now sends the same
kickoff the Telegram daemon sends, and with piped input --interview runs that
one turn instead of waiting for a profile.
The default theme is the flat light one, and the language is English unless a
config or SPLINTER_LOCALE says otherwise - the desktop's LANG no longer
decides what the tool speaks.
`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.
test_agents_ui.sh ran on whatever server $TMUX pointed at, so a run inside
somebody's tmux created and typed into sessions there -- keys went into the
session the person was working in. It now drops $TMUX, points TMUX_TMPDIR at
its temp dir and refuses to signal a server it did not start, the way
test_ui.sh already did. test_a2a_ui.sh gets the same guard for its
kill-server.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 <noreply@anthropic.com>
The chat is now the whole screen and the input line the row below it: no
sidebar, no status bar. Entries are append only -- a growing answer stays in
its entry while it is the last one and continues in a new entry once a tool
line follows, so nothing that was on screen ever moves. The prompt carries
the agent name ("build> "), /widgets shows what plugins published, and
/status still prints the status segments.
The default theme is Xresources: *foreground, *background and *color0..15
from xrdb -query (or ~/.Xresources), falling back to the terminal's own
colour indices. Every CDE palette is a theme by its own name, painted the
way the desktop paints it (set 5 windows, set 4 text areas, set 6 dialogs,
set 1 active frame, set 2 inactive frame) with CDE's black-or-white rule.
"Default" is therefore the CDE Default palette again, which is what the
config asked for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- openai transport sends x-opencode-session (opencode-go refused every request
without it) and a splinter user agent
- the message catalogues are compiled in: an installed binary no longer shows
raw keys (ui.ready ...); LANG=de_DE now selects German (lang was emptied by an
overlapping snprintf), pt_BR is matched
- sidebar rewritten (agent, provider/model, usage, goal/plan, last turn);
idle widgets say nothing; status line shows only what matters
- tool calls shown readable instead of JSON with \u escapes
- providers without their key variable are skipped by pools and refused by -m
with a clear message; --doctor checks every provider
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
build (all tools) and plan (read-only plus delegate/plan_task) are built in; a
markdown file with opencode-style front matter (description, model, tools,
allow, deny, autonomous) adds or replaces one. Tool policy is enforced in the
agent loop, the prompt is added to the system message, /agent and --agent.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>