MCPcopy Index your code
hub / github.com/codeaashu/claude-code / TeammateTaskStatus

Function TeammateTaskStatus

src/components/messages/AttachmentMessage.tsx:432–503  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

430 return t4;
431}
432function TeammateTaskStatus(t0) {
433 const $ = _c(16);
434 const {
435 attachment
436 } = t0;
437 const bg = useSelectedMessageBg();
438 let t1;
439 if ($[0] !== attachment.taskId) {
440 t1 = s => s.tasks[attachment.taskId];
441 $[0] = attachment.taskId;
442 $[1] = t1;
443 } else {
444 t1 = $[1];
445 }
446 const task = useAppState(t1);
447 if (task?.type !== "in_process_teammate") {
448 let t2;
449 if ($[2] !== attachment) {
450 t2 = <GenericTaskStatus attachment={attachment} />;
451 $[2] = attachment;
452 $[3] = t2;
453 } else {
454 t2 = $[3];
455 }
456 return t2;
457 }
458 let t2;
459 if ($[4] !== task.identity.color) {
460 t2 = toInkColor(task.identity.color);
461 $[4] = task.identity.color;
462 $[5] = t2;
463 } else {
464 t2 = $[5];
465 }
466 const agentColor = t2;
467 const statusText = attachment.status === "completed" ? "shut down gracefully" : attachment.status;
468 let t3;
469 if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
470 t3 = <Text dimColor={true}>{BLACK_CIRCLE} </Text>;
471 $[6] = t3;
472 } else {
473 t3 = $[6];
474 }
475 let t4;
476 if ($[7] !== agentColor || $[8] !== task.identity.agentName) {
477 t4 = <Text color={agentColor} bold={true} dimColor={false}>@{task.identity.agentName}</Text>;
478 $[7] = agentColor;
479 $[8] = task.identity.agentName;
480 $[9] = t4;
481 } else {
482 t4 = $[9];
483 }
484 let t5;
485 if ($[10] !== statusText || $[11] !== t4) {
486 t5 = <Text dimColor={true}>Teammate{" "}{t4}{" "}{statusText}</Text>;
487 $[10] = statusText;
488 $[11] = t4;
489 $[12] = t5;

Callers

nothing calls this directly

Calls 3

useSelectedMessageBgFunction · 0.85
useAppStateFunction · 0.85
toInkColorFunction · 0.85

Tested by

no test coverage detected