Add multi-session tabs without breaking the single-GPU model
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 28/100
Direzione di ricerca
Start with the existing session tree and /resume code, since the issue builds on them, and check how the --print and --no-session flags select single-session mode. Design the tab state (session, model, profile, scroll, draft) and the one-streaming-turn rule before touching the TUI. Done means two tabs keep separate sessions and drafts, a second turn queues while one streams, closing an active tab persists partial output, and headless mode is unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
One process has one active session. A user working on two tasks must quit, resume, quit, resume, losing scroll position and any in-flight turn. Editors solved this with tabs; terminal agents are starting to.
LocalHarness targets one local GPU, so tabs cannot mean parallel generation. They must mean fast switching, with a hard rule that only one turn streams at a time.
Inspiration
- OpenCode session switching.
- Crush multi-session UI.
- Zed's multi-buffer/tab model.
- The existing session tree and
/resumemachinery.
Proposal
Add tabs (Ctrl+T new, Ctrl+W close, Ctrl+Tab next):
- Each tab holds its own session, model, profile, scroll position and input draft.
- Only the focused tab may stream; starting a turn in another tab either queues or asks to cancel the active one. Default: queue one turn per tab, run sequentially.
- Closing a tab with an active turn asks first; the partial assistant output is persisted.
- A tab bar shows project, model, dirty state and turn status.
- Memory cap: at most N tabs (default 4), each with a context estimate; refuse a new tab when the sum exceeds the configured budget.
--printand--no-sessionstay single-session.
Acceptance criteria
- Two tabs keep independent sessions, drafts and scroll positions.
- Starting a second turn while one streams queues instead of running concurrently.
- Closing an active tab asks and persists partial output.
- The tab bar shows model and turn state.
- The tab cap is configurable and enforced.
- Headless mode is unchanged.
- Lingua principale
- Rust
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GotinhaAzul/LocalHarness
-
area: ux bug priority: P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
GotinhaAzul/LocalHarness#198 ·
-
area: tools area: ux enhancement priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 56/100
GotinhaAzul/LocalHarness#201 ·
-
area: ux bug priority: P2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
GotinhaAzul/LocalHarness#200 ·
-
area: ux bug priority: P2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GotinhaAzul/LocalHarness#199 ·
-
area: ux enhancement priority: P2
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
GotinhaAzul/LocalHarness#197 ·
Tutte le issue di GotinhaAzul/LocalHarness
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
zed-industries/zed#67561 ·
I maintainer di solito rispondono entro 1 giorno
-
bug has: workaround PR welcome! T: CI/CD
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
chore priority:low ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jdrouet/catapulte#882 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100