(t0)
| 375 | onCancel: () => void; |
| 376 | }; |
| 377 | function TeammateDetailView(t0) { |
| 378 | const $ = _c(39); |
| 379 | const { |
| 380 | teammate, |
| 381 | teamName, |
| 382 | onCancel |
| 383 | } = t0; |
| 384 | const [promptExpanded, setPromptExpanded] = useState(false); |
| 385 | const cycleModeShortcut = useShortcutDisplay("confirm:cycleMode", "Confirmation", "shift+tab"); |
| 386 | const themeColor = teammate.color ? AGENT_COLOR_TO_THEME_COLOR[teammate.color as keyof typeof AGENT_COLOR_TO_THEME_COLOR] : undefined; |
| 387 | let t1; |
| 388 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 389 | t1 = []; |
| 390 | $[0] = t1; |
| 391 | } else { |
| 392 | t1 = $[0]; |
| 393 | } |
| 394 | const [teammateTasks, setTeammateTasks] = useState(t1); |
| 395 | let t2; |
| 396 | let t3; |
| 397 | if ($[1] !== teamName || $[2] !== teammate.agentId || $[3] !== teammate.name) { |
| 398 | t2 = () => { |
| 399 | let cancelled = false; |
| 400 | listTasks(teamName).then(allTasks => { |
| 401 | if (cancelled) { |
| 402 | return; |
| 403 | } |
| 404 | setTeammateTasks(allTasks.filter(task => task.owner === teammate.agentId || task.owner === teammate.name)); |
| 405 | }); |
| 406 | return () => { |
| 407 | cancelled = true; |
| 408 | }; |
| 409 | }; |
| 410 | t3 = [teamName, teammate.agentId, teammate.name]; |
| 411 | $[1] = teamName; |
| 412 | $[2] = teammate.agentId; |
| 413 | $[3] = teammate.name; |
| 414 | $[4] = t2; |
| 415 | $[5] = t3; |
| 416 | } else { |
| 417 | t2 = $[4]; |
| 418 | t3 = $[5]; |
| 419 | } |
| 420 | useEffect(t2, t3); |
| 421 | let t4; |
| 422 | if ($[6] === Symbol.for("react.memo_cache_sentinel")) { |
| 423 | t4 = input => { |
| 424 | if (input === "p") { |
| 425 | setPromptExpanded(_temp); |
| 426 | } |
| 427 | }; |
| 428 | $[6] = t4; |
| 429 | } else { |
| 430 | t4 = $[6]; |
| 431 | } |
| 432 | useInput(t4); |
| 433 | const workingPath = teammate.worktreePath || teammate.cwd; |
| 434 | let subtitleParts; |
nothing calls this directly
no test coverage detected