fix(tmux): load tmux-continuum after oasis so auto-save works - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
tmux-continuum auto-save (every 15 min) silently stopped working. Manual save (prefix + Ctrl-s) worked, but no automatic saves were produced.
Root cause
tmux-continuum triggers saves by injecting
#(.../continuum_save.sh)intostatus-right. TPM loads plugins in the order they are declared in@pluginlines. The embeddedguyide.confdeclaredtmux-continuumbeforetmux-oasis, so:status-rightstatus-rightwith its own modules, wiping the hookResult: the save script never ran.
@continuum-save-last-timestampstayed frozen and no new files appeared in~/.local/share/tmux/resurrect/.Fix
Move the
@plugin tmux-plugins/tmux-continuumline (and its options) to load after the oasis theme, so continuum injects its hook into the finalstatus-right. Added a comment explaining the ordering constraint so it is not regressed.Verification
go test ./internal/components/multiplexer/passes.save.sh quietproduced a fresh resurrect file and the opencode-sessions post-save hook fired (opencode commands rewritten to:opencode --session <id>).tmux show-options -g status-rightcontainscontinuum_save.shand@continuum-save-last-timestampadvances every 15 min.