Improving session restore functionality
Les mainteneurs répondent en général sous 1 jour
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Overview
Shpool currently has a session restore feature that uses an in-memory terminal emulator implementation to record shell output, and then generate appropriate format codes and data to restore the last known screen state when a user reconnects. There are some issues with the current functionality that we would like to address.
Problem
The current in-memory terminal crate we use, shpool_vt100, has some issues. In particular, it does not use a very memory efficient representation of the terminal, and a lack of correct text wrapping supports means we need to make each line 10k characters long. Worse than the excessive resource consumption though is the fact that not all control sequences are correctly handled, resulting in output being occasionally mangled.
List of control sequences we may consider support:
- #44
- any other?
Potential Solution
Fixing the shpool_vt100 crate and replacing it with a new crate, which could either be written from the ground up or extracted from one of several existing rust terminals.
Currently wezterm-term looks promising, but it is not published to crates.io, and we need more investigation to see if it actually fits shpool's use case.
Other terminals considered:
- Zellij - modern tmux
- Not a full terminal emulator state machine, just relevant control sequences (cursor movements, color, etc) (Terminal Pane and Grid)
- In grid.rs: osc, esc, oci dispatch
- Not a full terminal emulator state machine, just relevant control sequences (cursor movements, color, etc) (Terminal Pane and Grid)
- Tab - terminal workspace tabs, now died, doesn’t seem to have terminal emulation
- No terminal emulator, just enough scrollback buffer management with filtering on a few sequences: https://github.com/austinjones/tab-rs/blob/main/tab-daemon/src/service/pty/scrollback.rs
- https://github.com/asciinema/asciinema Terminal session recorder
- https://docs.asciinema.org/how-it-works/
- Captures all terminal outputs using pty, timestamped and saved to a portable format asciicast.
- no interpretation of control sequences
- handles resize event
WezTerm - terminal emulator and multiplexer
https://github.com/wez/wezterm/tree/main/term
- Alacritty
- its terminal component is published: https://crates.io/crates/alacritty_terminal
- Langage dominant
- Rust
- Étoiles
- 2k
- Forks
- 70
- Merge moyen
- 2 j 3 h
- PR mergées (30 j)
- 6
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de shell-pool/shpool
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
shell-pool/shpool#463 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
shell-pool/shpool#442 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
misc LLM reportsOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 5/100
shell-pool/shpool#454 ·
Les mainteneurs répondent en général sous 1 jour
-
vterm
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
shell-pool/shpool#445 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
publish .deb filesOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
shell-pool/shpool#429 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de shell-pool/shpool
Issues similaires
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
influxdata/influxdb#27767 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
oras-project/rust-oci-client-node#132 ·
Les mainteneurs répondent en général sous 2 jours
-
Ignore entry for RUSTSEC-2020-0168 no longer matches anything (`mach` is no longer in `Cargo.lock`)Peut-être pris @zyl71 l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
Blockstream/lwk#213 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
libracoder/kiri#749 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
manuscript-lang/manuscript#6389 ·
Les mainteneurs répondent en général sous 1 jour