Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion site/src/pages/TerminalPage/TerminalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,15 @@ const TerminalPage: FC = () => {
agent={workspaceAgent}
status={connectionStatus}
onAlertChange={() => {
// First fit might not calculate correctly, apply a small delay and fit again
fitAddonRef.current?.fit();

// Apply a second fit after a small delay to ensure terminal size is correct
// This fixes the issue where text at the bottom of the terminal is hidden
// when startup scripts fail
setTimeout(() => {
fitAddonRef.current?.fit();
}, 100);
}}
/>
<div
Expand Down Expand Up @@ -400,4 +408,4 @@ const styles = {
}),
} satisfies Record<string, Interpolation<Theme>>;

export default TerminalPage;
export default TerminalPage;
Loading