Skip to content

Release v0.17.1#680

Closed
itomek wants to merge 5 commits intomainfrom
v0.17.1-release
Closed

Release v0.17.1#680
itomek wants to merge 5 commits intomainfrom
v0.17.1-release

Conversation

@itomek
Copy link
Copy Markdown
Collaborator

@itomek itomek commented Mar 31, 2026

Summary

Release v0.17.1 — automatic Agent UI frontend build during gaia init, --ui-dist CLI argument, and CI/publishing pipeline hardening.

Files Changed

  • docs/releases/v0.17.1.mdx — Release notes (new file)
  • docs/docs.json — Added releases/v0.17.1 to Releases tab, updated navbar to v0.17.1 · Lemonade 10.0.0
  • src/gaia/version.py0.17.1-rc.10.17.1
  • src/gaia/apps/webui/package.json0.17.1-rc.10.17.1

Release Highlights

Improvements:

  • Automatic Agent UI build in gaia init — Dev/source installs now build the frontend automatically, eliminating the manual npm install && npm run build step. Shared gaia/ui/build.py module with staleness detection and graceful fallback (commit f89810a)
  • --ui-dist CLI flaggaia chat --ui and the UI server accept --ui-dist <path> for custom frontend dist directories, replacing the GAIA_WEBUI_DIST environment variable (commits f3af9b2, 1fa2096)

CI/Infrastructure:

Post-Merge

After merging:

git checkout main && git pull
git tag v0.17.1 && git push origin v0.17.1

CI: validate-release → publish-release → PyPI (gated on Kalin approval).

Test plan

  • python3 util/validate_release_notes.py docs/releases/v0.17.1.mdx --tag v0.17.1 passes
  • docs/docs.json is valid JSON and releases/v0.17.1 appears first in Releases tab
  • src/gaia/version.py reads 0.17.1
  • src/gaia/apps/webui/package.json reads 0.17.1

itomek added 5 commits March 30, 2026 10:39
- Extract _ensure_webui_built() to gaia/ui/build.py shared module
  to avoid circular import risk when init_command.py calls it
- Add frontend build step to gaia init (dev/source installs only)
- Keep auto-rebuild at gaia --ui launch as staleness safety net
- Fix Agent UI docs to clarify Setup -> Quickstart -> Agent UI chain
- Add unit tests for all new code paths
When installed via npm, the Python server now reads GAIA_WEBUI_DIST
to locate the pre-built frontend shipped inside the npm package.
Falls back to default path for source/dev installs.

Closes the JSON error users hit when running gaia-ui after
npm install -g @amd-gaia/agent-ui.
- A1: Add warn_fn parameter to ensure_webui_built() so warning/error
  messages route through log.warning instead of log.info; update
  cli.py and init_command.py callers accordingly
- A2: Add test for npm run build CalledProcessError being caught and
  returning False
- A3: Add test for node-found/npm-missing code path warning and skip
- A4: ensure_webui_built() now returns bool (True=success/up-to-date,
  False=skipped/failed); init only prints "Agent UI frontend ready"
  when build actually succeeded; _call helper updated to capture and
  return the bool so all tests verify the contract
- A5: Clarify "from the repo root" in manual build commands across
  two locations in docs/guides/agent-ui.mdx
Replace the environment variable mechanism for specifying the frontend
dist directory with an explicit --ui-dist CLI argument. This avoids
implicit env var coupling between gaia-ui and the Python server.

- Add --ui-dist to top-level and chat subcommand parsers in cli.py
- Add webui_dist parameter to _launch_agent_ui() and create_app()
- Pass --ui-dist via spawn args in gaia-ui.mjs instead of env override
- Add --ui-dist to standalone server.py main() runner
- Clarify per-scenario restart commands in agent-ui.mdx accordion
- Rewrite test to use webui_dist parameter directly (no module reload)
@itomek itomek requested a review from kovtcharov-amd March 31, 2026 00:57
@itomek itomek requested a review from kovtcharov-amd as a code owner March 31, 2026 00:57
@github-actions github-actions Bot added documentation Documentation changes cli CLI changes tests Test changes labels Mar 31, 2026
@itomek
Copy link
Copy Markdown
Collaborator Author

itomek commented Mar 31, 2026

Closing — release branch was incorrectly based on the feature branch rather than main. Opening a separate PR for the feature work first; release PR will follow from main.

@itomek itomek closed this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI changes documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant