Fix: Windows PATH Persistence for Engram and GGA
Bug
On Windows, after installing engram and GGA, the binaries were only accessible in the current gentle-ai process. Opening a new PowerShell session couldn't find them because the install directories were never added to the user PATH permanently.
Fix
New system.AddToUserPath() function that:
- Adds the directory to the current process PATH (immediate access)
- On Windows, persists via PowerShell
[Environment]::SetEnvironmentVariableto the user registry (survives restarts) - No-op on non-Windows (safe cross-platform)
Applied to:
- Engram binary download (
%LOCALAPPDATA%\engram\bin) - GGA install on Windows (
~\bin) - Engram upgrade path
Also includes fix for #157: welcome screen now clears stale "Updates available" banner after upgrade completes.
Upgrade
brew upgrade gentle-aiWindows:
irm https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/main/scripts/install.ps1 | iex