Skip to content

Prevent Claude Code Agent Teams from using tmux inside Claudio#664

Merged
Iron-Ham merged 1 commit intomainfrom
Iron-Ham/fix-tmux-teammate-mode
Feb 16, 2026
Merged

Prevent Claude Code Agent Teams from using tmux inside Claudio#664
Iron-Ham merged 1 commit intomainfrom
Iron-Ham/fix-tmux-teammate-mode

Conversation

@Iron-Ham
Copy link
Owner

Summary

  • When Claudio runs Claude Code inside tmux, Claude Code detects $TMUX and activates tmux-based Agent Teams — creating nested tmux sessions that Claudio can't see or manage (team members don't appear in the sidebar)
  • Writes {"teammateMode": "in-process"} to .claude/settings.local.json in each worktree before Claude Code starts, forcing inline teammate execution instead of tmux
  • Merges with existing settings files to preserve any other configuration

Test plan

  • go build ./... — build succeeds
  • go vet ./... — no lint issues
  • go test ./internal/orchestrator/ -run TestWriteWorktreeTeamSettings — 6 unit tests pass (file creation, merge with existing settings, non-Claude backend skip, nil backend skip, directory creation, invalid JSON overwrite)
  • go test -race ./internal/orchestrator/ -run TestWriteWorktreeTeamSettings — race detector clean
  • Manual: start a Claudio session and verify .claude/settings.local.json exists in worktrees with teammateMode: "in-process"

Write teammateMode: "in-process" to .claude/settings.local.json in
each worktree before Claude Code starts. This prevents Claude Code
from detecting $TMUX and activating tmux-based Agent Teams, which
creates nested sessions Claudio cannot manage.
@Iron-Ham Iron-Ham force-pushed the Iron-Ham/fix-tmux-teammate-mode branch from 82e667a to 137bbfb Compare February 16, 2026 00:15
@Iron-Ham Iron-Ham merged commit 21b056a into main Feb 16, 2026
5 of 6 checks passed
Iron-Ham added a commit that referenced this pull request Feb 16, 2026
The settings.local.json approach from #664 can be overridden by
user-level settings or $TMUX auto-detection. Pass the flag directly
on the CLI for both start and resume commands to guarantee in-process
teammate mode at the highest configuration precedence.
Iron-Ham added a commit that referenced this pull request Feb 16, 2026
The settings.local.json approach from #664 can be overridden by
user-level settings or $TMUX auto-detection. Pass the flag directly
on the CLI for both start and resume commands to guarantee in-process
teammate mode at the highest configuration precedence.
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

Comments