Attaching to existing tmux sessions always creates a new session (named e.g. _session-18419)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Low
|
Unassigned |
Bug Description
Related Stack Exchange question (I'm glad I found this, I thought my Byobu config was broken somehow):
https:/
-----
When using the `tmux` backend for Byobu, attaching to an existing session (by running `byobu`) asks you to select one of the sessions (via `byobu-
```
Byobu sessions...
1. tmux: foo: 3 windows (created Sun Jan 28 10:23:59 2018) [204x53] (group foo)
2. tmux: ba: 1 windows (created Sun Jan 28 10:24:16 2018) [204x53]
3. Create a new Byobu session (tmux)
4. Run a shell without Byobu (/bin/bash)
```
Selecting one the sessions creates a new session named e.g. "_foo-20462", which is a "copy" of the existing session (same windows).
Reverting the `os.execvp()` line in the `attach_session()` function of `select-session.py` fixes the issue:
https:/
...but I assume that also removes support for "tmux grouped sessions". I can live without those (I don't really even know what they are), but Byobu creating a new session every time I attach to a session is a bit annoying.
What exactly are "grouped sessions" (I didn't quite get the idea from `man tmux`)?
Could this be a configurable option in Byobu? Creating a new session every time I attach seems like odd default behavior.
Related branches
Changed in byobu: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in byobu: | |
status: | Confirmed → Fix Released |
I am having this bug, but do you think this is also the cause of the sessions being wiped after disconnecting / reconnecting ? (using f6)
i am having situations like this:
mark@kramidnarg:~⟫ tmux list-sessions
1: 1 windows (created Tue Apr 24 14:12:50 2018) [195x32] (attached)
***create 3 tabs***
mark@kramidnarg:~⟫ tmux list-sessions
1: 3 windows (created Tue Apr 24 14:12:50 2018) [195x32] (attached)
***f6***
***reconnect***
mark@kramidnarg:~⟫ tmux list-sessions
1: 1 windows (created Tue Apr 24 14:13:21 2018) [195x32] (attached)
***f6***
***reconnect***
***type command, open 3 tabs***
mark@kramidnarg:~⟫ tmux list-sessions
1: 3 windows (created Tue Apr 24 14:13:37 2018) [195x32] (attached)
mark@kramidnarg:~⟫
***f6***
***reconnect***
mark@kramidnarg:~⟫ tmux list-sessions
1: 3 windows (created Tue Apr 24 14:13:37 2018) [195x32] (group 1)
_1-27493: 3 windows (created Tue Apr 24 14:14:02 2018) [195x32] (group 1) (attached)
***f6***
***reconnect***
mark@kramidnarg:~⟫ tmux list-sessions
1: 1 windows (created Tue Apr 24 14:14:17 2018) [195x32] (attached)