MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / MessageRowImpl

Function MessageRowImpl

source code/components/MessageRow.tsx:95–289  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

93 return false;
94}
95function MessageRowImpl(t0) {
96 const $ = _c(64);
97 const {
98 message: msg,
99 isUserContinuation,
100 hasContentAfter,
101 tools,
102 commands,
103 verbose,
104 inProgressToolUseIDs,
105 streamingToolUseIDs,
106 screen,
107 canAnimate,
108 onOpenRateLimitOptions,
109 lastThinkingBlockId,
110 latestBashOutputUUID,
111 columns,
112 isLoading,
113 lookups
114 } = t0;
115 const isTranscriptMode = screen === "transcript";
116 const isGrouped = msg.type === "grouped_tool_use";
117 const isCollapsed = msg.type === "collapsed_read_search";
118 let t1;
119 if ($[0] !== hasContentAfter || $[1] !== inProgressToolUseIDs || $[2] !== isCollapsed || $[3] !== isLoading || $[4] !== msg) {
120 t1 = isCollapsed && (hasAnyToolInProgress(msg, inProgressToolUseIDs) || isLoading && !hasContentAfter);
121 $[0] = hasContentAfter;
122 $[1] = inProgressToolUseIDs;
123 $[2] = isCollapsed;
124 $[3] = isLoading;
125 $[4] = msg;
126 $[5] = t1;
127 } else {
128 t1 = $[5];
129 }
130 const isActiveCollapsedGroup = t1;
131 let t2;
132 if ($[6] !== isCollapsed || $[7] !== isGrouped || $[8] !== msg) {
133 t2 = isGrouped ? msg.displayMessage : isCollapsed ? getDisplayMessageFromCollapsed(msg) : msg;
134 $[6] = isCollapsed;
135 $[7] = isGrouped;
136 $[8] = msg;
137 $[9] = t2;
138 } else {
139 t2 = $[9];
140 }
141 const displayMsg = t2;
142 let t3;
143 if ($[10] !== isCollapsed || $[11] !== isGrouped || $[12] !== lookups || $[13] !== msg) {
144 t3 = isGrouped || isCollapsed ? [] : getProgressMessagesFromLookup(msg, lookups);
145 $[10] = isCollapsed;
146 $[11] = isGrouped;
147 $[12] = lookups;
148 $[13] = msg;
149 $[14] = t3;
150 } else {
151 t3 = $[14];
152 }

Callers

nothing calls this directly

Calls 7

hasAnyToolInProgressFunction · 0.85
shouldRenderStaticallyFunction · 0.85
getToolUseIDFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected