Skip to content
Draft
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
21 changes: 19 additions & 2 deletions cli/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,28 @@ async function main(): Promise<void> {
backgroundColor: 'transparent',
exitOnCtrlC: false,
})
createRoot(renderer).render(

const root = createRoot(renderer)

// React component tree to render
const app = (
<QueryClientProvider client={queryClient}>
<AppWithAsyncAuth />
</QueryClientProvider>,
</QueryClientProvider>
)

// Add resize event listener for terminal resize support on Windows PowerShell
// On Windows, the SIGWINCH signal may not fire reliably, so we listen to
// process.stdout 'resize' event to ensure the UI updates when the window is resized
if (process.stdout.isTTY) {
process.stdout.on('resize', () => {
// Re-render the React tree to update with new terminal dimensions
root.render(app)
})
}

// Initial render
root.render(app)
}

void main()
Loading