fix(cli): stabilize UI rendering and make tests robust to platform differences

This commit is contained in:
Keith Guerin
2026-02-27 14:49:38 -08:00
parent 9fda3431b8
commit a829c91836
6 changed files with 39 additions and 15 deletions
@@ -19,7 +19,7 @@ interface ThinkingMessageProps {
}
const THINKING_LEFT_PADDING = 1;
const VERTICAL_LINE_WIDTH = 2;
const VERTICAL_LINE_WIDTH = 1;
function splitGraphemes(value: string): string[] {
if (typeof Intl !== 'undefined' && 'Segmenter' in Intl) {
@@ -148,7 +148,7 @@ export const ThinkingMessage: React.FC<ThinkingMessageProps> = ({
const verticalLine = (
<Box width={VERTICAL_LINE_WIDTH}>
<Text color={theme.text.secondary}> </Text>
<Text color={theme.text.secondary}></Text>
</Box>
);
@@ -1,8 +1,8 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`ThinkingMessage > normalizes escaped newline tokens 1`] = `
" │
Matching the Blocks
Some more text
" │
│ Matching the Blocks
│ Some more text
"
`;