fix: character truncation in raw markdown mode (#18938)

This commit is contained in:
Jack Wotherspoon
2026-02-12 14:16:56 -05:00
committed by GitHub
parent 0b3130cec7
commit b0cfbc6cd8
4 changed files with 28 additions and 2 deletions
@@ -46,4 +46,21 @@ describe('<GeminiMessage /> - Raw Markdown Display Snapshots', () => {
expect(lastFrame()).toMatchSnapshot();
},
);
it('wraps long lines correctly in raw markdown mode', () => {
const terminalWidth = 20;
const text =
'This is a long line that should wrap correctly without truncation';
const { lastFrame } = renderWithProviders(
<GeminiMessage
text={text}
isPending={false}
terminalWidth={terminalWidth}
/>,
{
uiState: { renderMarkdown: false, streamingState: StreamingState.Idle },
},
);
expect(lastFrame()).toMatchSnapshot();
});
});