mirror of
https://github.com/anthropics/claude-code.git
synced 2026-04-25 07:06:05 +00:00
fix: Use tmux -L default to ensure correct socket resolution
When Claude Code runs in a different context (container, namespace, etc), tmux may resolve to a different socket than the user's terminal. Using -L default explicitly targets the default socket name, fixing the issue where Claude sees different tmux sessions than the user.
This commit is contained in:
@@ -230,8 +230,8 @@ Read from hooks to coordinate agents:
|
||||
AGENT_NAME=$(echo "$FRONTMATTER" | grep '^agent_name:' | sed 's/agent_name: *//')
|
||||
COORDINATOR=$(echo "$FRONTMATTER" | grep '^coordinator_session:' | sed 's/coordinator_session: *//')
|
||||
|
||||
# Send notification to coordinator
|
||||
tmux send-keys -t "$COORDINATOR" "Agent $AGENT_NAME completed task" Enter
|
||||
# Send notification to coordinator (use -L default to ensure correct socket)
|
||||
tmux -L default send-keys -t "$COORDINATOR" "Agent $AGENT_NAME completed task" Enter
|
||||
```
|
||||
|
||||
### Pattern 3: Configuration-Driven Behavior
|
||||
|
||||
Reference in New Issue
Block a user