feat: extend gateway session patch

This commit is contained in:
Peter Steinberger
2026-01-03 06:16:49 +01:00
parent b86619bcd0
commit 61b67f6301
5 changed files with 175 additions and 1 deletions

26
docs/refactor/tui.md Normal file
View File

@@ -0,0 +1,26 @@
---
summary: "Refactor plan: Gateway TUI parity with pi-mono interactive UI"
read_when:
- Building or refactoring the Gateway TUI
- Syncing TUI slash commands with Clawdis behavior
---
# Gateway TUI refactor plan
Updated: 2026-01-03
## Goals
- Match pi-mono interactive TUI feel (editor, streaming, tool cards, selectors).
- Keep Clawdis semantics: Gateway WS only, session store owns state, no branching/export.
- Work locally or remotely via Gateway URL/token.
## Non-goals
- Branching, export, OAuth flows, or hook UIs.
- File-system operations on the Gateway host from the TUI.
## Checklist
- [x] Protocol + server: sessions.patch supports model overrides; agent events include tool results (text-only payloads).
- [ ] Gateway TUI client: add session/model helpers + stricter typing.
- [ ] TUI UI kit: theme + components (editor, message feed, tool cards, selectors).
- [ ] TUI controller: keybindings + Clawdis slash commands + history/stream wiring.
- [ ] Docs + changelog updated for the new TUI behavior.
- [ ] Gate: lint, build, tests, docs list.