diff --git a/src/cli/components/EventMessage.tsx b/src/cli/components/EventMessage.tsx index d6e8e0b..35405ac 100644 --- a/src/cli/components/EventMessage.tsx +++ b/src/cli/components/EventMessage.tsx @@ -87,35 +87,39 @@ export const EventMessage = memo(({ line }: { line: EventLine }) => { - {/* Result section (only when finished) - matches CollapsedOutputDisplay format */} - {!isRunning && line.summary && ( - <> - {/* Header line with L-bracket */} - - - {" ⎿ "} + {/* Result section (only when finished and LETTA_DEBUG is enabled) */} + {/* By default, hide the verbose summary to avoid overwhelming users */} + {!isRunning && + line.summary && + (process.env.LETTA_DEBUG === "1" || + process.env.LETTA_DEBUG === "true") && ( + <> + {/* Header line with L-bracket */} + + + {" ⎿ "} + + + {COMPACTION_SUMMARY_HEADER} + - - {COMPACTION_SUMMARY_HEADER} + {/* Empty line for separation */} + + - - {/* Empty line for separation */} - - - - {/* Summary text - indented with 5 spaces to align */} - - - {" "} + {/* Summary text - indented with 5 spaces to align */} + + + {" "} + + + + {line.summary} + + - - - {line.summary} - - - - - )} + + )} ); });