e25f3ca736
When oh-my-opencode created a delegated tmux pane, terminal capability/color probe replies emitted by tmux or the freshly attaching opencode session could end up in the caller pane's input buffer instead of being consumed by the delegated pane, appearing as literal text in the main OpenCode chat (e.g. "414/21212a2/..."). Root cause: buildSplitArgs in team-layout-tmux/layout.ts called split-window without the -d (detached/don't-switch-focus) flag. Without -d, tmux briefly grants focus to the new pane during creation; the outer terminal then sends DA1/DA2 and OSC color probe replies into what it believes is the active pane, but the focus handoff races and those bytes land in the caller pane's stdin buffer instead. Fix: add -d to every split-window call in buildSplitArgs, matching the same flag already used in pane-spawn.ts for inline subagent panes. This keeps the caller pane focused throughout the delegated pane lifecycle so probe replies are consumed by the correct target. Existing tests pass; one new test asserts -d is present on every split-window call to guard this invariant. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>