Skip to content

feat: 检测 tmux 持久化插件并自动预热 server - #6

Merged
liuziyuan merged 1 commit into
mainfrom
feat/warmup-tmux-server-on-resurrect
May 14, 2026
Merged

feat: 检测 tmux 持久化插件并自动预热 server#6
liuziyuan merged 1 commit into
mainfrom
feat/warmup-tmux-server-on-resurrect

Conversation

@liuziyuan

Copy link
Copy Markdown
Owner

Summary

  • 检测 ~/.tmux/plugins/tmux-resurrecttmux-continuum 是否安装
  • tmux server 未运行时自动执行 tmux start-server 触发插件 restore
  • 无插件或 server 已运行时零开销跳过

Test plan

  • tmux kill-server 后运行 tmuxtui,确认 session 列表自动恢复(需安装 tmux-resurrect/continuum)
  • 无插件环境下 tmux kill-server 后运行 tmuxtui,确认无延迟
  • 正常 tmux 运行时启动 tmuxtui,确认无额外开销

tmux 崩溃后 server 进程死亡,list-sessions 返回空。
安装了 tmux-resurrect/continuum 时,启动 tmuxtui 自动执行
tmux start-server 触发插件 restore,恢复 session 列表。
无插件时零开销跳过。
@liuziyuan
liuziyuan merged commit ea6543e into main May 14, 2026
1 check passed
@liuziyuan
liuziyuan deleted the feat/warmup-tmux-server-on-resurrect branch September 7, 2026 05:30
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