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

Function MemorySavedMessage

src/components/messages/SystemTextMessage.tsx:594–665  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

592 return sample(TURN_COMPLETION_VERBS) ?? "Worked";
593}
594function MemorySavedMessage(t0) {
595 const $ = _c(16);
596 const {
597 message,
598 addMargin
599 } = t0;
600 const bg = useSelectedMessageBg();
601 const {
602 writtenPaths
603 } = message;
604 let t1;
605 if ($[0] !== message) {
606 t1 = feature("TEAMMEM") ? teamMemSaved.teamMemSavedPart(message) : null;
607 $[0] = message;
608 $[1] = t1;
609 } else {
610 t1 = $[1];
611 }
612 const team = t1;
613 const privateCount = writtenPaths.length - (team?.count ?? 0);
614 const t2 = privateCount > 0 ? `${privateCount} ${privateCount === 1 ? "memory" : "memories"}` : null;
615 const t3 = team?.segment;
616 let t4;
617 if ($[2] !== t2 || $[3] !== t3) {
618 t4 = [t2, t3].filter(Boolean);
619 $[2] = t2;
620 $[3] = t3;
621 $[4] = t4;
622 } else {
623 t4 = $[4];
624 }
625 const parts = t4;
626 const t5 = addMargin ? 1 : 0;
627 let t6;
628 if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
629 t6 = <Box minWidth={2}><Text dimColor={true}>{BLACK_CIRCLE}</Text></Box>;
630 $[5] = t6;
631 } else {
632 t6 = $[5];
633 }
634 const t7 = message.verb ?? "Saved";
635 const t8 = parts.join(" \xB7 ");
636 let t9;
637 if ($[6] !== t7 || $[7] !== t8) {
638 t9 = <Box flexDirection="row">{t6}<Text>{t7} {t8}</Text></Box>;
639 $[6] = t7;
640 $[7] = t8;
641 $[8] = t9;
642 } else {
643 t9 = $[8];
644 }
645 let t10;
646 if ($[9] !== writtenPaths) {
647 t10 = writtenPaths.map(_temp5);
648 $[9] = writtenPaths;
649 $[10] = t10;
650 } else {
651 t10 = $[10];

Callers

nothing calls this directly

Calls 2

useSelectedMessageBgFunction · 0.85
featureFunction · 0.85

Tested by

no test coverage detected