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

Function getSelectedTeammate

src/hooks/useBackgroundTaskNavigation.ts:135–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134 // Get the selected teammate's task info
135 const getSelectedTeammate = (): {
136 taskId: string
137 task: InProcessTeammateTaskState
138 } | null => {
139 if (teammateCount === 0) return null
140 const selectedIndex = selectedIPAgentIndex
141 const task = teammateTasks[selectedIndex]
142 if (!task) return null
143
144 return { taskId: task.id, task }
145 }
146
147 const handleKeyDown = (e: KeyboardEvent): void => {
148 // Escape in viewing mode:

Callers 1

handleKeyDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected