Skip to content

fix(tmux): add detach-on-destroy option to tmux sessions#67

Merged
folke merged 1 commit intofolke:mainfrom
jmarcelomb:main
Oct 5, 2025
Merged

fix(tmux): add detach-on-destroy option to tmux sessions#67
folke merged 1 commit intofolke:mainfrom
jmarcelomb:main

Conversation

@jmarcelomb
Copy link
Copy Markdown
Contributor

Ensure tmux clients automatically detach when a session is destroyed, preventing recursive tmux-in-tmux session loops and ensuring the expected behavior.

Description

If the user has the tmux option:
set -g detach-on-destroy off
When closing the tmux session from the CLI app it is going to enter in an infinite loop of tmux inside tmux.

Screenshots

image

@jmarcelomb jmarcelomb changed the title feat: add detach-on-destroy option to tmux sessions feat(tmux): add detach-on-destroy option to tmux sessions Oct 4, 2025
@jmarcelomb jmarcelomb changed the title feat(tmux): add detach-on-destroy option to tmux sessions fix(tmux): add detach-on-destroy option to tmux sessions Oct 4, 2025
Ensure tmux clients automatically detach when a session is destroyed,
preventing recursive tmux-in-tmux session loops and ensuring the expected behavior.

Signed-off-by: Marcelo Borges <git@marceloborges.dev>
@folke folke merged commit c525b13 into folke:main Oct 5, 2025
2 checks passed
@folke
Copy link
Copy Markdown
Owner

folke commented Oct 5, 2025

ty!

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.

2 participants