MCPcopy
hub / github.com/codeaashu/claude-code / viewTeammateOutput

Function viewTeammateOutput

src/components/teams/TeamsDialog.tsx:605–616  ·  view source on GitHub ↗
(paneId: string, backendType: PaneBackendType | undefined)

Source from the content-addressed store, hash-verified

603 logForDebugging(`[TeamsDialog] Removed ${teammateId} from teamContext`);
604}
605async function viewTeammateOutput(paneId: string, backendType: PaneBackendType | undefined): Promise<void> {
606 if (backendType === 'iterm2') {
607 // -s is required to target a specific session (ITermBackend.ts:216-217)
608 await execFileNoThrow(IT2_COMMAND, ['session', 'focus', '-s', paneId]);
609 } else {
610 // External-tmux teammates live on the swarm socket — without -L, this
611 // targets the default server and silently no-ops. Mirrors runTmuxInSwarm
612 // in TmuxBackend.ts:85-89.
613 const args = isInsideTmuxSync() ? ['select-pane', '-t', paneId] : ['-L', getSwarmSocketName(), 'select-pane', '-t', paneId];
614 await execFileNoThrow(TMUX_COMMAND, args);
615 }
616}
617
618/**
619 * Toggle visibility of a teammate pane (hide if visible, show if hidden)

Callers 1

TeamsDialogFunction · 0.85

Calls 3

execFileNoThrowFunction · 0.85
isInsideTmuxSyncFunction · 0.85
getSwarmSocketNameFunction · 0.85

Tested by

no test coverage detected