Skip to content

fix(ui): load the model a switch picks, and carry the chat over to it - #7590

Merged
kovtcharov-amd merged 29 commits into
amd:mainfrom
kovtcharov:kalin/gaia-model-switching-bugs-6ee380
Nov 16, 2026
Merged

kovtcharov-amd merged 29 commits into
amd:mainfrom
kovtcharov:kalin/gaia-model-switching-bugs-6ee380

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Switching a chat from Gemma 4 on the NPU to Gemma 4 on the GPU in the Agent UI did nothing visible: the pick was saved, the NPU model stayed loaded, and the GPU one loaded only with the next message. The pick's load was skipped whenever the assistant runs as its packaged sidecar, which is how the app ships. Now the picked model loads right away, and the same holds for the other ways a model changes mid-chat or between sessions.

What else was wrong in the same family, and is fixed here:

  • A switch could be sized against the model it replaces. The new model's window was shrunk, or its load refused, for memory the outgoing model still held.
  • Other ways of changing the model loaded nothing. A custom model id saved in Settings, turning Local only on, and a model picked in the TUI since the app last ran. A pick made while a reply was streaming was dropped; it now loads when the reply ends.
  • A switched chat kept the old model's setup. After NPU → GPU, images still came back "can't read images on the NPU" and document summaries ran on the model the chat started with. A failed switch rolls all of it back. A vision model chosen in Settings now reaches chats that are already open.
  • Settings that were saved but never applied. Choosing a default chat model left the last-picked model in use; a default that is on this PC is now picked too. A context size chosen while the model was busy was dropped when it shrank the window; it now applies once the model is free. Removing the custom model in use goes back to the model picked under Model, as clearing the field does, and loads it.
  • Profile inference in Memory runs on the local model chat was switched to, not the machine default, so it no longer loads a second chat model. A cloud pick still leaves it on the local default.
  • The app's own picture went stale. The model chip kept the old model after a settings change, a queued message could run on the model being replaced, and the TUI didn't save a switch when the agent answered with its own spelling of the id, yet did save one from a turn stopped before it answered.

Verified on a Ryzen AI PC with the real model server: on main, picking Gemma 4 E4B (GPU) after a chat on its NPU build leaves the NPU model the only one loaded; on this branch the GPU build replaces it within seconds of the pick, before any message is sent. LLM-affecting paths touched (tool registration and context eviction on a switch only, never for a chat that doesn't switch); categories to watch on the next RC: rag_quality and the vision and context-management ones.

Test plan

  • python -m pytest tests/unit/test_model_switch_loads.py -q (fails on main: picking the other device sends no load)
  • python -m pytest hub/agents/gaia/python/tests/test_model_switch_follow.py -q
  • python -m pytest tests/unit/test_ui_warmup.py tests/unit/test_free_memory_fit.py -q
  • cd src/gaia/apps/webui && npx tsc --noEmit && npm test
  • cd tui && go test ./internal/ui/chat/
  • On a Ryzen AI PC: chat on Gemma 4 E4B NPU, pick Gemma 4 E4B in the model list, and confirm the status popover shows it loading on the GPU before the next message is sent

Switching a chat from Gemma on the NPU to Gemma on the GPU in the Agent UI
loaded nothing: the pick was saved, the NPU model stayed resident, and the
new one loaded only with the next message. The pick's load was skipped
whenever the assistant runs as its packaged sidecar, which is how the app
ships.

- A pick, a custom model id saved in Settings, a Local only change and a
  restored last model all load the model new turns run. A pick made while
  a reply streams loads when the reply ends, and one made during another
  model's warm-up stops that warm-up.
- A load that replaces the resident chat model is no longer sized, or
  refused, against the memory that model still holds.
- A session switched in place moves image reading, the document-summary
  model, context eviction and the reasoning-effort tool to the new model,
  and a failed switch rolls all of it back.
- The web UI refreshes the model chip after a settings change and holds a
  queued message until a queued model is applied. The TUI saves a switch
  the agent confirmed under its own spelling of the id.
@github-actions github-actions Bot added documentation Documentation changes installer Installer changes llm LLM backend changes tests Test changes performance Performance-critical changes agents tui Go terminal UI (gaia-tui) labels Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

Switching models in the Agent UI now loads the picked model right away. This covers the shipped app, where the assistant runs as a sidecar. A chat that switches also takes the new model's setup with it, so images work again after moving from the NPU to the GPU, and a failed switch is fully undone. I found no bugs in the changed paths. The fix has only been proven against the stand-in model server, so a Ryzen AI PC run and a screenshot of the status popover are still owed before this is called done.

  • Missing evidence on the real app: the PR has no screenshot of the Agent UI showing the picked model loading, and the hardware check in the Test plan is still open. Please add both once a machine is free. Neither blocks merge.
  • One change isn't in the description: profile inference (Memory) now runs on the chat model you picked, not the machine default. Please mention it in the description.

Real-world evidence

N/A: this run produced no evidence bundle. The verdict rests on reading the code. This runner has no Python test environment, so I could not run the PR's tests here either. The author says everything was tested against the recording stand-in server and nothing on real NPU or GPU hardware.

🔍 Technical details

Issues

🟡 Real-world evidence (Agent UI surface): the pick→load flow and the status popover are Agent UI behaviour. The rubric asks for a Playwright before→after screenshot. The description says the hardware run is pending. The unchecked Ryzen AI item covers the device switch, and a screenshot of the popover showing GPU Gemma loading would close the gap. This is a nudge, not a merge blocker.

🟢 Profile inference model change isn't described or tested (src/gaia/ui/routers/memory.py:1545-1549): inference now uses resolve_chat_model() whenever that model runs locally. If that pick isn't downloaded, the stream reports "isn't downloaded" even when the default model is. That matches "no silent fallback", but it changes behaviour and has no test. Please add a line to the PR body, or a test in tests/unit/test_memory_router.py.

🟢 Custom-model change check is case-sensitive (src/gaia/ui/routers/system.py:1217): restore_last_model now compares with _model_ids_match, but update_settings still uses !=. Saving gemma-4-e4b-it-gguf over Gemma-4-E4B-it-GGUF starts a fresh warm-up. That is harmless, because the relayed load skips a model that is already resident, but using the same helper in both places is cleaner:

        from gaia.llm.lemonade_client import _model_ids_match

        previous = (db.get_setting("custom_model") or "").strip() or None
        changed = (value is None) != (previous is None) or (
            value is not None and not _model_ids_match(value, previous)
        )

Checks done outside the diff

  • Turn end: the busy probe is bool(chat._active_sse_handlers) (warmup.py:481). _cleanup_stream pops the handler before calling turn_ended(). When two chats are streaming, the request stays in _pending until the last one ends, and test_a_pick_made_during_a_chat_turn_loads_when_the_turn_ends covers that.
  • Startup restore with load=False: if Lemonade still holds the old model, _load_model returns early ("Already loaded"). The "startup" warm-up that follows then resolves the restored custom_model, and _load_for_relayed_chat loads it because it isn't resident. So a model picked in the TUI still loads on PCs with ≥24 GB of RAM. Smaller PCs skip both the preload and the warm-up, which matches the docs.
  • own_window_of (lemonade_manager.py:777) is consumed at lines 957 and 1215, so it isn't dead code.
  • set_reasoning_effort after switching away from a model that grades reasoning: the tool stays registered, but _set_reasoning_effort already returns an error saying the new model has no effort setting. This was already handled.
  • Doc drift: docs/sdk/sdks/agent-ui.mdx (warm-up and PUT /api/settings) and the npm CHANGELOG were updated. SKILL.md's "the provider's default model" still matches the new resolve_default_chat_model() behaviour. I found no stale "warm-up skipped for the sidecar" claim elsewhere.

Strengths

  • The tests run against the recording stand-in Lemonade, which keeps one chat slot like the real server. They assert which loads the server received, not just that a mock was called, which is exactly the gap the original bug hid in.
  • Switch rollback now covers the new state (vision client, RAG model holders, evictor, tool overrides), and test_a_switch_that_fails_leaves_the_old_models_settings exercises it.
  • Memory sizing counts the outgoing chat model's memory only within the same pool (NPU RAM vs GPU), with tests for both directions and for multi-slot servers.

… stopped switch correctly

Three model settings were saved but never took effect. Choosing a default
chat model in Settings left the last model picked in use, so "In use" never
changed; a default that is on this PC is now picked too. A context size
chosen while the model was answering or warming up was dropped when it
shrank the window; it now applies once the model is free. A TUI turn
stopped right after a switch saved that model as the one to reopen on
though it never answered; the next reply saves it instead.
…t the inference model

Saving the same custom model id in another spelling counted as a change and
started a warm-up. Profile inference following the model chat was switched
to had no test.
…ching-bugs-6ee380

# Conflicts:
#	hub/agents/gaia/npm/CHANGELOG.md
…odel change that can't switch

A context size waiting on a running reply read Lemonade from the server's
event loop when the reply ended, which could stall every stream while the
model server was slow. A default-model change whose switch failed dropped
the downloads ticked with it and left only a raw error; the default stays
saved, the downloads start, and the notice says the switch didn't happen.

Also: removing the custom model in use loads the default chat falls back
to; a waiting context reload re-checks for a new turn right before it
starts; a vision model counts as the chat model a load replaces; profile
inference follows the picked model only when it is downloaded.
The model that reads images was read once, when a chat's agent was built,
so a chat opened before the change kept the old one until it switched chat
models or the app restarted. Each turn now starts from the current choice,
in the app and in the sidecar. Also drops a duplicate import.
@kovtcharov-amd kovtcharov-amd added bug Something isn't working agent-ui Agent UI changes labels Nov 12, 2026
# Conflicts:
#	hub/agents/gaia/npm/CHANGELOG.md
#	src/gaia/apps/webui/src/components/settings/AdvancedSettings.tsx
The model-switch tests flaked on the Windows runner: the stand-in model server
wrote a /load to its request log only after sending the reply, so a test that
read the log right after its own setup load sometimes missed it and then saw it
as a load the pick had made.
Kept main's picked-model handling and the PR's warm-ups; dropped the PR's explicit /load log in the fake server, which main's send_response logging now covers.
CHANGELOG: kept both sides' entries.
Removing a model the user added that was their Custom model ID dropped chat
to the default and loaded that, though clearing the field goes back to the
model picked under Model; the next start restored neither. It now leaves
the pick running, saves it for the next start, and loads whatever chat
moved to, including after removing the configured default.

Also: a model picked in the TUI is restored as the pick, not shown as a
Custom model ID; image reading follows the chat's own model when an
in-process agent re-registers its tools; the sidecar reads the vision
setting off its event loop; a context size that can't be applied is
dropped with one warning instead of one after every turn.
…able

A 503 while the model server restarts no longer drops the size chosen
during a reply; it is tried again after the next turn. The sidecar's
per-turn vision check runs through the same off-loop helper as its other
setup, so a disconnect mid-turn releases it the same way.
Saving a setting that left the model unchanged followed the warm-up anyway,
so an older warm-up's failure showed as this change's. A model picked just
as a reply ended now applies at once instead of waiting for another reply,
which also held queued messages back. Two turns ending together load a
waiting pick once, and a failed switch no longer leaves the reasoning tool
it registered.
…ching-bugs-6ee380

# Conflicts:
#	hub/agents/gaia/npm/CHANGELOG.md
A refresh landing between the settings call and the check made an actual
change look like none, so its load showed no banner. Also documents that a
context size chosen during a reply or warm-up now applies when it ends, and
tests that a pick made with no reply running applies at once.
With chat on hybrid and the assistant in its sidecar, a pick asked the
model server to load a model named "hybrid", which doesn't exist, so the
app showed the load as failed. A warm-up runs outside any turn and now
loads the cheap model hybrid starts on, as the in-process warm-up does.
Profile inference resolves hybrid the same way.
@kovtcharov-amd kovtcharov-amd added the ready_for_ci Run CI workflows on draft PR without requesting review label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This PR makes a model switch in the Agent UI load the new model right away, including in the packaged sidecar app where it was silently skipped. A chat that switches models now also takes on the new model's image-reading, document and context settings. The code is careful and well tested, with real-server tests that check what actually got loaded rather than only what was called. What blocks it is two API docs that still describe the old behaviour, which is a quick fix:

  • Profile inference docs still say it always runs on the machine's default model. It now runs on the local model chat was switched to.
  • Remove-custom-model docs still say removing it just clears the saved model. Removing the custom model in use now switches chat back to the model picked under Model, saves that pick, and loads it.

Not blocking: the change is visible in the UI (the model chip, a load starting on pick, and a new notice in English and Arabic), but the description has only a text account of the hardware run. Please add a before/after screenshot, and an Arabic one of the new "Saved as the default, but…" notice.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review plus the PR's own tests (the new suite runs against the stand-in model server). The author's Ryzen AI PC check (NPU → GPU loads on pick, before any message is sent) is described in the PR body, with no screenshot.

🔍 Technical details

Issues found

🟡 Doc drift: profile inference model (docs/sdk/sdks/agent-ui.mdx:2214-2217). stream_inference now uses start_model(resolve_chat_model()) when that model is local and downloaded, and falls back to resolve_default_chat_model() only for a cloud or missing pick (src/gaia/ui/routers/memory.py:1549-1570). The doc still says "It runs on the machine's default local chat model (default_model …)".

    — each `insight` event is a candidate fact awaiting approval. It runs on
    the local model chat runs now (the last pick, its cheap model for
    `hybrid`), so no second chat model loads; when that pick is a cloud model
    or isn't downloaded, it runs on the machine's default local chat model
    (`default_model` in `~/.gaia/config.json`). A cloud
    `default_model`, or a local one that isn't downloaded yet, ends the stream

🟡 Doc drift: DELETE /api/providers/local/custom/{model_id} (docs/sdk/sdks/agent-ui.mdx:3097-3099). remove_custom_model now sets custom_model to model_after_clearing_custom(db), writes that model as last_model/last_provider, and requests a fresh warm-up when the running local model changed (src/gaia/ui/routers/providers.py:2066-2085). The doc says only "clear default_model / last_model if either named it".

    Remove a model the user added: delete it from Lemonade if it was
    downloaded, forget it, and clear `default_model` / `last_model` if either
    named it. When it was the custom model in use, chat goes back to the
    model picked under Model (as clearing `custom_model` does), that model is
    saved as `last_model`, and a local one starts loading at once. Returns `{"removed", "display_name", "cleared"}`. **404** for a

🟡 Follow-up: UI evidence. New user-facing text (settings.models.appliedNotSwitched, en + ar) and visible chip and popover behaviour, but no screenshot. Per the reviewing-agent-ui skill, run npm run test:rtl and attach the Settings › Models notice in Arabic.

🟢 Startup restore can skip the load it defers. server.py preload calls restore_last_model(db, load=False) ("start-up loads it itself"), but the preload then returns early if any chat model is resident. The restore result is cached, so /api/providers/active won't request the load either. Case: a TUI pick (last_model) differs from what is resident. The new-chat warm-up probably covers it, but the tested path (test_a_model_picked_in_the_tui_is_loaded_when_the_app_restores_it) goes through /api/providers/active, not the preload.

🟢 Misleading log on pick-cancel (src/gaia/ui/warmup.py:115). The picked model is appended to _turn_models, so _stop_for_another_model logs "a chat turn uses X" when it was a pick, not a turn.

🟢 _pending_context_reload is mutated from the warm-up thread, the turn-cleanup thread and the request thread with no lock (providers.py). sorted(set) during a concurrent add can raise RuntimeError: Set changed size during iteration, which _model_now_idle would log as a failed resize. Guard it with _restore_lock or a small dedicated lock.

Checked and fine

  • The streaming cleanup calls turn_ended on every exit path (_cleanup_stream). The busy check only counts streaming turns, so the non-streaming path needs no hook.
  • A queued chip pick that fails clears queued, so the new modelSwitching gate in ChatView can't strand queued messages.
  • set_reasoning_effort stays registered after switching away from a grading model, but already returns a clear error there.
  • Rollback snapshots _tool_overrides, vision, RAG and eviction state, and test_a_switch_that_fails_leaves_the_old_models_settings covers it.
  • New test files sit in tests/unit/ and hub/agents/gaia/python/tests/, both collected by CI.

Strengths

  • test_model_switch_loads.py drives real routes against the fake Lemonade with a one-chat-slot cap. It asserts what ended up resident, which is exactly the "mocks prove we called it" gap CLAUDE.md warns about.
  • Sizing a switch against the outgoing model's memory is handled per pool (NPU RAM vs. GPU), with tests for both a discrete and a shared-memory GPU.
  • The TUI fix (sameModelID, no save from a cancelled turn) mirrors the backend's id matching instead of adding another case-only compare.

… switched model

Profile inference now runs on the local model chat uses, and removing the
custom model in use moves chat back to the Model pick and loads it.
@kovtcharov-amd kovtcharov-amd added ready_for_ci Run CI workflows on draft PR without requesting review and removed ready_for_ci Run CI workflows on draft PR without requesting review labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

Picking another model in the Agent UI now loads it right away, including in the packaged-sidecar setup the app ships with, where the pick used to be saved and then ignored until the next message. A chat that switches models also takes on the new model's setup (image reading, document summaries, context eviction), and a failed switch rolls all of that back. The logic is sound and well tested against the stand-in model server. I found nothing that blocks the merge.

  • Add a before/after screenshot of the pick loading. The on-hardware check is described in words only. This is an Agent UI change, so a screenshot of the status popover showing the GPU model loading before any message is sent is the proof reviewers expect.
  • Smaller items are listed below: per-turn work on the event loop in the non-streaming chat path, and a start-up case where a model restored from the TUI isn't preloaded.

Real-world evidence

N/A: no evidence bundle was produced for this run. The PR description reports a manual check on a Ryzen AI PC (NPU Gemma replaced by GPU Gemma within seconds of the pick) but includes no screenshot. For the rendered UI, this verdict rests on static review and the new tests, which run against the real stand-in Lemonade and check which models it was asked to load.

🔍 Technical details

Issues

🟡 Agent UI evidence missing a screenshot. The rubric asks for a before→after screenshot embedded in the PR body for an Agent UI surface. The text claim of the Ryzen AI check is good, but it doesn't replace the screenshot. This is a nudge, not a blocker.

🟢 follow_model_switch runs on the event loop in the non-streaming path (src/gaia/ui/_chat_helpers.py:4329). _get_chat_response is async, and _follow_model_settings(agent) runs inline. On every cached-agent turn it calls resolve_default_vision_model, which runs GaiaConfig.load() and, for an -FLM model, is_cloud_model_with_catalog, which may query Lemonade. The sidecar path (server.py:1789) moves this same call off the loop on purpose, and the streaming path already runs it inside _run_agent's thread. The non-streaming path already does other sync work here, so this is minor, but await asyncio.to_thread(_follow_model_settings, agent) would make the three paths consistent.

🟢 Start-up restore doesn't preload a restored model when another chat model is still resident (src/gaia/ui/server.py:658-679). restore_last_model(db, load=False) can switch custom_model to the TUI's pick, but the preload then returns early if any llm/vlm is loaded, even when it's the old model. _restore_result is cached for the run, so the later /api/providers/active call won't request the load either. The new-chat warm-up probably covers this in practice. If it doesn't, consider comparing the resident model with model_id before the early return, or calling request_warm_up(..., fresh=True, model=...) when the restore changed the model.

🟢 A hybrid pick made during a warm-up may cancel that warm-up for nothing (src/gaia/ui/warmup.py:113-116). select_model passes model="hybrid", but the warm-up's target is start_model("hybrid"), which is the cheap model. _stop_for_another_model compares "hybrid" with that target, finds no match, and cancels; _again then reloads the same model. Nothing breaks, but the work is wasted and the log says "a chat turn uses hybrid". Resolving through start_model before appending would fix it.

Checked, no finding

  • Sibling paths: the sidecar /query path (server.py), the streaming and non-streaming UI turns, the TUI save path (canonical.go / relayedmodel.go) and the start-up restore all apply the same follow and load behaviour.
  • _restore_switch_state restores the new followers (vlm_*, evictor, RAG model holders) and removes the _tool_overrides the switch created. test_a_switch_that_fails_leaves_the_old_models_settings covers this.
  • _with_own_memory credits the outgoing chat model only within the same pool, and NPU RAM only through the recomputed free_without_npu_chat, so a discrete card isn't credited RAM. The tests cover both directions.
  • Doc drift: grepped docs/ and hub/agents/** for the old sidecar warm-up, profile-inference and context-size claims. Only agent-ui.mdx stated them, and it is updated. The CHANGELOG entry covers the flagship behaviour change.
  • turn_ended runs after the producer join and off the loop. _pending is taken under the lock, so two turns ending together start one load.

Strengths

  • The tests assert what the fake Lemonade was actually asked to load (FAKE_LEMONADE_MAX_LLM models the single chat slot), not just that a mock was called. That is the right way to test this boundary.
  • Switch rollback is extended to cover everything the switch now moves, and a test pins it.
  • Context-size changes made while the model is busy are now applied when it frees, instead of being dropped.

@kovtcharov-amd kovtcharov-amd added ready_for_ci Run CI workflows on draft PR without requesting review and removed ready_for_ci Run CI workflows on draft PR without requesting review labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

Picking another model in the Agent UI now loads it right away, including when the assistant runs as its packaged sidecar, which is how the app ships. The same fix reaches the other ways the model changes: a custom model ID, Local only, a TUI pick, removing a custom model, and a pick made mid-reply. A switched chat also takes the new model's image reading, document summaries and context eviction, and a failed switch rolls them back. I found no blocking bugs. The memory fit, the warm-up queue and the rollback snapshot all hold up, and the new tests run against the recording fake server, so they check what was actually loaded, not just that a function was called.

Two small things worth doing:

  • Show the fix on screen. The PR has a written account of the Ryzen AI check but no screenshot of the status popover switching NPU → GPU. Add one before→after pair.
  • A hybrid pick restarts its own load. If the hybrid "cheap" model is already warming when hybrid is picked, the pick stops that warm-up and starts it again. It still ends up loaded, just slower.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review and the PR's own tests. The author reports a manual check on a Ryzen AI PC (on main, picking Gemma 4 E4B GPU leaves the NPU build loaded; on this branch the GPU build replaces it within seconds of the pick), but no screenshot or captured request/response is attached.

🔍 Technical details

Issues

🟡 Real-world evidence: no screenshot for a UI-visible change. This changes what the model chip, the status popover and Settings › Models show after a switch. The test-plan item on hardware is checked, but nothing is rendered on the PR. One before/after image of the popover after picking the GPU build would cover it. This is a nudge, not a merge block.

🟢 A hybrid pick cancels the warm-up of its own cheap model (src/gaia/ui/warmup.py, PrefixWarmer.request). select_model and _load_newly_selected_model pass the raw id ("hybrid"). In the sidecar path, _load_for_relayed_chat sets the warm-up's target to the cheap model that start_model resolved it to. _stop_for_another_model sees a mismatch, sets cancel, and _again reruns the job. The in-process path targets the agent's own id, which can still be "hybrid". So treat the pick as matching when either model or start_model(model) matches the target. Don't swap one spelling for the other, or the in-process case breaks instead.

🟢 No test for the TUI's stopped-turn branch (tui/internal/ui/chat/canonical.go:286). !m.cancelPending now keeps relayedPending for the next reply, but samemodelid_test.go covers only sameModelID. A short case would pin it: a stopped turn saves nothing, and the following reply saves the switch.

🟢 Broad catch at startup (src/gaia/ui/server.py, around restore_last_model(db, load=False)). It is logged, and /api/providers/active retries the restore, so nothing is lost. Narrowing it to (ProviderError, GaiaConfigError) would keep a genuine bug from passing as a warning.

Checked, no finding

  • Sibling paths: the vision follow-up runs on the streaming and non-streaming cache hits (_chat_helpers.py) and on the sidecar /query (server.py, off the loop). restore_last_model covers both start-up (load=False) and the /active route. _chat_entry(health, expected) is updated at both callers.
  • turn_ended() runs after _active_sse_handlers.pop, so the held-back pick isn't stopped by its own turn's busy flag.
  • _with_own_memory adds back only the memory of chat models in the same pool (NPU↔GPU), and only when Lemonade reports one chat slot (max_models.llm == 1). The multi-slot test covers the case where the other model stays loaded.
  • Doc drift: the warm-up, PUT /api/settings, stream-inference, custom-model DELETE and context-size docs in agent-ui.mdx are updated. I found no stale copy of the old claims in docs/ or hub/agents/**. The flagship CHANGELOG names both agent-side changes.

Strengths

  • test_model_switch_loads.py exercises the shipped setup (sidecar registry, an NPU, one chat slot) and asserts on what is resident, which is exactly the gap that let this ship.
  • Snapshot and restore of the follower state (_snapshot_followers / _restore_followers) keeps "a failed switch leaves the session as it was" true for the new state, and a test proves it.
  • A context size chosen while the model was busy is now applied once the model is free (apply_pending_context_reload) instead of being dropped, and a model server GAIA doesn't own is still never reloaded.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 15, 2026
@kovtcharov-amd kovtcharov-amd added ready_for_ci Run CI workflows on draft PR without requesting review and removed ready_for_ci Run CI workflows on draft PR without requesting review labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

When you switch models mid-chat in the Agent UI, the new model now loads right away instead of waiting for the next message. That includes the packaged app, where the agent runs as a separate process and the load used to be skipped. The chat also takes on the new model's settings: image reading, document summaries, context handling and the memory budget. I found no correctness bugs. The new tests run against a stand-in model server that records every load, so they check what actually got loaded, not just that a function was called.

Nothing blocks the merge. Two small cleanups are below. One piece of proof is missing: the Settings screen has a new message, "saved as default, but couldn't switch", in English and Arabic, and the PR has no screenshot of it.

Real-world evidence

N/A: this job wrote no evidence bundle. My verdict on the Agent UI and TUI rests on reading the code and tests, plus the author's own Ryzen AI check written up in the PR description. Nothing here ran the real app.

  • Missing screenshot (🟡, not blocking): the new "applied but not switched" notice in Settings › Models has no screenshot in English or Arabic. Please add one from npm run test:rtl or the desktop app before or soon after merge.
🔍 Technical details

Issues found

🟢 The reasoning-effort tool is only ever added on a switch, never removed (hub/agents/gaia/python/gaia_agent/stdio.py:846)

  • _apply_switch registers set_reasoning_effort when the new model grades reasoning. Switching from gpt-oss to Gemma keeps the tool, because apply_model_features merges _tool_overrides back into _instance_tools.
  • The tool fails gracefully on the wrong model (_set_reasoning_effort returns an error). But the prompt still offers a tool the model can't use, which contradicts the mixin's "other models' prompts carry no tool they cannot use".
  • The CHANGELOG line reads as if the tool now follows the model both ways. Either drop the override when model_grades_reasoning() is false after the switch, or reword the CHANGELOG so it says the tool is only ever added.

🟢 Saving a custom model starts a warm-up even when the running model doesn't change (src/gaia/ui/routers/system.py:1290)

  • changed compares the stored custom_model setting, not the model that ends up running. Example: with custom_model unset, entering the default model's own id starts a fresh warm-up of the model already loaded.
  • It's harmless: the relayed path skips a resident model, and the in-process path only re-primes the prompt. But it doesn't match the doc's "a change that leaves a different local model running". Comparing before/after effective models, the way remove_custom_model does with _running_model, would make the two agree.

🟢 A stuck turn still triggers the queued load (src/gaia/ui/_chat_helpers.py:4665)

  • turn_ended() runs even when the producer outlived its grace period and was parked in _stopping_sessions. A pick queued during that turn then loads over a thread that may still be reading from the old model.
  • This is rare, and the slot is already closed. Consider skipping turn_ended() when producer.is_alive().

Checked and fine

  • The warm-up state machine: a fresh pick while warming stops a warm-up of a different target (also when set_target lands later). A pick while a turn streams is held in _pending and taken exactly once. _model_now_idle defers the context reload while a warm-up runs.
  • apply_pending_context_reload can be called from both the warm-up thread and the turn-end thread. _start_reload's non-blocking lock keeps that from starting two reloads.
  • _with_own_memory doesn't double-count: it skips the model being reloaded and models in the other pool, and only applies the NPU-RAM credit on a GPU load when max_models.llm == 1.
  • Switch rollback restores vlm_*, the RAG model and vision holders, context eviction and _tool_overrides, and deletes an override dict the switch created.
  • follow_model_switch runs in the worker thread on both cached-agent paths, and through _off_loop in the sidecar's /query, so the per-turn config read never blocks the event loop.
  • The new string is in both en.ts and ar.ts. The docs (agent-ui.mdx) and the gaia npm CHANGELOG cover the warm-up, settings, memory-inference and remove-model changes. I found no stale copies of the old claims elsewhere in docs/.
  • LLM-affecting paths (tool registration and context eviction on a switch) are named in the PR as categories to watch on the next RC: rag_quality, vision and context management.

Strengths

  • test_model_switch_loads.py and test_model_switch_follow.py drive the real routes and the real flagship against a recording Lemonade that keeps one chat slot. They follow the repo rule that a test should prove the call was valid, not just that it was made, and the device-switch case fails on main.
  • Every new failure path reports what happened instead of hiding it. Two examples: the "saved but couldn't switch" notice, and the memory router logging why it fell back to the default model.
  • The TUI's sameModelID closes a real case where a switch was never saved, with a table test covering case, user. prefix and empty ids.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 16, 2026
Merged via the queue into amd:main with commit dcaba6f Nov 16, 2026
173 of 234 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/gaia-model-switching-bugs-6ee380 branch November 16, 2026 00:28
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 17, 2026
kovtcharov-amd added a commit to tylerbea/gaia that referenced this pull request Nov 17, 2026
# GAIA v0.26.0 Release Notes

## Summary

- A new chat answers sooner, and follow-up turns stay cached.
- GAIA reads and sends Gmail, manages Google and Outlook calendars,
analyzes long recordings and video links, and answers Discord messages.
- A model server that is down or restarting is reported in one plain
sentence, and open chats keep working after a restart.
- Chats no longer leave MCP server processes behind, and credential
files stay closed to scripts.
- The terminal UI is now `gaia-cli`; see Breaking Changes.
- 23 contributors merged 812 PRs and closed 726 issues since v0.25.4.

## Breaking Changes

- **The terminal UI is now `gaia-cli`, and `gaia-cli` no longer means
the Python command** — its old name was `gaia-tui`. Updating installs
`gaia-cli`; the one-line installer keeps `gaia-tui` working, and the
Windows setup and macOS and Linux packages remove it. A script that ran
the Python CLI as `gaia-cli` should call `gaia`. (PRs
[amd#7492](amd#7492),
[amd#8367](amd#8367))
- **Dynamic tool loading is on by default, and its old settings are
gone** — `GAIA_DYNAMIC_TOOLS_TAU` and `GAIA_DYNAMIC_TOOLS_MAX` do
nothing, and a choice made under the old Beta toggle is not carried
over. Turn it off with `gaia config set dynamic_tools false`. (PR
[amd#6449](amd#6449))
- **The `use_chatgpt` and `use_openai` arguments are gone** — delete
them and pick the model through Lemonade. (Issue
[amd#7023](amd#7023))
- **The `gaia-agent-chat` package is gone** — import `ChatAgent` with
`from gaia_agent.chat_agent import ChatAgent, ChatAgentConfig`;
`ChatAgentLite` is removed, so use `gaia chat`. Old sessions still
reopen on GAIA. (Issue [amd#6103](amd#6103))

## What's New

- **Faster first replies** — chat starts on the most-used tools and
loads the rest once, and follow-up turns stay cached. (PRs
[amd#6449](amd#6449),
[amd#5039](amd#5039),
[amd#7150](amd#7150))
- **Gmail and calendar from the flagship** — draft, reply, forward and
send Gmail with approval, plus Google and Outlook calendar tools. (PRs
[amd#6479](amd#6479),
[amd#6485](amd#6485),
[amd#7164](amd#7164))
- **Analyze long recordings and video links** — a timestamped,
speaker-labelled transcript, report and subtitles, from the CLI or the
Agent UI. (PR [amd#6451](amd#6451))
- **Message GAIA from Discord** — DM your own bot, and set reminders,
alerts and triggers it runs on its own. (PRs
[amd#6786](amd#6786),
[amd#7144](amd#7144),
[amd#6887](amd#6887),
[amd#6886](amd#6886))
- **Hear replies read aloud** — a speaker button on every Agent UI
reply. (PR [amd#6489](amd#6489))
- **See what is happening** — a live CPU, memory, GPU, NPU and network
strip in every chat, cloud spend in the composer, and every log in the
Agent UI. (PRs [amd#6548](amd#6548),
[amd#6775](amd#6775),
[amd#6664](amd#6664))
- **Edit a sent message, try an answer again, continue a stopped one**,
and reopen past sessions in the TUI. (PRs
[amd#7459](amd#7459),
[amd#7465](amd#7465),
[amd#7165](amd#7165))
- **Skills** — add one by pasting a link, get suggestions for unloaded
skills, and use three new ones: report-from-sources, log-triage and
meeting-actions. (PRs [amd#5803](amd#5803),
[amd#5423](amd#5423),
[amd#5421](amd#5421))
- **Models** — a `hybrid` choice sends each turn to a cheaper or a
stronger model, and Muse Glimmer 30B is an opt-in local model. (PRs
[amd#8196](amd#8196),
[amd#7168](amd#7168))
- **Documents in more languages** — Arabic, Japanese, Chinese and
Cyrillic files read correctly, and a damaged UTF-8 file is refused
instead of garbled. (PRs [amd#8024](amd#8024),
[amd#8230](amd#8230),
[amd#8296](amd#8296))
- **Safer by default** — project guidance loads only after asking once
per folder, and Undo puts back files a script moved. (PRs
[amd#6965](amd#6965),
[amd#8128](amd#8128))

Upgrade with:

```bash
pip install --upgrade amd-gaia
```

## Bug Fixes

A reference list, most user-visible first. Every merged change is in the
changelog below.

### Model server and chats

- **Open chats keep working after the model server restarts** — GAIA
keeps its own server's key across a restart. (PRs
[amd#8366](amd#8366),
[amd#8162](amd#8162))
- **Deleting a chat stops its MCP servers, and never starts or restarts
the agent.** (PRs [amd#8364](amd#8364),
[amd#8380](amd#8380))
- **MCP server processes are no longer left behind on every new chat.**
(PR [amd#8298](amd#8298))
- **A failed MCP server no longer shows "Connected"**, and a missing
Node.js or uv is named instead of a transport error. (PRs
[amd#8273](amd#8273),
[amd#8365](amd#8365),
[amd#8163](amd#8163))
- **A document taken off a chat is no longer read** — its access is
revoked and searches skip it. (PRs
[amd#8375](amd#8375),
[amd#8025](amd#8025),
[amd#8160](amd#8160))
- **A model server that isn't answering gets one plain wording
everywhere**, appears without a reload, and is translated. (PRs
[amd#7576](amd#7576),
[amd#7789](amd#7789),
[amd#8259](amd#8259),
[amd#8235](amd#8235),
[amd#7833](amd#7833))
- **A document added at launch waits for GAIA's model server.** (PR
[amd#8304](amd#8304))
- **A failed turn names the cause and offers Settings, not a command**;
long errors are cut at a word. (PRs
[amd#7729](amd#7729),
[amd#8276](amd#8276))
- **An agent crash offers the agent's log**, not the model server's. (PR
[amd#8359](amd#8359))
- **A sidecar shuts down when its daemon is killed**, and the daemon
restarts if left on another model server. (PRs
[amd#8306](amd#8306),
[amd#8075](amd#8075))
- **An unreachable custom Lemonade URL is named**, not called "not
installed". (PRs [amd#8122](amd#8122),
[amd#8066](amd#8066))
- **A cloud turn that failed before any reply is not billed.** (PR
[amd#8321](amd#8321))
- **A model switch loads the model and carries the chat over.** (PR
[amd#7590](amd#7590))
- **The TUI says when GAIA stopped mid-answer.** (PR
[amd#8309](amd#8309))

### Safety and privacy

- **A hard link to a credential file is treated as that file** in shell
searches. (PR [amd#8330](amd#8330))
- **Credential folders are closed to scripts and linked files**,
recursive searches skip credential files, and credentials are masked in
file text and tool output. (PRs
[amd#8136](amd#8136),
[amd#8220](amd#8220),
[amd#8191](amd#8191),
[amd#8119](amd#8119))
- **The masked-secret write guard is re-checked after approval.** (PR
[amd#8260](amd#8260))
- **Links and Python file access stay inside allowed folders.** (PR
[amd#8204](amd#8204))
- **One folder grant covers writing, editing and renaming there.** (PR
[amd#7495](amd#7495))
- **A timed-out approval is not re-asked, and an unattended refusal is
not taken as the user's "no".** (PRs
[amd#8076](amd#8076),
[amd#8193](amd#8193),
[amd#8145](amd#8145))
- **Unattended refusals lead with the safe fallback.** (PR
[amd#8253](amd#8253))
- **Text handed over to translate is treated as text**, not as
instructions or a path to browse, so it no longer asks to run a command.
(PRs [amd#8233](amd#8233),
[amd#8266](amd#8266),
[amd#8168](amd#8168))
- **Look-alike Unicode letters are read as their plain forms** in checks
for planted instructions and fence markers. (PRs
[amd#8274](amd#8274),
[amd#8275](amd#8275),
[amd#8215](amd#8215),
[amd#6837](amd#6837))
- **Made-up command output is caught for more ways of asking.** (PR
[amd#8271](amd#8271))
- **A private chat changes nothing stored in memory.** (PRs
[amd#8069](amd#8069),
[amd#8174](amd#8174))
- **Sign-in codes stay out of logs.** (PR
[amd#8149](amd#8149))
- **A shell command that reaches a local address is called out.** (PR
[amd#8156](amd#8156))
- **Shell guardrails survive wrappers, multi-line commands and `gh issue
close`.** (PRs [amd#6964](amd#6964),
[amd#8065](amd#8065),
[amd#6877](amd#6877))

### Documents and files

- **Every document in a search gets its best passage.** (PR
[amd#8074](amd#8074))
- **Legacy-encoded Arabic, Japanese, Chinese and Cyrillic text files
read correctly**, short ones in this PC's code page. (PRs
[amd#8012](amd#8012),
[amd#8230](amd#8230),
[amd#8307](amd#8307))
- **Chinese, Japanese and Arabic text is searched, chunked and
summarized**, and Arabic PDF numbers read in order. (PRs
[amd#8024](amd#8024),
[amd#8053](amd#8053),
[amd#8070](amd#8070))
- **A damaged UTF-8 file is refused instead of garbled**, and Python
scripts write UTF-8. (PRs
[amd#8296](amd#8296),
[amd#8104](amd#8104))
- **A short file already read whole skips the extra extraction pass.**
(PR [amd#8241](amd#8241))
- **A saved web page is indexed as its text**, and PDFs with large
arrays read. (PRs [amd#8179](amd#8179),
[amd#8181](amd#8181))
- **After a one-file miss, every attached document is searched**, and a
document is re-searched before "not in it". (PRs
[amd#8153](amd#8153),
[amd#8106](amd#8106))
- **A document's text is treated as data when summarizing.** (PR
[amd#8132](amd#8132))
- **PDF table rows stay whole.** (PR
[amd#8116](amd#8116))
- **An edited document is re-indexed and no longer served stale.** (PRs
[amd#6906](amd#6906),
[amd#6947](amd#6947),
[amd#6917](amd#6917))
- **Parallel uploads no longer break each other's embedding.** (PR
[amd#8049](amd#8049))
- **Attachments are cited by their own name**, and previews stop showing
raw bytes. (PRs [amd#6896](amd#6896),
[amd#7753](amd#7753))
- **Undo puts back files a Python snippet moved or renamed.** (PR
[amd#8128](amd#8128))
- **A damaged .pptx is reported as damaged**, and a too-large file as
over the limit. (PRs [amd#7906](amd#7906),
[amd#7904](amd#7904))
- **Images left unread while the vision model was down are read later**,
and a broken vision model is named. (PRs
[amd#7133](amd#7133),
[amd#7154](amd#7154))

### Agent answers

- **Mail tools load for mail questions.** (PR
[amd#8222](amd#8222))
- **A skill suggestion is offered instead of an order to load.** (PR
[amd#8229](amd#8229))
- **Fewer wasted steps, stalls and empty answers in the agent loop.**
(PR [amd#8211](amd#8211))
- **Long plan-driven turns run to their step budget**, and the default
step limit is 1000. (PRs [amd#8110](amd#8110),
[amd#7325](amd#7325))
- **An answer that reports a failure gets no "not confirmed" note**, and
more ways of claiming a save are checked. (PRs
[amd#7735](amd#7735),
[amd#7539](amd#7539),
[amd#7579](amd#7579),
[amd#7540](amd#7540))
- **An answer that claims all files were read says how many were.** (PR
[amd#8109](amd#8109))
- **A turn stopped at a limit ends with the work done and a way on.**
(PRs [amd#8112](amd#8112),
[amd#6296](amd#6296))
- **A reply that turns into repeated noise is stopped**, and native
tool-call JSON stays out of the answer. (PRs
[amd#8173](amd#8173),
[amd#7248](amd#7248))
- **A thinking model's reasoning stays out of `gaia prompt` output**,
which prints the answer once. (PRs
[amd#8141](amd#8141),
[amd#8135](amd#8135),
[amd#7238](amd#7238))
- **Edits to a file owned by another process are stopped**, and an edit
sent twice is refused. (PRs
[amd#6434](amd#6434),
[amd#6844](amd#6844))
- **Relative outputs are found in the folder the request named.** (PR
[amd#8103](amd#8103))
- **Scratch folders no longer pile up in the temp folder.** (PR
[amd#8108](amd#8108))
- **Overflows from cloud and Claude models trigger trim-and-retry.** (PR
[amd#7758](amd#7758))
- **A memory GAIA is asked to keep is saved**, a forget goes through
after "never mind", and every copy of a forgotten memory goes. (PRs
[amd#7148](amd#7148),
[amd#6920](amd#6920),
[amd#6858](amd#6858))

### Goals, schedules and automations

- **A failing recurring schedule is recorded on the schedule itself.**
(PR [amd#8320](amd#8320))
- **A goal is marked stalled after 10 check-backs**, its retry count
resets when queued again, and one that can't be done stops retrying.
(PRs [amd#8223](amd#8223),
[amd#8198](amd#8198),
[amd#8081](amd#8081))
- **Deleting a schedule asks in a dialog**, and a deleted or paused
schedule closes its run's chat. (PRs
[amd#8237](amd#8237),
[amd#8157](amd#8157))
- **`gaia schedule run` uses the app's model and never downloads one.**
(PR [amd#8113](amd#8113))
- **A finished schedule notifies you**, and failures from while the app
was closed are announced. (PRs
[amd#7696](amd#7696),
[amd#7648](amd#7648))
- **`gaia schedule` says an unknown name is unknown**, and `add` prints
one line when it reuses a name. (PRs
[amd#7534](amd#7534),
[amd#8126](amd#8126))
- **Schedules whose name contains a slash can be managed.** (PR
[amd#6954](amd#6954))
- **Scheduled sends that fail are reported to the user.** (PR
[amd#6979](amd#6979))

### CLI

- **`gaia chat` and `-p` send every request to `--base-url`**, as do
talk indexing and API health. (PRs
[amd#8256](amd#8256),
[amd#7236](amd#7236))
- **`gaia download` and `gaia api start` fail when the server is
unreachable.** (PRs [amd#6872](amd#6872),
[amd#7237](amd#7237),
[amd#7346](amd#7346))
- **`gaia cache status` shows every cache folder and its size** and no
longer follows Windows junctions. (PRs
[amd#7132](amd#7132),
[amd#7239](amd#7239))
- **`gaia kill --lemonade` stops the Lemonade Server GAIA uses.** (PR
[amd#6991](amd#6991))
- **`gaia prompt --device` selects the matching model.** (PR
[amd#6894](amd#6894))
- **`gaia connectors connect` names the connectors it can use**, and
unhandled commands exit 1. (PRs
[amd#7535](amd#7535),
[amd#7051](amd#7051))
- **A search service error is one line, not a traceback.** (PRs
[amd#8310](amd#8310),
[amd#8311](amd#8311),
[amd#8315](amd#8315))
- **A relayed `gaia -p` reports steps, tool calls and tokens.** (PR
[amd#7234](amd#7234))

### Agent UI and TUI

- **A taken schedule name shows on the Name field**, and the New
schedule draft survives closing the dialog. (PRs
[amd#7675](amd#7675),
[amd#7798](amd#7798))
- **Chat search shows plain words and stays fast on huge messages.**
(PRs [amd#7772](amd#7772),
[amd#8206](amd#8206))
- **One size for a model and one free-space figure everywhere.** (PR
[amd#8231](amd#8231))
- **"Memory on" is a small menu**, and Remove on a document can be
undone. (PRs [amd#7498](amd#7498),
[amd#7512](amd#7512))
- **Setup offers this PC and a cloud model as two equal choices**, and
keeps the cloud model in use when run again. (PRs
[amd#7470](amd#7470),
[amd#7778](amd#7778))
- **One Connect card shows when several mail steps need an account.**
(PR [amd#8352](amd#8352))
- **The spend in the composer shows this chat and today to the same
decimals**, and leaves failed turns out. (PRs
[amd#8351](amd#8351),
[amd#7581](amd#7581))
- **A Mac update chip links to the release instead of installing.** (PR
[amd#7832](amd#7832))
- **The side panel, home and Settings get more room.** (PR
[amd#8277](amd#8277))
- **Arabic layout fixes** across answer tables, the file browser,
documents, setup and the network rate. (PRs
[amd#8238](amd#8238),
[amd#7898](amd#7898),
[amd#7666](amd#7666),
[amd#7821](amd#7821),
[amd#8372](amd#8372))
- **The TUI resolves bare file names in its start folder** and sends it
so the project map finds the project. (PRs
[amd#7246](amd#7246),
[amd#7766](amd#7766))
- **The TUI names GAIA's chat model in the status line on a shared
Lemonade.** (PR [amd#8224](amd#8224))
- **The robot head shows on notifications.** (PR
[amd#8341](amd#8341))

### Install, Linux and desktop

- **A running exe under either name no longer breaks the one-line
installer**, and the old name is refused when going back. (PR
[amd#8367](amd#8367))
- **A stock GNOME desktop keeps GAIA running without a tray extension.**
(PR [amd#6868](amd#6868))
- **The AppImage gets a launcher, and GAIA shows once in the app grid
and opens on Wayland.** (PRs
[amd#7078](amd#7078),
[amd#7149](amd#7149))
- **A missing system library or CA file is named** instead of dying
silently. (PRs [amd#7157](amd#7157),
[amd#7255](amd#7255))
- **An agent left running for days on macOS keeps answering.** (PR
[amd#6851](amd#6851))
- **A low-disk update no longer marks the install failed.** (PR
[amd#6916](amd#6916))
- **A crashed window offers a reload instead of quitting GAIA**, and a
clean renderer exit is not a crash. (PRs
[amd#7301](amd#7301),
[amd#7155](amd#7155))
- **Each process stops reserving 5 GB of OpenBLAS threads.** (PR
[amd#7324](amd#7324))
- **A second launch skips the install screen** for a new user. (PR
[amd#7994](amd#7994))
- **The macOS menu bar draws the GAIA logo.** (PR
[amd#6989](amd#6989))
- **Docs** for another computer's Lemonade, setup steps, memory
categories, privacy claims and eval examples. (PRs
[amd#6865](amd#6865),
[amd#6852](amd#6852),
[amd#6864](amd#6864),
[amd#7544](amd#7544),
[amd#6863](amd#6863))

### Email, connectors and tools

- **Outlook search queries Graph rejects are no longer taught.** (PR
[amd#8123](amd#8123))
- **Connectors Test starts an MCP server and says if it started.** (PR
[amd#6883](amd#6883))
- **Slack setup is one click**, and Slack and gateway auth say they need
a terminal. (PRs [amd#6855](amd#6855),
[amd#7537](amd#7537))
- **A cancelled sign-in is called cancelled, with an offer to retry.**
(PR [amd#7840](amd#7840))
- **`search_web` keeps working through a long research turn**, and
redirect rate waits no longer time out a fetch. (PRs
[amd#7859](amd#7859),
[amd#6857](amd#6857))
- **Invented figures are caught** when written like `2,708.95 USD`, and
averages worked by hand after a failed run are checked. (PRs
[amd#6817](amd#6817),
[amd#6831](amd#6831))

## Known Issues

- **NPU PCs: chat on the NPU profile returns an empty reply**, and the
embedder falls back to GGUF — use the GPU/CPU profile for now. Tracked
in [amd#6008](amd#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[amd#7226](amd#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** until the model server restarts — restart it
from time to time. An upstream Lemonade issue, tracked in
[amd#8312](amd#8312).
- **Coding: editing a requested config or data file, or a skill's
`SKILL.md`, does not mark an earlier "tests pass" as stale** — re-run
the tests after such an edit. Tracked in
[amd#8213](amd#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** and suggests `gaia init` — start your server again.
Tracked in [amd#8313](amd#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[amd#8218](amd#8218).
- **Attached files lose the spaces in their names**, so `team meeting
notes.wav` becomes `team_meeting_notes.wav` — rename the file before
attaching if the name matters. Tracked in
[amd#8361](amd#8361).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — Gmail and calendar tools,
interactive cards, image thumbnails, Slack setup, and over a hundred
Agent UI fixes including Arabic translation and layout (PRs
[amd#6479](amd#6479),
[amd#6485](amd#6485),
[amd#6086](amd#6086),
[amd#7697](amd#7697),
[amd#6855](amd#6855),
[amd#6851](amd#6851))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — per-agent
tool scopes, word-stem skill search, TUI media outputs, agent safety
checks, email, memory and RAG fixes (PRs
[amd#6558](amd#6558),
[amd#6523](amd#6523),
[amd#6254](amd#6254),
[amd#6821](amd#6821),
[amd#6964](amd#6964),
[amd#6985](amd#6985))
- [@ityashag](https://github.com/ityashag) — goal stalling,
failing-schedule records, document search and vision-indexing fixes, CLI
cache and kill fixes, and docs (PRs
[amd#8223](amd#8223),
[amd#8320](amd#8320),
[amd#7131](amd#7131),
[amd#7133](amd#7133),
[amd#7132](amd#7132),
[amd#6991](amd#6991))
- [@bniladridas](https://github.com/bniladridas) — NPU model checks in
the TUI, unattended refusals, mail tool loading, setup-problem wording,
and goal retry counts (PRs
[amd#7122](amd#7122),
[amd#8253](amd#8253),
[amd#8222](amd#8222),
[amd#8210](amd#8210),
[amd#8198](amd#8198),
[amd#6875](amd#6875))
- [@rezamuliawijaya](https://github.com/rezamuliawijaya) — eval corpus
checks, `gaia download` and `gaia prompt --device` fixes, document
re-index and forget fixes (PRs
[amd#6869](amd#6869),
[amd#6872](amd#6872),
[amd#6894](amd#6894),
[amd#6917](amd#6917),
[amd#6920](amd#6920))
- [@lakshyab20](https://github.com/lakshyab20) — CLI errors that print a
message instead of a traceback (PRs
[amd#7534](amd#7534),
[amd#7535](amd#7535),
[#7536](https://github.com/amd/gaia/pull/7536),
[amd#7537](amd#7537))
- [@KrBeTect2025](https://github.com/KrBeTect2025) — `--base-url` for
`gaia chat`, quiet `gaia prompt` output, and `gaia schedule add` on a
reused name (PRs [amd#8256](amd#8256),
[amd#8141](amd#8141),
[amd#8126](amd#8126),
[#8257](https://github.com/amd/gaia/pull/8257))
- [@Drchennnn](https://github.com/Drchennnn) — voice startup indexing,
live-catalog model status, and release tests (PRs
[#6638](https://github.com/amd/gaia/pull/6638),
[#7123](https://github.com/amd/gaia/pull/7123),
[#7152](https://github.com/amd/gaia/pull/7152))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — the
once-per-folder project guidance prompt (PRs
[amd#6965](amd#6965),
[#6987](https://github.com/amd/gaia/pull/6987))
- [@iam-hk](https://github.com/iam-hk) — skill suggestions, the
masked-secret write guard, and accented-letter reading (PRs
[amd#8229](amd#8229),
[amd#8260](amd#8260),
[amd#8274](amd#8274))
- [@wasiulhaque](https://github.com/wasiulhaque) — email docs and API
contract checks (PRs [#6879](https://github.com/amd/gaia/pull/6879),
[#6910](https://github.com/amd/gaia/pull/6910),
[#6913](https://github.com/amd/gaia/pull/6913))
- [@tharunsridhar](https://github.com/tharunsridhar) — refusing to index
an unreadable document, and docs (PRs
[#6978](https://github.com/amd/gaia/pull/6978),
[#6933](https://github.com/amd/gaia/pull/6933),
[#7001](https://github.com/amd/gaia/pull/7001))
- [@swastiktawate](https://github.com/swastiktawate) — CI references,
file-io tests and email doc links (PRs
[#6922](https://github.com/amd/gaia/pull/6922),
[#6960](https://github.com/amd/gaia/pull/6960),
[#6961](https://github.com/amd/gaia/pull/6961))
- [@burgulvedant](https://github.com/burgulvedant) — a cloud model that
needs reconnecting, and guide fixes (PRs
[#8209](https://github.com/amd/gaia/pull/8209),
[#6900](https://github.com/amd/gaia/pull/6900),
[#6931](https://github.com/amd/gaia/pull/6931))
- [@DevShoaib78](https://github.com/DevShoaib78) — hub agent docs (PRs
[#6940](https://github.com/amd/gaia/pull/6940),
[#6941](https://github.com/amd/gaia/pull/6941))
- [@saruk-vedant](https://github.com/saruk-vedant) — refusing a router
model as the Custom model ID (PR
[#7548](https://github.com/amd/gaia/pull/7548))
- [@txltedxgod](https://github.com/txltedxgod) — tools used on unprinted
turns (PR [#7265](https://github.com/amd/gaia/pull/7265))
- [@recentbontipiece](https://github.com/recentbontipiece) — the macOS
menu bar logo (PR [amd#6989](amd#6989))
- [@kratos0718](https://github.com/kratos0718) — privacy wording (PR
[amd#7544](amd#7544))
- [@georgekhananaev](https://github.com/georgekhananaev) — the
`--save-baseline` warning (PR
[#6981](https://github.com/amd/gaia/pull/6981))
- [@SanketJadhav7d3](https://github.com/SanketJadhav7d3) — privacy
wording for cloud sessions (PR
[#6888](https://github.com/amd/gaia/pull/6888))
- [@cf3901646](https://github.com/cf3901646) — a midnight-UTC test fix
(PR [#7114](https://github.com/amd/gaia/pull/7114))

## Full Changelog

**812 commits** since v0.25.4. The PR links above are the changelog.

Full Changelog:
[v0.25.4...v0.26.0](amd/gaia@v0.25.4...v0.26.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-ui Agent UI changes agents bug Something isn't working documentation Documentation changes installer Installer changes llm LLM backend changes p2 low priority performance Performance-critical changes ready_for_ci Run CI workflows on draft PR without requesting review tests Test changes tui Go terminal UI (gaia-tui)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants