Files
splinter/docs/ROADMAP.md
T
lotherk af2001bfee ui, model, cost and idle timeouts
- lcm: the sidebar widget and /status segment show the context, the number of
  compactions, messages and bytes of the last cut, and how many old tool
  outputs were trimmed. The counters are the compactor's own, not an estimate.
- cost: a provider-reported USD cost (usage.cost/cost_usd) is carried through
  sse/openai, the agent and the engine. /cost reports it with the cache share
  and splits judged from plain turns; the notes say that an upstream judge is
  not visible in the provider's usage. The status plugin and junction prefer
  the reported number over list-price arithmetic.
- curses: the running turn's seconds moved from the input line to the status
  bar. Notes and errors are transcript rows below the cause, never text in the
  input line or the status bar; a failed backend request is a status row and is
  retried by the agent. The steer prompt is only "steer> " and what was typed.
- model: /model probe works in the chat. The picker lists the configuration at
  once, then asks the endpoint the session is on what it serves and adds those
  models, so a router's whole menu is selectable. provider/model selectors now
  apply the right provider instead of becoming a model name. The choice is
  written to <session>.model and restored when that session is reopened; /new
  carries the current model into the new session.
- sidebar: plugin titles are bold and underlined (this curses has no italic
  attribute), with a rule between the plugin blocks.
- run/cli: a command timeout is an idle window. Every chunk on stdout or
  stderr resets it, and the process is asked with waitpid(WNOHANG) whether it
  is still there before the window is extended. A long build that keeps
  reporting progress is no longer killed for being long; a silent hang is.
- config: ';' separates settings on one line, so
  plugin lcm { keep = 6; tool_trim = 8192 } parses as two keys.
- tests: lcm widget/status counters, one-line config blocks, session model
  restore and /model probe, cli idle timeout with a talkative and a silent
  command, run output reset, and the UI status/retry rows.

make check: all tests passed.
2026-11-17 23:21:56 +00:00

111 lines
6.9 KiB
Markdown

# Offene Punkte
Stand: 2026-11-10. Die geprüfte, ausführliche Liste mit Belegen steht in
`TODO.md`.
## Offen
Nichts aus der alten A2A-Liste. Binaere A2A-Teile landen in `inbox/` und
werden dem Modell als Pfad genannt; URL-Teile nur von erlaubten Hosts.
`SubscribeToTask` wiederholt den gespeicherten Zustand einmal und schliesst den
Stream.
## Erledigt
- **Echtes Gateway-Streaming 2026-11-16**: `stream:true` nutzt den
Streaming-Transport des Providers und schickt Text-Deltas sofort als
`chat.completion.chunk`; Caller-Tool-Calls kommen als ein Delta am Ende des
Schritts, `stream_options.include_usage` liefert die summierten Token-Zahlen
vor `[DONE]`. Fehler nach dem ersten Byte kommen als SSE-`error`; SIGPIPE ist
ignoriert. Test: `tests/stream_probe.py` prueft, dass die Chunks waehrend des
Upstream-Streams ankommen (nicht als ein Block am Ende).
- **Session-Titel 2026-11-16**: `.meta` traegt `title` (erste User-Zeile,
ueberschreibbar per `/rename [ID] TITEL`); `sessions` liefert ihn als
`title`, `/sessions` zeigt ihn. `/rm ID` entfernt JSONL, Sidecars und
`logs/<id>` und verweigert die offene Session. Tests: `test_session`,
`test_protocol.sh`, `test_ui.sh`.
- **Nachtrag 2026-11-16**: Session-Wechsel auch im lokalen UI
(`sp_engine_switch`, `/sessions` + `/open` ohne `--attach`), Gateway reicht
`temperature`/`top_p`/`max_tokens` durch, liest chunked Bodies und gibt bei
gemischten Antworten die Caller-Calls zurueck (lokale Beobachtungen im
Content, auch im SSE-Delta); ein beim Reconnect verschwundener Session-Name
wird gemeldet statt still ersetzt; Ring-Transports werden disposed;
`/status` ist uebersetzt; `docs/splinter.1` ist mandoc-sauber.
- **Gateway, Sessions, Reconnect**: `splinter --openai-listen` ist ein
OpenAI-kompatibler Endpunkt; lokale Tools heissen `gw_*` und laufen auf dem
Splinter-Host, die Tools des aufrufenden Harness werden als tool_calls
zurueckgegeben und dort ausgefuehrt (`docs/GATEWAY.md`,
`tests/test_gateway_openai.sh`). `--serve` haelt mehrere Sessions
(`sessions`/`open`, `/sessions`/`/open` im UI), `--attach` verbindet sich
nach einem Serverausfall selbst neu und holt die alte Session per id
(`tests/test_protocol.sh`, `tests/test_reconnect.sh`).
- **Review-Nachlauf 2026-11-16**: 8-KiB-Zeilen in Server/Client/attach durch
dynamische Puffer ersetzt (9-KB-Prompt, 8-KB-Shell-Eintrag), `turn` beendet
nicht mehr das busy-Fenster (Steer-Rest), Curses finalisiert jeden Turn
einzeln, Engine-Steer-Rest wird per `sp_engine_take_steer` uebernommen,
Engine-Statistik als Lock-Snapshot (kein Datenrace), Profil wird in
`<session>.agent` gemerkt (--resume startet wieder in plan), `/new` oeffnet
das Log neu und vergibt eindeutige Ids, Shell-Ausgabe 64 KiB mit Marker,
Socket-Probe/Inode/CLOEXEC/SO_SNDTIMEO, Protokoll v2 mit `history` (attach
zeigt das bisherige Transkript), `same_user` auch fuer BSD, Exit 2 fuer
Konfigurationsfehler, `agent_switch` meldet Aktivierungsfehler, i18n-Checker
scannt src/backend+frontend. `tests/test_protocol.sh` und
`tests/test_attach.sh` decken die neuen Pfade ab; `make check` gruen.
- **Backend und Frontends getrennt**: `src/backend/` traegt Engine, Loop,
Tools, Session, Config und Plugins; `src/frontend/curses.c` zeichnet nur
noch und liest Tasten, `src/frontend/protocol.c` gibt dieselben Events als
JSON-Zeilen auf einem Unix-Socket aus, `src/frontend/client.c` ist der
Referenz-Client (`splinterctl`). Die C-Grenze ist
`include/splinter_engine.h`; das Format steht in `docs/PROTOCOL.md`, die
Aufteilung in `docs/FRONTENDS.md`. Ein GUI-Client kann damit in jeder
Sprache gegen `splinter --serve` gebaut werden. Belege:
`tests/test_engine` (Event-Reihenfolge eines Turns) und
`tests/test_protocol.sh` (Socket, Freigabe, Kommandos, quit).
- Werkzeuge: read, write, edit, search, list, run, websearch, webfetch,
folder_history, delegate (plus parallel/list/submit/jobs/result/due/retry),
skill_search/skill_load, echo, clock
- Freigabe im TUI (Condition Variable), Diff-Anzeige, Ctrl-C killt curl
- Session-Resume, MCP-Client und -Server, Exit-Ring, Delegation mit Modellwahl
- Gateway (Telegram) mit Typing-Indicator und Slash-Commands
- Session-Logs: `~/.splinter/logs/<id>/{session.log,wire.jsonl}`
- Slash-Programme: `~/.splinter/commands/<name>`, Ausgabe geht ans Modell
- **Skills**: `~/.splinter/skills/` + `skills_dir`, `skill_search`/`skill_load`,
kein Vorladen (`test_skills`)
- **Streaming im Gateway**: eigener Callback, damit auch SSE-only-Provider gehen
- **Remote/Jumphost**: `host=` schickt den ganzen Aufruf über ssh; belegt in
`README.md` (olivia, Provider nur über WireGuard erreichbar)
- **Kompression im echten Loop**: `ag->host` ist gesetzt; `test_compactor` fährt
den Turn mit lcm bei 8 KiB und 32 KiB Budget und zählt die Kompressionen
- **Tabellen im Chat**: `src/md.c` erkennt Kopf + Trenner, rechnet Spaltenbreiten
und zeichnet ausgerichteten Text (`test_md`, `test_ui.sh`)
- **Neue Konversation**: `/new` bzw. `/reset` im Gateway und im TUI; neue
Sitzungsdatei, Konversation auf den System-Prompt zurueck
(`test_gateway.sh`, `test_ui.sh`); `/connect` auch im TUI
- **Modelle wechseln und Provider anlegen**: `/model` liest die konfigurierten
Modelle (Haupt-Endpoint, Delegates, Exits), haengt den Transport um, merkt
die Wahl in `<session>.model` und fragt per `/model probe` die Endpoints nach
`/v1/models`; das TUI zeigt im Picker auch die Modelle des Endpoints, auf dem
die Sitzung gerade laeuft. `/connect` schreibt eine validierte
`delegate`-Zeile in den Drop-in neben der benutzten Konfiguration, prueft sie
mit einem Test-Turn und registriert sie im laufenden Prozess
(`test_providers`, `test_gateway.sh`, `test_ui.sh`)
- **A2A-Client mit Dateien**: `a2a_send` schickt eine Nachricht mit `file`-Teil
(base64, 8 MiB), empfangene Dateien landen im Inbox-Pfad (`test_a2a.sh`)
- **A2A-Client-Abo**: `a2a_subscribe` liest die Ereignisse eines fremden Tasks
als Text (Zustand, Nachricht, Artefakte) (`test_a2a.sh`)
- **Bilder als Foto**: Markdown-Bilder gehen als `sendPhoto` raus (Alt als
Caption, Fallback Text), in der Reihenfolge des Textes; lokale Dateien per
Multipart als Foto (10 MiB) oder Dokument (50 MiB) (`test_gateway.sh`)
- **Markdown als Telegram-HTML**: `src/tgmd.c` rendert fett/kursiv/Code/Links/
Zitate/Tabellen in die Tags von `parse_mode=HTML`, escapt alles andere und
teilt lange Antworten an Tag-Grenzen, mit offenen Tags pro Stueck
(`test_tgmd`, `test_gateway.sh`)
- **Website von Hand**: die drei Seiten in `src/www/` sind handgeschrieben,
ohne Generator; Zahlen darin sind Stand 2026-11-11
- **Letzter Delegate-Fehler**: die letzten 400 Bytes des Kindes stehen im Fehler,
ein Limit bencht den Delegate und der nächste übernimmt (`test_delegate`)
- **A2A INPUT_REQUIRED**: ein mutierendes Werkzeug pausiert (`sp_agent_run`
liefert 2), `SendMessage` mit `taskId` und `yes`/`no` setzt per
`sp_agent_resume` fort; `CancelTask` bricht ab (`test_pause`,
`test_a2a_input.sh`)