Skip to content

feat(attach): number sessions in list, fix a reattach control-char leak - #49

Merged
jayhesselberth merged 1 commit into
mainfrom
numbered-attach
Sep 22, 2026
Merged

jayhesselberth merged 1 commit into
mainfrom
numbered-attach

Conversation

@jayhesselberth

Copy link
Copy Markdown
Member

Summary

  • `list`'s human table gets a leading `#` column (1-based position); `attach` and `cancel` now accept that position in place of a JOBID or NAME (`sinteractive attach 1`), falling back to it only when no running session's job id actually matches the number.
  • Fixes `attach`/launch-and-attach/`__attach` querying the terminal's background colour live right before exec'ing into the zellij client that takes over the same terminal — on a laggy or just-reconnected ssh link, a late OSC 11 reply was landing as literal control characters in the freshly attached pane instead of at a shell prompt.

Test plan

  • `cargo fmt --all --check`
  • `cargo clippy -p sint-core -p sint --all-targets -- -D warnings`
  • `cargo test -p sint-core -p sint` (231 tests)

list's human table gets a leading `#` column (1-based position); attach
and cancel now accept that position in place of a JOBID or NAME
(sinteractive attach 1), falling back to it only when no running session's
job id actually matches the number.

Also stops attach, launch-and-attach and the __attach verb from querying
the terminal's background colour live right before exec'ing into the
zellij client that takes over the same terminal: on a laggy or just-
reconnected ssh link, a late OSC 11 reply was landing as literal control
characters in the freshly attached pane instead of at a shell prompt.
@jayhesselberth
jayhesselberth merged commit 0f0357b into main Sep 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant