mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-04 15:16:49 -07:00
fix(ui): flatten multiline summaries in compact ToolGroupDisplay and fix populateToolDisplay merge logic
This commit is contained in:
@@ -179,7 +179,10 @@ const ToolDisplayMessage: React.FC<ToolDisplayMessageProps> = ({ tool }) => {
|
||||
</Text>
|
||||
{description && <Text color={theme.text.secondary}>{description}</Text>}
|
||||
{resultSummary && (
|
||||
<Text color={theme.text.accent}> → {resultSummary}</Text>
|
||||
<Text color={theme.text.accent}>
|
||||
{' '}
|
||||
→ {resultSummary.replace(/\n/g, ' ')}
|
||||
</Text>
|
||||
)}
|
||||
</Box>
|
||||
);
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ exports[`<ToolGroupDisplay /> > Border & Margin Logic > forces top border on box
|
||||
`;
|
||||
|
||||
exports[`<ToolGroupDisplay /> > Golden Snapshots > renders error message when display info is missing 1`] = `
|
||||
" ⊷ Error: Tool display missing
|
||||
" ⊶ Error: Tool display missing
|
||||
"
|
||||
`;
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@ export function populateToolDisplay({
|
||||
display?: ToolDisplay;
|
||||
}): ToolDisplay {
|
||||
const display: ToolDisplay = {
|
||||
...prevDisplay,
|
||||
name: displayName || name,
|
||||
description: invocation?.getDescription?.(),
|
||||
...prevDisplay,
|
||||
};
|
||||
|
||||
if (resultDisplay !== undefined && display.result === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user