Add multi-session tabs without breaking the single-GPU model

Aperta
#67 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
ai, cli

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

area: agent-loop area: ux enhancement Might look Later priority: P2

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 /resume machinery.

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.
  • --print and --no-session stay 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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.