Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions changes/11564.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the installer hanging on the WSL/LiveCD environment warning when run with `--headless` because the "Press Enter to continue" prompt could not receive keystrokes; in headless mode it now auto-proceeds after printing the warning.
5 changes: 5 additions & 0 deletions src/ai/backend/install/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ async def wait_continue(self) -> None:
"""
Block until the user concludes the dialog.
If the user cancels, the result will be None.
In headless mode there is no terminal-attached UI to receive the Enter
keypress, so we auto-proceed instead of blocking forever.
"""
if self.app.is_headless:
self.write(Text.from_markup("\n[dim](headless mode: auto-continuing)[/]\n"))
return
self.write(Text.from_markup("\nPress [bold]Enter[/] to continue...\n"))
self._continue.clear()
await self._continue.wait()
Expand Down
Loading