FR: spy on a session

Aperta
#363 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia tracciando il modo in cui shpool rappresenta lo stato del terminale e genera l'output durante la ripresa di una sessione. Definisci il punto di ingresso in sola lettura più piccolo che esponga lo snapshot corrente senza riprendere la sessione né collegarvisi, incluso il comportamento mentre un altro client è collegato. Il lavoro è completato quando un comando può recuperare lo stato renderizzato corrente della sessione senza modificarla.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

AI Policy Ack
Ack

What new feature do you want?
Since shpool keeps an in-memory representation of the terminal state, it would be great if there were a command to "spy" on the session – to get the same output shpool would generate at session resume, without actually resuming the session.

This is similar to #40 but is a smaller ask (read-only snapshot of current state). Of course, if #40 was implemented, this could potentially be done via read-only attach then detach again as soon as the initial re-render is finished. But possibly this feature could be implemented without without doing #40, and with significantly less work than #40 would require.

Use case: I have a web app which shows running sessions and let's me launch a new one. (It doesn't attach to them, I need to use a terminal emulator for that.) It would be great if I could "peek" from the web app at the current state of the session (say it is running some long-running AI agent, I want to see what the agent is doing). Maybe I'm already attached to the session from a terminal emulator on my laptop sitting on my desk, but I'm checking the webapp from my phone...

Lingua principale
Rust
Stelle
2k
Fork
70
Merge medio
2g 3h
PR unite (30g)
6

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 shell-pool/shpool

Tutte le issue di shell-pool/shpool

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.