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

Function MessageRowImpl

src/components/MessageRow.tsx:93–287  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

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

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