Skip to content

fix: unset TMUX env var for nested tmux sessions#112

Merged
marcus merged 1 commit intomarcus:mainfrom
yashas-salankimatt:fix/unset-tmux-for-nested-sessions
Feb 9, 2026
Merged

fix: unset TMUX env var for nested tmux sessions#112
marcus merged 1 commit intomarcus:mainfrom
yashas-salankimatt:fix/unset-tmux-for-nested-sessions

Conversation

@yashas-salankimatt
Copy link
Contributor

Summary

  • When running sidecar inside tmux, pressing prefix+d to detach from a workspace shell would detach the outer tmux session instead of the workspace's inner session
  • Fix: unset the TMUX environment variable at startup so sidecar's internal tmux sessions are independent of any enclosing tmux

Test plan

  • Run sidecar inside a tmux session
  • Open a workspace and press t to attach to a shell
  • Press prefix+d — should return to sidecar's UI, not detach the outer tmux

🤖 Generated with Claude Code

When running sidecar inside tmux, the prefix+d detach shortcut would
detach the outer tmux session instead of the workspace's inner session.
Unsetting TMUX at startup makes sidecar's internal tmux sessions
independent of any outer tmux.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@marcus marcus merged commit 17c3034 into marcus:main Feb 9, 2026
@marcus
Copy link
Owner

marcus commented Feb 9, 2026

Thanks for the fix! This is merged and will be in the next release. 🎉

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