Fix inline thinking box width

This commit is contained in:
Dmitry Lyalin
2026-02-01 15:16:22 -05:00
parent 874b8e1501
commit bebc51982c

View File

@@ -25,6 +25,7 @@ export const ThinkingMessage: React.FC<ThinkingMessageProps> = ({
const description = thought.description.trim();
const headerText = subject || description;
const bodyText = subject ? description : '';
const contentMaxWidth = Math.max(terminalWidth - 4, 1);
const contentMaxHeight =
availableTerminalHeight !== undefined
? Math.max(availableTerminalHeight - 4, MINIMUM_MAX_HEIGHT)
@@ -40,7 +41,7 @@ export const ThinkingMessage: React.FC<ThinkingMessageProps> = ({
>
<MaxSizedBox
maxHeight={contentMaxHeight}
maxWidth={terminalWidth - 2}
maxWidth={contentMaxWidth}
overflowDirection="top"
>
{headerText && (