From cfe34a806ed8b9d71b74fff664da41e611a095e9 Mon Sep 17 00:00:00 2001 From: Julian Montez Date: Fri, 18 Sep 2026 04:15:15 -0400 Subject: [PATCH] Keep tmux restores current and sized to the attaching terminal tmux-dotbar loaded after tmux-continuum and overwrote status-right, dropping continuum's autosave hook. Saves stopped on Sep 8, so every new server restored that stale snapshot. Load continuum last. The bare `tmux` wrapper attached with `new-session -A`, leaving any older, smaller client attached; with window-size latest that pinned windows to the small size. Add -D to detach other clients on attach. Co-Authored-By: Claude Opus 5 --- tmux/.tmux.conf | 4 +++- zsh/.zshrc | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7beb9e7..a37781b 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -133,8 +133,10 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-pain-control' set -g @plugin 'tmux-plugins/tmux-resurrect' -set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'vaaleyard/tmux-dotbar' +# continuum autosaves by appending a hook to status-right, so it must load +# after anything that sets status-right (dotbar) or saves silently stop. +set -g @plugin 'tmux-plugins/tmux-continuum' set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-strategy-nvim 'session' diff --git a/zsh/.zshrc b/zsh/.zshrc index c1ba9a8..340109d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -36,9 +36,11 @@ export CLAUDE_CODE_NO_FLICKER=1 # ---- aliases / wrappers ---- # Attach to or create the 'main' session when invoked bare; pass through otherwise. +# -D detaches any other client first: with window-size latest, a stale smaller +# client (old tab/split) would otherwise pin windows to its size. tmux() { if (( $# == 0 )); then - command tmux new-session -A -s main + command tmux new-session -A -D -s main else command tmux "$@" fi