fix(ui,install): Models page couldn't scroll to installed models; report install result in original window

Models.jsx clipped the whole card with overflow:hidden while only the
"Available Models" section (never visible when the hardware-recommended
list alone filled the card) had its own scroll — the installed-models
list was unreachable with no scrollbar. The whole card now scrolls as
one region instead.

install-windows.ps1's original (non-elevated) window printed "Requesting
administrator privileges..." and exited immediately, so all real
progress and the "installed!" banner only ever appeared in the separate
elevated window — making the original window look like it silently
quit. It now waits (-Wait -PassThru) and reports success/failure itself.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
jon
2026-07-24 19:46:14 -05:00
co-authored by Claude Sonnet 5
parent 65cf2e887e
commit 7d9681907c
2 changed files with 17 additions and 4 deletions
+14 -2
View File
@@ -82,8 +82,20 @@ $IsAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden
[Security.Principal.WindowsBuiltInRole]::Administrator) [Security.Principal.WindowsBuiltInRole]::Administrator)
if (-not $IsAdmin) { if (-not $IsAdmin) {
Write-Host "Requesting administrator privileges..." -ForegroundColor Yellow Write-Host "Requesting administrator privileges..." -ForegroundColor Yellow
Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -OwnsWindow" -Verb RunAs # -Wait -PassThru so this window blocks until the elevated install finishes
exit # and can report success/failure itself - without it, this window just says
# "Requesting..." and exits immediately, while all real progress (and the
# "installed!" banner) happens in the separate elevated window, making the
# original window look like it silently quit.
$proc = Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -OwnsWindow" -Verb RunAs -Wait -PassThru
Write-Host ""
if ($proc.ExitCode -eq 0) {
Write-Host " NexusOS installed successfully." -ForegroundColor Green
Write-Host " Open a NEW terminal and run 'ncp help', or double-click the NexusOS desktop shortcut." -ForegroundColor White
} else {
Write-Host " Install did not finish (exit code $($proc.ExitCode)). Check the elevated window for errors." -ForegroundColor Red
}
exit $proc.ExitCode
} }
Write-Host "" Write-Host ""
+3 -2
View File
@@ -161,7 +161,8 @@ export function Models({ onPullStateChange }) {
padding: "1rem", padding: "1rem",
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
overflow: "hidden" overflowY: "auto",
overflowX: "hidden"
}}> }}>
{/* Pull Model Section */} {/* Pull Model Section */}
<div style={{ marginBottom: "1.5rem", paddingBottom: "1rem", borderBottom: "1px solid #333" }}> <div style={{ marginBottom: "1.5rem", paddingBottom: "1rem", borderBottom: "1px solid #333" }}>
@@ -260,7 +261,7 @@ export function Models({ onPullStateChange }) {
)} )}
{/* Local Models List */} {/* Local Models List */}
<div style={{ flexGrow: 1, overflowY: "auto", paddingRight: "0.5rem" }}> <div style={{ paddingRight: "0.5rem" }}>
<h3 style={{ margin: "0 0 1rem 0", fontSize: "0.95rem", color: "#bbb" }}> <h3 style={{ margin: "0 0 1rem 0", fontSize: "0.95rem", color: "#bbb" }}>
Available Models ({models.length}) Available Models ({models.length})
</h3> </h3>