Skip to content

fix(ui): ship the Agent UI desktop executable as gaia-ui - #6033

Draft
kovtcharov wants to merge 1 commit into
amd:mainfrom
kovtcharov:kalin/agent-ui-exe-gaia-ui
Draft

kovtcharov wants to merge 1 commit into
amd:mainfrom
kovtcharov:kalin/agent-ui-exe-gaia-ui

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

The desktop app's executable was called gaia-desktop, which doesn't match any other GAIA product name. It now ships as gaia-ui (gaia-ui.exe on Windows). People who already have the app upgrade in place. The old exe is removed, and shortcuts and start-at-sign-in now point at the new one. The installer names (gaia-agent-ui-<version>-*) and the Linux package name don't change.

  • Upgrades: electron-builder's upgrade runs the old uninstaller and then rebuilds the shortcuts and the Windows Run key. The combined Windows setup now also refuses to overwrite a gaia-desktop.exe that is still running. On Linux, a "start at sign-in" entry that still points at the old binary is rewritten when the app starts. Without that, sign-in start would silently stop working after a .deb upgrade.
  • Worth knowing: a Windows install upgraded from an older release keeps its Programs\gaia-desktop folder; only fresh installs get Programs\gaia-ui. The npm package's launcher is also called gaia-ui. Both launch the Agent UI, and nothing looks either one up on PATH.
🔍 Technical details
  • The after-pack --no-sandbox wrapper now reads context.packager.executableName instead of a hard-coded name. A rename can no longer silently skip the wrapper.
  • The headless Windows journey accepts either exe while it runs the previous release. After the upgrade it fails if gaia-desktop.exe is still there, and the leftovers check covers both install folders.
  • The .deb apt remove gaia-desktop doc lines are left alone: the package name isn't changing, and the docs being wrong about it is The desktop app's .deb and the terminal's .deb are both named 'gaia', so installing one replaces the other #5527.

Test plan

  • npx electron-builder --win --dir produces win-unpacked/gaia-ui.exe
  • cd tests/electron && npx jest: 1253 passed, including the new autostart repoint test
  • pytest tests/unit/installer/test_single_installer.py tests/unit/installer/test_installer_headless.py: 90 passed
  • Windows setup smoke test (installer/tui/nsis/smoke-test.ps1) and the headless win-setup-upgrade journey, on the release pipeline
  • Linux .deb journey: /opt/GAIA/gaia-ui is installed and the menu entry launches it

The desktop app's executable was gaia-desktop, a name that matched none of
GAIA's other products. It is now gaia-ui (gaia-ui.exe on Windows, the
binary inside GAIA.app on macOS, /opt/GAIA/gaia-ui on Linux).

Installed users upgrade cleanly: electron-builder's upgrade removes the old
exe and re-creates the shortcuts and the Run key against the new one. The
combined Windows setup also refuses to replace a still-running
gaia-desktop.exe. A Linux "start at sign-in" entry that still names the old
binary is rewritten at startup.
@github-actions github-actions Bot added documentation Documentation changes installer Installer changes tests Test changes labels Oct 29, 2026
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Left as a draft: this no longer merges with main without redoing the rename, so I did not push anything.

Since this branch was cut, main has built more on the gaia-desktop name than the 16 files changed here. A merge that only resolves the six conflicting files would ship a half-renamed app. The rename would also have to cover:

  • the Debian package, now itself named gaia-desktop, whose install and remove scripts manage a /usr/bin/gaia-desktop link to /opt/GAIA/gaia-desktop (an upgrade would need to clean up the old link)
  • the check for a running app during install, which recognises the app by the name gaia-desktop.exe and would need to know both names during an upgrade
  • the window class and desktop file name, which main now ties to desktopName in package.json
  • the Linux launch wrapper, the release test tools under util/agent_ui_release, and the tests for each of these

That needs a fresh pass on current main and a packaging run on Windows and Linux. It also needs a decision first: main has since moved the Linux package to the gaia-desktop name, which points the other way from this change.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-ui Agent UI changes bug Something isn't working documentation Documentation changes installer Installer changes p3 tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants