Skip to content

fix: apply tmux status off to newly created sessions#67

Merged
vaayne merged 1 commit intovaayne:mainfrom
0xbentang:fix/tmux-status-line-new-projects
Apr 15, 2026
Merged

fix: apply tmux status off to newly created sessions#67
vaayne merged 1 commit intovaayne:mainfrom
0xbentang:fix/tmux-status-line-new-projects

Conversation

@0xbentang
Copy link
Copy Markdown
Contributor

Problem

When adding a new project, the tmux status line remains visible even though Mori should hide it.

Root Cause

TmuxThemeApplicator caches the theme payload per backend. When a new session is created and the theme hasn't changed, the cache causes an early return - skipping the status off option for the new session.

Solution

Added a force parameter to TmuxThemeApplicator.apply() that bypasses the cache. The onSessionCreated callback now uses force: true to ensure theme options are applied to newly created sessions.

Changes

  • TmuxThemeApplicator.swift: Added force: Bool = false parameter
  • AppDelegate.swift: Pass force: true when applying theme after session creation

The TmuxThemeApplicator cache prevented theme options from being
applied to new sessions when the theme hadn't changed. Added a force
parameter to bypass the cache when called from onSessionCreated.
@vaayne vaayne merged commit aea7048 into vaayne:main Apr 15, 2026
5 checks passed
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