Skip to content

fix(uninstall): --purge removes installer binaries, PATH edits and daemon state - #4413

Merged
itomek merged 10 commits into
mainfrom
itomek/uninstall-purge
Sep 29, 2026
Merged

itomek merged 10 commits into
mainfrom
itomek/uninstall-purge

Conversation

@itomek

@itomek itomek commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

gaia uninstall --purge used to leave the machine half-uninstalled: gaia-tui and gaia-agent stayed on PATH, the installer's export PATH block stayed in every shell rc file, and ~/.gaia/host kept the daemon's client token and custody store. The purge now stops the daemon first, then deletes ~/.gaia/bin, ~/.gaia/traces and the daemon state, and removes exactly the installer's rc block (or its Windows PATH entries) while leaving every other line byte-identical. A shell rc file it cannot read is reported and skipped rather than aborting the whole purge, so tidying up PATH can no longer strand the user data the command was asked to delete.

This replaces #4320 — same work, rebuilt on current main with the maintainer's open question answered and the three review nits folded in. Please close #4320 in favour of this.

The custody-database question is answered: §0.19 does not bind gaia uninstall --purge. The clause Kalin could not locate is in docs/plans/agent-ui-agent-capabilities-plan.md, §0.19 "Audit trail — a host-custody sink, not agent-private" (lines 606-616). Its subject is agent-private storage, and the uninstall it names is the agent uninstall — §0.20 "Uninstall — data lifecycle" opens "§0.5 uninstall stops the sidecar + removes the binary". §0.19 argues the audit sink must move to host custody so an agent uninstall cannot erase it; it says nothing about the whole-product purge, which already deletes chat history and documents. Verbatim:

and email's action log is agent-private (§0.9) so the dashboard can't read
it and uninstall deletes it. Every consequential action ... must be appended to a host-owned audit
log
via POST /host/v1/audit

🔍 Technical details

Nits folded in (all three the author listed as deferred):

  • The "daemon state is outside the GAIA home" note named GAIA_DAEMON_HOME unconditionally. Two other paths reach that branch with it unset — a custom GAIA_HOME, and a symlinked ~/.gaia/host with neither variable exported. It now names a variable only when one is set. A new test pins all three readings and fails on the old wording.
  • The gaia.log file-handler comment had a later _stop_daemon call inserted between it and the call it describes; moved back.
  • ~/.gaia/traces/ added to the install guide's "Where things live" table.

Lint: black failed on main's CI for this branch's predecessor — rc.write_text("export PATH=\"...\"") at tests/unit/installer/test_uninstall_command.py wants single outer quotes. Fixed; black and isort are clean here.

Ancestry — every commit from #4320 is an ancestor of this branch, brought in by merge so authorship is preserved:

$ for c in d4c253ce 3cb30004 9c5ba1e6; do git merge-base --is-ancestor $c HEAD && echo "$c ANCESTOR"; done
d4c253ce ANCESTOR
3cb30004 ANCESTOR
9c5ba1e6 ANCESTOR

Test plan

  • pytest tests/unit/installer/ → 205 passed, 6 skipped
  • .venv/bin/python util/lint.py --black --isort → both PASS
  • Real purge against a populated, fully isolated HOME — removes bin, traces, host (custody.db + WAL + shm + token), edits .bashrc/.profile byte-exactly, leaves unrelated files unchanged by md5 (transcript below)
  • 5 adversarial containment cases — symlinked traces/, symlinked host/, GAIA_HOME escaping via ../../, GAIA_HOME=$HOME, GAIA_DAEMON_HOME outside. The out-of-HOME tree is byte-identical afterwards (transcript below)
  • tests/unit/ full suite: 32 failed / 17721 passed on this branch vs 31 failed / 17705 passed on a clean checkout of main at 143c697. The single extra is test_chat_completion_stream::test_client_disconnect_cancels_the_agent, which is order-dependent — it fails on plain main too when that file is run alone, and an unrelated PR (feat(tui): show the sourced measurement behind each ranked Fireworks pick #4414) hits it in CI on the same main
  • On Windows after install.ps1: the user PATH loses only ~\.gaia\venv\Scripts and ~\.gaia\bin. Not verified — needs a throwaway Windows machine. The registry path has only _FakeWinreg behind it; nobody has run it against real winreg.

Fixes #4225, fixes #3290

Kalin Ovtcharov and others added 6 commits September 25, 2026 00:03
…d daemon state

After `gaia uninstall --purge`, gaia-tui and gaia-agent stayed on PATH, every
shell rc file kept the installer's PATH block (or the Windows user PATH kept its
entries), and ~/.gaia/host kept the daemon's client token and custody store.

- Purge now covers ~/.gaia/bin, ~/.gaia/traces and the daemon's host dir. A
  running daemon is stopped first so it cannot rewrite instance.json; if it
  won't stop, nothing is deleted.
- The custody database goes with host/ on purpose: a full product purge
  removes all user data. It still survives an agent uninstall.
- The "# Added by GAIA installer" block is removed from .zshrc, .bashrc,
  .bash_profile and .profile, in both the current and the pre-0.23 venv-only
  shape. The rest of each file stays byte-identical, symlinked rc files are
  edited in place, and hand-edited exports are left alone with a note.
- On Windows, the installer's entries are removed from HKCU\Environment\Path
  with the value kind kept and other entries (including %VARS%) unexpanded.
- A GAIA_HOME or GAIA_DAEMON_HOME outside ~/.gaia leaves the installer edits
  and daemon state alone rather than widening the deletion roots.

Fixes #4225, fixes #3290
--purge read every shell rc file at plan time and raised on the first
one it could not open, so the command exited before deleting anything.
A root-owned or mode-000 ~/.profile therefore kept ~/.gaia/chat,
documents and venv on disk -- none of which that file has anything to
do with. The user asked to remove their data; tidying up PATH is a side
task and must not veto it.

The write side already had this right: _edit_rc_file reports the
failure, returns False, and execute_plan downgrades the exit code. The
read side now matches -- the unreadable file is recorded on the plan,
printed as [error], and the run still exits EXIT_FS_ERROR. Same
loudness, nothing stranded.

UninstallPlanError had no remaining raise site afterwards, so the class,
its handler and its docstring clause are gone rather than left as dead
plumbing.
The "daemon state is outside the GAIA home" note named GAIA_DAEMON_HOME even
when that variable was never set — a custom GAIA_HOME with the default
~/.gaia/host produces the same branch. It now names whichever variable is
actually responsible.

Also moves the gaia.log file-handler comment back above the call it describes
(a later _stop_daemon call landed between them), adds the ~/.gaia/traces/ row
the install guide's "Where things live" table was missing, and switches one
test's rc.write_text to single outer quotes so black is clean.
…p note

A symlinked ~/.gaia/host reaches the same branch with neither GAIA_HOME nor
GAIA_DAEMON_HOME exported, so the note now omits the parenthetical entirely
rather than blaming whichever variable it guessed. A test pins all three
readings; it fails on the previous wording.
@github-actions github-actions Bot added documentation Documentation changes tests Test changes daemon Daemon supervisor / sidecar control plane labels Sep 28, 2026
@itomek

itomek commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

The purge removes exactly what it claims and cannot reach outside the home it was pointed at. Everything below ran on this branch (1fb6c6c38) against a throwaway $HOME under /tmp — the real home directory was never a target. The Windows registry path is still unverified and needs a throwaway Windows machine.

🔍 Real purge against a populated, isolated $HOME
### BEFORE — checksums of the things that must survive
0bed1a7ba620b7dfef33c8eeb5fa2984  $HOME/Documents/thesis.txt
31ee9d2fb96e8e145b8d810b143d5e73  $HOME/.ssh/id_rsa
7470c5dcc776e229cb68d5f1a329c4a6  $HOME/mytools/bin/mytool
### BEFORE — daemon state present?
custody.db
custody.db-shm
custody.db-wal
daemon.log
token.json
### BEFORE — .bashrc
# user bashrc<EOL>
export EDITOR=vim<EOL>
alias ll='ls -la'<EOL>
<EOL>
# Added by GAIA installer<EOL>
export PATH="$PATH:$HOME/.gaia/venv/bin:$HOME/.gaia/bin"<EOL>
<EOL>
export PATH="$PATH:$HOME/mytools/bin"<EOL>

==============================================================
$ gaia uninstall --purge --yes
GAIA home: $HOME/.gaia
The following will be removed:
  (--purge) $HOME/.gaia/venv
  (--purge) $HOME/.gaia/chat
  (--purge) $HOME/.gaia/documents
  (--purge) $HOME/.gaia/lemonade
  (--purge) $HOME/.gaia/electron-config.json
  (--purge) $HOME/.gaia/gaia.log
  (--purge) $HOME/.gaia/electron-install-state.json
  (--purge) $HOME/.gaia/electron-install.log
  (--purge) $HOME/.gaia/bin
  (--purge) $HOME/.gaia/traces
  (--purge) $HOME/.gaia/host
  (--purge) $HOME/.bashrc: the '# Added by GAIA installer' PATH line
  (--purge) $HOME/.profile: the '# Added by GAIA installer' PATH line
  [note] $HOME/.profile has a '# Added by GAIA installer' line whose PATH export was changed by hand, so it is left alone. Remove it by hand if you no longer need it.

  [removed] $HOME/.gaia/venv
  [removed] $HOME/.gaia/chat
  [removed] $HOME/.gaia/documents
  [skip] $HOME/.gaia/lemonade (does not exist)
  [skip] $HOME/.gaia/electron-config.json (does not exist)
  [removed] $HOME/.gaia/gaia.log
  [skip] $HOME/.gaia/electron-install-state.json (does not exist)
  [skip] $HOME/.gaia/electron-install.log (does not exist)
  [removed] $HOME/.gaia/bin
  [removed] $HOME/.gaia/traces
  [removed] $HOME/.gaia/host
  [edited] $HOME/.bashrc (removed the GAIA installer PATH line)
  [edited] $HOME/.profile (removed the GAIA installer PATH line)

gaia uninstall: done.
### exit=0
==============================================================

### AFTER — what is left under $HOME
$HOME
$HOME/.bashrc
$HOME/.cache
$HOME/.cache/matplotlib
$HOME/.cache/matplotlib/fontlist-v3.11.0.json
$HOME/.config
$HOME/.config/matplotlib
$HOME/.gaia
$HOME/.gaia/agents
$HOME/.gaia/agents/email
$HOME/.gaia/config.json
$HOME/.profile
$HOME/.ssh
$HOME/.ssh/id_rsa
$HOME/Documents
$HOME/Documents/thesis.txt
$HOME/mytools
$HOME/mytools/bin
$HOME/mytools/bin/mytool

### AFTER — checksums of the things that must survive
0bed1a7ba620b7dfef33c8eeb5fa2984  $HOME/Documents/thesis.txt
31ee9d2fb96e8e145b8d810b143d5e73  $HOME/.ssh/id_rsa
7470c5dcc776e229cb68d5f1a329c4a6  $HOME/mytools/bin/mytool
### AFTER — .bashrc
# user bashrc<EOL>
export EDITOR=vim<EOL>
alias ll='ls -la'<EOL>
<EOL>
export PATH="$PATH:$HOME/mytools/bin"<EOL>
### AFTER — .profile (hand-edited installer block must remain)
# user profile<EOL>
umask 022<EOL>
<EOL>
# Added by GAIA installer<EOL>
export PATH="$PATH:/somewhere/the/user/edited"<EOL>
🔍 Five adversarial containment cases
OUTSIDE fingerprint before any case: 0a55bdde47bdde285913e6b5f938a35c  -

==================================================================
CASE 1 — ~/.gaia/traces is a SYMLINK to a directory outside HOME
==================================================================
lrwxrwxrwx 1 tomas tomas 43 Sep 28 17:22 <lab>/case1/.gaia/traces -> <lab>/OUTSIDE/precious
The following will be removed:
  (--purge) <lab>/case1/.gaia/traces
  [removed] <lab>/case1/.gaia/venv
  [removed] <lab>/case1/.gaia/chat
  [removed] <lab>/case1/.gaia/documents
  [skip] <lab>/case1/.gaia/lemonade (does not exist)
  [skip] <lab>/case1/.gaia/electron-config.json (does not exist)
  [removed] <lab>/case1/.gaia/gaia.log
  [skip] <lab>/case1/.gaia/electron-install-state.json (does not exist)
  [skip] <lab>/case1/.gaia/electron-install.log (does not exist)
  [removed] <lab>/case1/.gaia/bin
  [removed] <lab>/case1/.gaia/traces
  [removed] <lab>/case1/.gaia/host
  [edited] <lab>/case1/.bashrc (removed the GAIA installer PATH line)
  [edited] <lab>/case1/.profile (removed the GAIA installer PATH line)
### exit above
--- survivors under OUTSIDE/ after case 1 ---
<lab>/OUTSIDE/elsewhere-gaia/custody.db
<lab>/OUTSIDE/precious/keepme.txt
<lab>/OUTSIDE/precious/keepme2.txt

==================================================================
CASE 2 — GAIA_HOME escapes HOME via a relative ../../ path
==================================================================
GAIA_HOME=<lab>/case2/.gaia/../../OUTSIDE/precious
error: Refusing to --purge <lab>/OUTSIDE/precious: it does not look like a GAIA data directory. Expected the directory to be named '.gaia' or to contain one of: config.json, gaia.log, logs, chat, memory.db, scratchpad.db, connectors, lemonade, electron-config.json, electron-install-state.json, electron-install.log. GAIA_HOME is set to '<lab>/case2/.gaia/../../OUTSIDE/precious'.
### exit=64
--- survivors under OUTSIDE/ after case 2 ---
<lab>/OUTSIDE/elsewhere-gaia/custody.db
<lab>/OUTSIDE/precious/keepme.txt
<lab>/OUTSIDE/precious/keepme2.txt

==================================================================
CASE 3 — GAIA_DAEMON_HOME points outside the GAIA home
==================================================================
GAIA_DAEMON_HOME=<lab>/OUTSIDE/elsewhere-gaia
  [note] Daemon state at <lab>/OUTSIDE/elsewhere-gaia is outside the GAIA home (GAIA_DAEMON_HOME), so it is left alone. Run `gaia daemon stop`, then delete it yourself.
  [note] <lab>/case3/.profile has a '# Added by GAIA installer' line whose PATH export was changed by hand, so it is left alone. Remove it by hand if you no longer need it.
--- survivors under OUTSIDE/ after case 3 ---
<lab>/OUTSIDE/elsewhere-gaia/custody.db
<lab>/OUTSIDE/precious/keepme.txt
<lab>/OUTSIDE/precious/keepme2.txt

==================================================================
CASE 4 — GAIA_HOME = $HOME itself (structural guard)
==================================================================
error: Refusing to uninstall: the GAIA home resolves to <lab>/case4, which is your home directory (or contains it). Purging it would delete <lab>/case4/documents — on Windows and macOS that is your real Documents folder. GAIA_HOME is set to '<lab>/case4'. Point GAIA_HOME at a dedicated GAIA data directory (the default is <lab>/case4/.gaia).
### exit=64
--- $HOME/Documents/thesis.txt still there? ---
-rw-r--r-- 1 tomas tomas 19 Sep 28 17:22 <lab>/case4/Documents/thesis.txt
--- survivors under OUTSIDE/ after case 4 ---
<lab>/OUTSIDE/elsewhere-gaia/custody.db
<lab>/OUTSIDE/precious/keepme.txt
<lab>/OUTSIDE/precious/keepme2.txt

==================================================================
CASE 5 — ~/.gaia/host is a SYMLINK to a directory outside HOME
==================================================================
lrwxrwxrwx 1 tomas tomas 43 Sep 28 17:22 <lab>/case5/.gaia/host -> <lab>/OUTSIDE/precious
  [note] Daemon state at <lab>/case5/.gaia/host is outside the GAIA home, so it is left alone. Run `gaia daemon stop`, then delete it yourself.
  [note] <lab>/case5/.profile has a '# Added by GAIA installer' line whose PATH export was changed by hand, so it is left alone. Remove it by hand if you no longer need it.
--- survivors under OUTSIDE/ after case 5 ---
<lab>/OUTSIDE/elsewhere-gaia/custody.db
<lab>/OUTSIDE/precious/keepme.txt
<lab>/OUTSIDE/precious/keepme2.txt

==================================================================
OUTSIDE fingerprint after all 5 cases: 0a55bdde47bdde285913e6b5f938a35c  -
before: 0a55bdde47bdde285913e6b5f938a35c  -
RESULT: OUTSIDE tree is BYTE-IDENTICAL — nothing escaped the isolated HOME.
🔍 The corrected skip note, in all three cases that reach it
CASE A — GAIA_DAEMON_HOME IS set, points outside
  [note] Daemon state at <lab>/OUTSIDE/elsewhere-gaia is outside the GAIA home (GAIA_DAEMON_HOME), so it is left alone. Run `gaia daemon stop`, then delete it yourself.

CASE B — neither variable set; host/ is a symlink pointing outside
  [note] Daemon state at <lab>/caseB/.gaia/host is outside the GAIA home, so it is left alone. Run `gaia daemon stop`, then delete it yourself.

CASE C — GAIA_HOME set elsewhere, default ~/.gaia/host left behind
  [note] Daemon state at <lab>/caseC/.gaia/host is outside the GAIA home (GAIA_HOME), so it is left alone. Run `gaia daemon stop`, then delete it yourself.

OUTSIDE before: 475e40a43751da8fff9e7b60acb5e2df  -
OUTSIDE after : 475e40a43751da8fff9e7b60acb5e2df  -
OUTSIDE unchanged — containment held.

@itomek

itomek commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

Every red check here is already red on main — none is this PR's. The black failure that #4320 carried is fixed; what remains in the lint lane is a pylint reimport in a file this diff never touches.

🔍 Check-by-check
Check Cause Also fails on plain main?
Run Code Quality Checks src/gaia/cli.py:3570 W0404: Reimport 'resolve_lemonade_base_url' Yes — byte-identical error in run 36474471545 at main's tip 143c697. src/gaia/cli.py is not in this diff.
Test Gaia Agent test_lemonade_start_hint.py::test_instruction_is_punctuated_once — gaia_agent.stdio has no attribute 'describe_start_hint' Yes — run 36474471758 on main, same test, same 1 failed, 533 passed, 3 skipped, 2 errors.
Unit Tests (Linux / macOS smoke) test_cli_docs_drift.py::test_every_leaf_command_is_documented — eval tasks swebench is undocumented Yes — introduced by #4400 on main. Reproduced locally on a clean main checkout.
Unit Tests (Windows smoke) test_completion_evidence.py::test_symlinked_directory_is_the_same_output — Windows symlink Yes — unrelated PR #4414, off the same main, fails the identical test.
pr-review / run total_cost_usd: 0 with no model usage Infrastructure — an exhausted Anthropic spend limit (#4080), not a review verdict.

This PR's unit-test failures are a strict subset of unrelated PR #4414's: #4414 additionally fails test_chat_completion_stream and test_no_removed_lemonade_cli on the same main.

black + isort are clean here, and pytest tests/unit/installer/ is 205 passed, 6 skipped.

@itomek

itomek commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

Correcting this comment. When it was written, the lint lane was red and this said the cause also failed on main. That stopped being true about 45 minutes later: 6d0d0c4d7 removed the duplicate import on main, so main's lint went green and the sentence became wrong. The branch has been updated to main and Run Code Quality Checks now passes here — the claim is retracted rather than defended.

Two unit lanes are still red. Both fail for reasons this diff cannot reach, and both are checkable against main's source rather than against a CI run — which matters, because main's own Unit Tests runs are almost always cancelled by the concurrency group and give no verdict to cite.

🔍 Check-by-check, re-verified
Check Failing test Why it isn't this PR
Run Code Quality Checks — Now passes. Was src/gaia/cli.py:3570 W0404, fixed on main by 6d0d0c4d7; resolved here by updating the branch. black + isort clean.
Unit Tests (macOS smoke) test_cli_docs_drift.py::test_every_leaf_command_is_documented — [('eval', 'tasks', 'swebench')] #4400 merged at 19:41 today and added the subcommand without a cli.mdx section. git grep -c swebench origin/main -- docs/reference/cli.mdx → 0. Result here: 1 failed, 3190 passed.
Unit Tests (Windows smoke) test_completion_evidence.py::test_symlinked_directory_is_the_same_output A Windows symlink-resolution test. Unrelated PR #4414, off the same main, fails the identical test. Result here: 1 failed, 382 passed.
Test Gaia Agent test_lemonade_start_hint.py::test_instruction_is_punctuated_once — gaia_agent.stdio has no attribute 'describe_start_hint' git grep -c describe_start_hint origin/main -- hub/agents/gaia/python/gaia_agent/stdio.py → 0. main's own Gaia Agent Tests run 36491315229 is failing at tip 722f8219.
Test Agent SDK on Windows (Lemonade Integration) — Needs a live Lemonade on the Windows runner; unrelated to the installer path.
pr-review / run — total_cost_usd: 0 with no model usage — an exhausted spend limit (#4080), not a review verdict. This PR has never actually been reviewed by the bot.

pytest tests/unit/installer/ — the suite this diff actually changes — is 205 passed, 6 skipped.

The swebench documentation gap blocks the Linux/macOS unit lane on every open PR right now. It is one missing section in docs/reference/cli.mdx and is worth closing separately.

@itomek
itomek added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit cb92072 Sep 29, 2026
51 of 54 checks passed
@itomek
itomek deleted the itomek/uninstall-purge branch September 29, 2026 01:30
@kovtcharov-amd kovtcharov-amd mentioned this pull request Oct 6, 2026
5 of 10 tasks
grtninja pushed a commit to grtninja/gaia that referenced this pull request Oct 6, 2026
# GAIA v0.25.0 Release Notes

## Breaking Changes

- **`gaia chat` runs the flagship GAIA agent**, the same agent as the
TUI and Agent UI, instead of the retired ChatAgent. `gaia chat -q "…"`
queries it once. (PR [amd#4520](amd#4520))
- **`gaia talk` transcribes and speaks through Lemonade** — it uses
Lemonade's Whisper and `kokoro-v1`, and stops with the reason if
Lemonade is down. The `[audio]` extra is gone; `pip install
amd-gaia[audio]` only warns. (PR
[amd#4665](amd#4665))
- **The Agent UI runs only the GAIA agent** — the Agent Hub home, agent
picker, and custom-agent export/import are removed from the UI. The CLI
and eval harness can still run other agents. (PR
[amd#4509](amd#4509))
- **The retired nomic embedder is removed** — memory saved with it is
re-embedded on first start. (PR
[amd#4489](amd#4489))
- **Indexed documents are re-indexed once** — the document cache is now
keyed on chunking settings, so the first query after upgrading rebuilds
it. (PR [amd#4624](amd#4624))
- **A skill that asks for more than its tier allows no longer loads** —
the permission ceiling is checked at every load, so a skill already on
disk that exceeds it is refused with the reason. (PR
[amd#4849](amd#4849))

## What's New

- **A larger local model where the GPU holds it** — `gaia init` picks
Qwen3.6-35B-A3B on a 64 GB+ Strix Halo or a 32 GB GPU and keeps
Gemma-4-E4B elsewhere, with each context window sized to available
memory. Qwen3.8 Flash Next is opt-in on 128 GB Strix Halo. (PRs
[amd#4479](amd#4479),
[amd#4670](amd#4670),
[amd#4671](amd#4671),
[amd#4658](amd#4658),
[amd#4655](amd#4655))
- **The Agent UI opens straight to a chat and sets itself up** — a fresh
install runs the same setup steps as the TUI in the window, with
provider, key and model settings, permission modes, and revocable
"always allow" grants. (PR
[amd#4509](amd#4509))
- **A much smaller install** — PyTorch, transformers and accelerate are
gone from the core, `[ui]` and `[talk]` installs; the desktop app's
Python environment drops from ~0.9 GB to ~0.1 GB on Windows. (PRs
[amd#4666](amd#4666),
[amd#4621](amd#4621),
[amd#4665](amd#4665))
- **One Windows installer for the desktop app and the terminal**, with a
GAIA Windows Terminal profile. (PRs
[amd#4720](amd#4720),
[amd#4707](amd#4707))
- **A "no" holds** — a declined action isn't retried through another
tool; the agent asks again with the exact command. The TUI gains
Shift+Tab permission modes. (PRs
[amd#4460](amd#4460),
[amd#4461](amd#4461))
- **Answers are checked against what the tools actually did** — the
agent looks at files you name before answering about them, and a short
plain-English note appears only when work isn't confirmed. (PRs
[amd#4532](amd#4532),
[amd#4501](amd#4501),
[amd#4508](amd#4508))
- **One shell session** — commands share a persistent shell, risky ones
ask instead of being refused, and "full access" is one setting
everywhere. (PR [amd#4408](amd#4408))
- **Memory surfaces what's relevant to each request, with its age**,
keeps what fixed a failure as a lesson for that workspace, and extracts
after the answer instead of before it. (PRs
[amd#4061](amd#4061),
[amd#4066](amd#4066),
[amd#4406](amd#4406))
- **`gaia.log` stays bounded** — it rotates at 10 MB with three backups
(`GAIA_LOG_MAX_MB`, `GAIA_LOG_BACKUPS`). (PRs
[amd#4668](amd#4668),
[amd#4760](amd#4760))
- **Child processes get a trimmed environment** — shell, MCP and skill
children no longer inherit GAIA's internal credentials; `GAIA_NO_DOTENV`
skips loading `.env`. (PRs
[amd#4635](amd#4635),
[amd#4659](amd#4659))
- **Every file tool checks the allowed-folders rule**, and paths inside
an inline shell script are checked one by one. (PRs
[amd#4656](amd#4656),
[amd#4758](amd#4758))

## Bug Fixes

A selection of the user-visible fixes; the full list is in the changelog
below.

- **Local Qwen models no longer loop on repeated tool calls** — they run
with their model card's sampling instead of near-greedy settings. (PR
[amd#4655](amd#4655))
- **Qwen3.6 runs on a Strix Halo with an older AMD driver** — it used to
crash on its first token, so `gaia init` failed; GAIA now turns off the
Vulkan path that crashes on those drivers only, and newer drivers keep
the faster path. (PR [amd#4674](amd#4674))
- **A long PDF no longer hangs or times out while indexing** — big
documents index in the background, and PDFs that only carry
owner-password restrictions now index. (PRs
[amd#4754](amd#4754),
[amd#4679](amd#4679),
[amd#4734](amd#4734))
- **Document answers cite the right document and page**, and every chunk
is embedded whole instead of its first 1,200 characters. (PRs
[amd#4688](amd#4688),
[amd#4723](amd#4723))
- **`gaia init` fails when model verification fails**, shows downloads
live, and no longer hangs while Lemonade hashes a large model. (PRs
[amd#4620](amd#4620),
[amd#4564](amd#4564),
[amd#4673](amd#4673))
- **`gaia init` adds a profile's extras without reinstalling GAIA**,
which failed on Windows while `gaia.exe` was running. (PR
[amd#4672](amd#4672))
- **Every SDK and CLI entry point starts GAIA's own Lemonade**, and
every call goes to the resolved URL with its API key. (PRs
[amd#4657](amd#4657),
[amd#4627](amd#4627))
- **Local chat stays cached across turns** — the system prompt is fixed
and side requests no longer evict the conversation. (PRs
[amd#4698](amd#4698),
[amd#4543](amd#4543))
- **A cloud model selection never preloads a local model**, and cloud
models no longer get llama.cpp-only fields. (PRs
[amd#4757](amd#4757),
[amd#4709](amd#4709))
- **The Agent UI stops claiming "100% local" while chat goes to a cloud
model**, and the chat header names the session's real model. (PRs
[amd#4711](amd#4711),
[amd#4550](amd#4550))
- **Enter can't approve a permission prompt**, and prompts wait 10
minutes before timing out. (PRs
[amd#4700](amd#4700),
[amd#4699](amd#4699))
- **Stopping a run keeps the turn and its steps visible.** (PR
[amd#4743](amd#4743))
- **A file edit keeps the file's line endings** — a one-line edit on
Windows used to rewrite every line ending, so a small change showed up
as the whole file changed. (PR
[amd#4864](amd#4864))
- **A broken agent install is reported as broken, not as missing** — the
error names both package versions and the real import error, and
suggests a reinstall that works. (PR
[amd#4588](amd#4588))
- **A meeting or document summary is never cut off mid-sentence** — a
thinking model used to spend the summary's output budget reasoning, so a
long meeting lost its second half. (PR
[amd#4827](amd#4827))
- **"What can you do?" gets an answer** instead of an attempt to
generate an image of the question. (PR
[amd#4809](amd#4809))
- **Writes and approved edits can't reach credential folders**
(`~/.ssh`, `~/.aws`, `~/.kube` and others), and shell option values and
script arguments get the same path check as plain paths. (PRs
[amd#4848](amd#4848),
[amd#4847](amd#4847))
- **`gaia connectors connect google --grant-agent installed:gaia`
works** — it used to fail with no sign-in link for the shipped agent; it
now asks for read-only Gmail and grants exactly that. (PR
[amd#4859](amd#4859))
- **A "no" to creating a folder also covers writing into it** — GAIA no
longer asks again to create the same folder a different way. (PR
[amd#4857](amd#4857))
- **`gaia skill import` runs the same checks as a hub install** — https
only, the audit, the permission ceiling, and an explicit opt-in for
skills that ship code. (PR
[amd#4849](amd#4849))
- **Memory off and private chats apply to scheduled and background runs
too.** (PRs [amd#4842](amd#4842),
[amd#4821](amd#4821))
- **Memory stops false apologies and reusing deleted values**, saves
"remember this" requests, and skips loading the embedder when memory is
off. (PRs [amd#4708](amd#4708),
[amd#4756](amd#4756))
- **A reply cut off by the token limit is continued** instead of ending
mid-sentence, and a tool call cut off at the output cap is retried
shorter. (PRs [amd#4054](amd#4054),
[amd#4556](amd#4556))
- **The TUI remembers the chosen model** across restarts and
agent-process restarts. (PRs
[amd#4497](amd#4497),
[amd#4710](amd#4710))
- **`gaia uninstall --purge` removes installer binaries, PATH edits and
daemon state.** (PR [amd#4413](amd#4413))

## Contributors

Thanks to the community members who contributed to this release:

- [@itomek](https://github.com/itomek) — the flagship's browser and tool
picker, one shell session, memory extraction off the answer path, stale
tool-result eviction, the TUI's sourced Fireworks rankings, and
`--purge` cleanup (PRs [amd#4407](amd#4407),
[amd#4408](amd#4408),
[amd#4406](amd#4406),
[amd#4465](amd#4465),
[amd#4414](amd#4414),
[amd#4413](amd#4413))
- [@mikemikimike](https://github.com/mikemikimike) — chained shell
command timeouts, bundled skills in frozen builds, and sidecar cleanup
reporting (PRs [amd#4463](amd#4463),
[amd#4467](amd#4467),
[amd#4419](amd#4419))
- [@Hashim1999164](https://github.com/Hashim1999164) — honoring
`GAIA_HOME` for cache, chat and index paths (PR
[amd#4381](amd#4381))
- [@krtadev](https://github.com/krtadev) — `~` expansion in file and
document tool paths (PR [amd#4576](amd#4576))
- [@aksh8b](https://github.com/aksh8b) — telling a broken agent install
apart from a missing one, with a reinstall hint that works (PR
[amd#4588](amd#4588))
- [@Dev-next-gen](https://github.com/Dev-next-gen) — numeric prerelease
ordering in the hub (PR [amd#4517](amd#4517))
- [@vianmangal](https://github.com/vianmangal) — recording denied tool
calls as unsuccessful in memory (PR
[amd#4412](amd#4412))
- [@GaetanVDB07](https://github.com/GaetanVDB07) — links to upstream
credential setup guides for connectors (PR
[amd#4669](amd#4669))
- [@rradjabi](https://github.com/rradjabi) — moving self-hosted CI jobs
to the xsj-dispatch runner pool (PR
[amd#4534](amd#4534))




## Also in this PR

- **Hub floors raised to core 0.25.0** — the chat agent imports the
allowed-folders check that only 0.25.0 ships (amd#4656), so
`gaia-agent-chat` goes to 0.2.0 with `amd-gaia>=0.25.0`, and the
flagship requires `amd-gaia>=0.25.0` and `gaia-agent-chat>=0.2.0`.
- **Two follow-ups held back until that floor could rise** —
`~/.gaia/logs/gaia-agent.log` now rotates like `gaia.log` (amd#4668), and
the chat agent's Python runners and Windows notification start their
children without GAIA's internal credentials (amd#4659).

The full changelog (300 commits) is in `docs/releases/v0.25.0.mdx`.

## Test plan

- [x] `util/validate_release_notes.py docs/releases/v0.25.0.mdx --tag
v0.25.0` passes; narrative is 590 words (cap 600)
- [x] `util/check_component_core_api.py --release-version 0.25.0` passes
- [x] `pytest tests/unit/test_docs_json_release.py
tests/unit/test_check_component_core_api.py
hub/agents/chat/python/tests/test_chat_dependency_floor.py
hub/agents/chat/python/tests/test_dependency_floor.py
hub/agents/gaia/python/tests/test_gen_binaries_lock.py` (72 passed)
- [x] `pytest hub/agents/gaia/python/tests/test_stdio.py` (91 passed,
incl. the new rotation test); `pytest
tests/unit/test_execute_python_file_cwd.py
tests/unit/test_run_python_tool.py` (42 passed)
- [ ] `mintlify validate` (docs CI job) — timed out locally, relying on
CI
- [x] Full flagship eval on main 9ce6598
(https://github.com/amd/gaia/actions/runs/37436249503): 181/308
scenarios pass vs 100/183 for the same categories in the baseline, 39
FAIL→PASS, 13 PASS→FAIL (two fixed in amd#4878, held until after rc1);
retrieval lane still finishing at merge time
- [ ] CI green

## Release checklist

- [ ] Publish `gaia-agent-chat` 0.2.0 only after core 0.25.0 is on PyPI
— it fails at import on an older core
- [ ] Build Installers on the merged SHA (pre-tag verification) before
pushing `v0.25.0`
- [ ] terminal-hub 0.25.0 published before the flagship npm release
consumes `binaries.lock.json`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: Kalin Ovtcharov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

daemon Daemon supervisor / sidecar control plane documentation Documentation changes tests Test changes

Projects

None yet

2 participants