Repository navigation
fix(ui): refuse email HTTP turns with memory disabled - #5756
kovtcharov-amd merged 3 commits into
Conversation
|
Verdict: Approve with suggestions Before this change, a private chat or a chat with memory off could be handed to the email agent, which never got the setting and went on saving memories. Now the chat refuses those turns before anything reaches the email agent, and tells the user to switch to the GAIA agent. Normal chats with memory on work as before. This is the interim fix #5482 asks for. The full fix is still open: the email agent has to accept and honor the memory setting itself. Nothing blocks the merge. Two small follow-ups:
Expect one visible change: anyone who has memory turned off in Settings can no longer use the email agent in chat at all until the full fix lands. That is what the issue asked for, and the memory guide now documents it. Real-world evidenceN/A here: this run produced no evidence bundle, so the verdict rests on the code review plus the author's own evidence. The PR description embeds before/after Agent UI screenshots of a private HTTP turn. It also links HTTP receipts for both the baseline and the final wheel, which show zero init/query calls for private and memory-off turns and one for a normal memory-on turn. I relay these as the author's claims; I didn't re-run them. 🔍 Technical detailsIssues found 🟢 Field doc is stale now that the gate applies to every profile ( 🟢 Blank error if a future profile has no memory floor and no message ( Notes (no action needed)
Strengths
|
A profile with no memory contract now always takes the refusal path, so an empty memory_upgrade_message would show users a blank error. Assert every such profile has one, and correct the field doc to say the message also covers agents that never take memory.
## Why this matters v0.25.2 is a bug-fix release on top of v0.25.1: setup and install no longer stop at the first failed step, shell and file access handle Windows paths and text encodings, the Agent UI and desktop app stop showing misleading states, and document search, email and skills each lose a handful of rough edges. 55 commits since v0.25.1; notes are in `docs/releases/v0.25.2.mdx` and credit 15 outside contributors. ## Test plan - [x] `python util/validate_release_notes.py docs/releases/v0.25.2.mdx --tag v0.25.2` passes - [x] `mintlify validate` (from `docs/`) passes - [x] `python util/check_doc_links.py --internal-only`, `python util/check_doc_versions.py` and `node installer/version/bump-ui-version.mjs --check` pass - [x] `python util/check_component_core_api.py --release-version 0.25.2` passes - [x] `pytest tests/unit/test_docs_json_release.py tests/unit/test_check_component_core_api.py tests/unit/test_release_tag.py tests/unit/test_hub_core_version_gate.py`: 156 passed - [ ] CI green on the merge commit - [ ] `release_train_dryrun.yml` passes on that commit before the RC tag ## Evals to re-run on the RC tag LLM-affecting PRs merged without per-PR evals; run these on `v0.25.2-rc1`: - `gaia_shell` and shell/safety (amd#5794, amd#5751, amd#5768) - `gaia_honesty` (amd#5753) - `gaia_skills_tasks` and `gaia_skills_lifecycle` (amd#5422, amd#5755) - `rag_retrieval` and `rag_quality` (amd#5742, amd#5754, amd#5761, amd#5817, amd#5812) - email scenarios (amd#5767, amd#5811) - `tool_selection` and `error_recovery` (amd#5732) - Claude provider thinking replay (amd#5072) - memory categories (amd#5818 merged; amd#5756 has not) ## Release checklist - [ ] Freeze main, wait for green CI on the exact commit, pass `release_train_dryrun.yml`, then push `v0.25.2-rc1` - [ ] Extend the changelog if main gains commits before the tag
|
Thanks @jipeng6036-del. You found that the capability check skipped the email profile entirely, so a private or memory-off chat reached the email agent with no memory setting, and the fix reuses the existing gate instead of adding an email special case. Both of the review bot's findings are fixed in the current diff. I merged current 🔍 Technical details
|
|
Merged — thanks @jipeng6036-del. A chat with memory off can no longer quietly send an email turn that ignores that setting; it now stops with a message saying what to do. The full fix (the email agent honouring the memory setting) is still tracked in #5482. |
Summary
Email turns sent through the chat HTTP API now refuse private and memory-off modes explicitly, rather than forwarding a request the email sidecar cannot honor. Ordinary memory-on turns keep working.
Why
The email profile declares no memory capability, but the dispatcher skipped the capability check for that profile. A private/off turn could therefore reach email without any memory flag. This implements the issue's requested interim refusal; it does not implement the full email memory contract.
Linked issue
Refs #5482
Changes
Test plan
python -m pytest tests/unit/ -n4 --dist=worksteal --timeout=180: 27,517 pass,478 conditional skips,3 xfail,41 subtests; zero failures/errors in the full final log and JUnit.python util/lint.py --all: all17 blocking checks pass; the configured MyPy advisory remains. Module-skip guard and capability-matrix check pass.npm ci && npm run build, wheel/sdist build,twine check, and both frontend/wheel dist checks pass. All29 built web assets and changed runtime modules match the final wheel.Exact commits, environment versions, commands, complete logs, same-condition environment controls and artifact hashes. Earlier full runs exposed HOME/tempguard and generated node_modules/package-scan interference; both reproduce on the exact baseline. After correcting only the environment, the entire unchanged suite above passes. Public full-log copies redact credential-shaped authentication-test parameter IDs; results are intact.
The scarce-hardware eval categories to watch on the next RC are
memory,gaia_memory,gaia_email, perCLAUDE.md's RC policy. No local model/judge was invoked. Hosted PR CI and human maintainer review remain pending.Evidence
gaia chat --ui ...launch, server output and daemon handshake are in the evidence. Terminal email interaction is outside this patch.Before: a private HTTP turn reaches email with no memory field.
After: the turn fails clearly before email init/query; reload retains the error.
The external email executable and Lemonade metadata endpoints are local receipt-only fixtures; the production CLI/routes/database/SSE/daemon/proxy run unmodified. No mailbox, real mail, credentials, model inference or paid service was used. Handle acquisition can still start the sidecar before refusal. Runtime boundary and reproducible commands.
Checklist