MCPcopy Create free account
hub / github.com/codeaashu/claude-code / AgentPromptDisplay

Function AgentPromptDisplay

src/tools/AgentTool/UI.tsx:184–207  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

182const TERMINAL_BUFFER_LINES = 7;
183type Output = z.input<ReturnType<typeof outputSchema>>;
184export function AgentPromptDisplay(t0) {
185 const $ = _c(3);
186 const {
187 prompt,
188 dim: t1
189 } = t0;
190 t1 === undefined ? false : t1;
191 let t2;
192 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
193 t2 = <Text color="success" bold={true}>Prompt:</Text>;
194 $[0] = t2;
195 } else {
196 t2 = $[0];
197 }
198 let t3;
199 if ($[1] !== prompt) {
200 t3 = <Box flexDirection="column">{t2}<Box paddingLeft={2}><Markdown>{prompt}</Markdown></Box></Box>;
201 $[1] = prompt;
202 $[2] = t3;
203 } else {
204 t3 = $[2];
205 }
206 return t3;
207}
208export function AgentResponseDisplay(t0) {
209 const $ = _c(5);
210 const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected