Skip to content

fix(ui): keep spaces and scripts in attachment names - #8461

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
bniladridas:fix/8361-attachment-names
Nov 18, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
bniladridas:fix/8361-attachment-names

Conversation

@bniladridas

@bniladridas bniladridas commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Attached files keep the name the user gave, including spaces, accents and non-Latin scripts, and the agent quotes that name instead of an ASCII underscore version. The side rail also shows the user's name when a duplicate upload is stored with an id prefix.

Why

team meeting notes.wav was stored and quoted as team_meeting_notes.wav, so GAIA answered with a filename the user never used; images had the same problem. The fix keeps the original name on disk and percent-encodes it in attachment links, while traversal, separators, control characters, symlinks and subfolders stay refused.

Linked issue

Closes #8361

Changes

  • Preserve spaces, accents and non-Latin scripts in uploaded copy names; replace only path, shell, control and Windows-illegal characters.
  • Percent-encode the stored name as one URL path segment in both upload responses.
  • Decode and validate attachment links on the backend and in the web UI before granting file access or rewriting a link to a filesystem path.
  • Match attachment grants against real uploads-directory entries, so names with spaces and parentheses still scope correctly.
  • Cover spaced, Arabic, Persian, percent, hash, ampersand and hostile names through upload, serving, link resolution and attachment scope.
  • Keep the side rail's document name on the user's filename: a duplicate stored as <id>_Q3 plan.pdf now shows Q3 plan.pdf even when the composer link lookup misses because of a literal space or percent-encoding.

Test plan

  • pytest tests/unit/chat/ui/test_upload_names.py tests/unit/chat/ui/test_media_upload.py tests/integration/test_files_router.py: 275 passed, 1 skipped. The skip is the Windows-only drive-letter test at tests/integration/test_files_router.py:514.
  • npm test in src/gaia/apps/webui: 4,385 passed and 2 failed of 4,387. Both failures are the known locale-dependent timestamp assertions in MessageBubble.answerPolish.test.tsx (Nov 2 expected, 2 Nov received), unrelated to this change.
  • npm run build: TypeScript check and Vite build completed.
  • pytest tests/unit/chat/ui/ tests/integration/test_files_router.py: 4,257 passed, 11 skipped. This includes the new two-case side-rail regression.
  • The new regression fails against the previous lookup with 0123456789ab_Q3 plan.pdf and passes with the display_file_name fallback.
  • black --check, isort --check-only, and flake8 with GAIA's line-length and ignore settings on the two changed Python files: clean.
  • pytest tests/unit/: not completed. Collection needs ignores for the optional reportlab and anthropic packages, and the run blocks in tests/unit/eval/test_integrity_gate.py::test_cli_compare_completeness_opt_in, which spawns python -m gaia.cli eval agent --compare with HOME pointed at a pytest temp dir. It made no progress for over 16 minutes. This is an environment/test limitation, not a pass; CI remains the authoritative full-suite run.
  • python util/lint.py --all: 16 of 18 checks pass, one warning, and Pylint fails on two pre-existing E1120 errors at src/gaia/utils/awake_clock.py:47 and src/gaia/utils/terminal.py:109, both outside this diff. MyPy emits warnings only.

Evidence

  • HTTP API / REST: real requests through the app's FastAPI TestClient. Uploading Q3 plan.pdf twice produced:
{"filename": "Q3 plan.pdf", "original_name": "Q3 plan.pdf", "url": "/api/files/uploads/Q3%20plan.pdf", "size": 5, "content_type": "application/pdf", "is_image": false}
{"filename": "9b344abeab79_Q3 plan.pdf", "original_name": "Q3 plan.pdf", "url": "/api/files/uploads/9b344abeab79_Q3%20plan.pdf", "size": 6, "content_type": "application/pdf", "is_image": false}

GET /api/files/uploads/9b344abeab79_Q3%20plan.pdf returned 200 with body b'second'.

The same stored path fed to TurnLedger.summary produced:

[{"name": "Q3 plan.pdf", "path": ".../gaia-home/chat/uploads/9b344abeab79_Q3 plan.pdf", "pages": [1], "passages": 1}]

This is the reviewer-approved substitute for the missing screenshots.

  • Agent exposed in the Agent UI (Chat): the earlier before/after screenshots are no longer available locally, and no screenshot was fabricated. The real upload response, encoded URL fetch, and rail output above are the evidence supplied instead.
  • MCP tools / servers: N/A, no MCP surface changed.
  • CLI: N/A, no CLI surface changed.

Checklist

  • I have linked a GitHub issue above (Closes #N / Fixes #N / Refs #N).
  • I have described why this change is being made, not just what changed.
  • I have run linting and tests locally (python util/lint.py --all, pytest tests/unit/) (ran, with the two pre-existing Pylint errors and the full-suite blocker described in Test plan).
  • I have attached real-world evidence matched to the surface I changed (see Evidence above), or marked each surface N/A. The Agent UI screenshot is unavailable; the real upload, encoded URL fetch, and rail output are supplied as the reviewer-approved alternative.
  • I have updated documentation if user-visible behavior changed (see CONTRIBUTING.md) (checked; no existing doc describes the old underscore naming).

Attached files were stored under an ASCII-only name, so "team meeting notes.wav" became "team_meeting_notes.wav" and answers quoted a name the user never gave. Copies now keep spaces, accents and non-Latin scripts, replacing only characters that read as a path, a shell fragment, a control character or a Windows-illegal character.

The upload response percent-encodes the stored name as one URL path segment, and the web UI and the backend both decode before validating an attachment link. Traversal, separators, control characters, symlinks and subfolders stay refused, so a link still grants only a regular file directly inside the chat's uploads folder.

Tests cover spaced, Arabic, Persian, percent, hash, ampersand and hostile names through upload, serving, link resolution and the attachment scope.

Closes amd#8361

Signed-off-by: Niladri Das <[email protected]>
@github-actions github-actions Bot added the tests Test changes label Nov 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

Attachments now keep the name the user gave them, spaces and Arabic or Persian text included, and the agent quotes that name instead of team_meeting_notes.wav. The security side holds up: links are decoded before they are checked, so an encoded ../, slash, backslash, null byte or symlink is still refused on both the backend and the web UI. Two things to fix before merge:

  • The turn's side rail can show the internal id prefix. When a second, different file with the same spaced name is attached, it is stored as <id>_Q3 plan.pdf. The rail's name lookup still assumes upload names have no spaces or escapes, so it shows 0123456789ab_Q3 plan.pdf instead of Q3 plan.pdf. Before this PR, names with no spaces mapped back correctly.
  • No real-world evidence is on the PR. The description says the before/after screenshots exist locally but aren't embedded, and no request/response from the upload route was captured. Embed the screenshots, or paste one real upload response plus a fetch of the encoded URL.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review alone. The upload route, link serving and Agent UI rendering were not exercised here, and the local Python test run couldn't start because this runner has no pytest or dotenv.

🔍 Technical details

🟡 Side-rail display names miss spaced or encoded uploads (src/gaia/ui/turn_summary.py:478, outside the diff)
upload_display_names matches \((?P<target>[^)\s]+)\). After this PR:

  • a raw composer link gives the key 0123456789ab_Q3%20plan.pdf (still percent-encoded);
  • a resolved link (…/uploads/0123456789ab_Q3 plan.pdf) contains a space, so it doesn't match at all.

TurnLedger._documents looks up Path(source_file).name = 0123456789ab_Q3 plan.pdf, misses, and shows the id-prefixed name. I checked the regex directly on both link shapes. The simplest fix is to fall back to the existing helper, which already strips the id:

"name": display_names.get(base) or display_file_name(path),

Or decode the target with unquote in upload_display_names and allow spaces in the resolved-path form. Add a test_turn_summary.py case with an id-prefixed spaced name either way.

🟡 Real-world evidence missing. This changes a user-visible Agent UI surface (what the agent cites) and an HTTP response (url is now percent-encoded). The description has neither embedded screenshots nor a captured upload request/response. Either one satisfies the rubric for merge-time CI.

🟢 _unsafe_name_char and its constants are copied verbatim from src/gaia/ui/routers/documents.py:127-154. The upload and document-library naming rules are now two copies that can drift. documents.py could import them from gaia.upload_names, which is the lower layer.

🟢 attached_upload_paths (src/gaia/ui/utils.py:610) now checks every entry in the uploads folder against the message with f"]({path})" in message. Two minor effects:

  • It runs once per turn per file in the folder. That's fine at today's sizes, but worth knowing because media is only pruned after its retention period.
  • A link to …/a) b.txt also grants a sibling upload named a. Both files are the user's own uploads, so this is low risk.

Checks run:

  • Sibling callers of the upload URL/name format: turn_summary.upload_display_names (finding above), _chat_helpers grant paths, the Electron safeUrlTransform path and messageImages. All except the first are updated or covered.
  • Docs: no doc describes the old underscore/attachment naming, so there is no drift.

Strengths

  • Decode-then-validate is mirrored on both sides (_upload_path / uploadName), and malformed escapes (%zz, a lone %) fail closed.
  • Tests cover the realistic cases end to end: upload → serve → resolve → grant for spaced, Arabic, #/&/% names, plus the encoded-traversal, symlink and device-name cases.
  • The NFC normalisation and UTF-8 byte cap keep long non-Latin names under the filesystem limit.

A duplicate upload is stored as <id>_<name> when the plain name is already taken. The side rail looked up the composer's display name by the stored name, so when the composer link held a percent-encoded or literal-space path the lookup missed and the rail showed the id prefix. It now falls back to the stored path's own display name, which strips the twelve-character copy id for files inside chat/uploads. The regression test covers an empty mapping and a percent-encoded key, and the previous lookup fails it with 0123456789ab_Q3 plan.pdf.

Signed-off-by: Niladri Das <[email protected]>
@bniladridas

Copy link
Copy Markdown
Contributor Author

Updated in 5d89434 to address both blockers from the review.

Side-rail filename display. _documents now falls back to display_file_name(path) when the composer mapping misses, so a duplicate stored as <id>_Q3 plan.pdf shows Q3 plan.pdf instead of the internal id prefix. The regression test covers an empty mapping and a percent-encoded key. Against the previous lookup both cases fail with 0123456789ab_Q3 plan.pdf; with the fallback they pass. pytest tests/unit/chat/ui/test_turn_summary.py gives 45 passed, and pytest tests/unit/chat/ui/ tests/integration/test_files_router.py gives 4,257 passed and 11 skipped.

Real-world evidence. The earlier screenshots are no longer present locally, so I used the review's approved alternative: an actual upload response plus a fetch of its encoded URL, through the app's FastAPI TestClient. Uploading Q3 plan.pdf twice produced:

{"filename": "Q3 plan.pdf", "original_name": "Q3 plan.pdf", "url": "/api/files/uploads/Q3%20plan.pdf", "size": 5, "content_type": "application/pdf", "is_image": false}
{"filename": "9b344abeab79_Q3 plan.pdf", "original_name": "Q3 plan.pdf", "url": "/api/files/uploads/9b344abeab79_Q3%20plan.pdf", "size": 6, "content_type": "application/pdf", "is_image": false}

GET /api/files/uploads/9b344abeab79_Q3%20plan.pdf returned 200 with body b'second'. Feeding the same stored path to TurnLedger.summary produced:

[{"name": "Q3 plan.pdf", "path": ".../gaia-home/chat/uploads/9b344abeab79_Q3 plan.pdf", "pages": [1], "passages": 1}]

No screenshots were fabricated, and the PR body marks the Agent UI screenshot as unavailable while recording the HTTP evidence. I did not change the documents.py sanitization duplication or the attachment grant matching, since the review marked those non-blocking. CI is running on 5d89434.

@kovtcharov-amd
kovtcharov-amd merged commit 7ce4c36 into amd:main Nov 18, 2026
87 of 88 checks passed
kovtcharov-amd added a commit that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [#7108](#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[#7108](#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [#7108](#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[#8331](#8331),
[#8332](#8332),
[#8333](#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[#5973](#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [#8483](#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[#5417](#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [#5465](#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [#5442](#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [#6136](#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[#8480](#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[#8474](#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [#8400](#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[#7504](#7504),
[#7499](#7499),
[#7514](#7514),
[#7527](#7527),
[#8281](#8281),
[#8279](#8279),
[#8280](#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[#8326](#8326),
[#7808](#7808),
[#8385](#8385),
[#8451](#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[#8121](#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [#8251](#8251))
- **A reply that stalls partway is requested again.** (PR
[#8446](#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [#8436](#8436))
- **A failed turn stays marked failed in history.** (PR
[#8335](#8335))
- **A document is never reported attached when nothing was written.**
(PR [#8388](#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[#8461](#8461))
- **The agent can read images GAIA generated.** (PR
[#8478](#8478))
- **A bare JSON answer ends the turn.** (PR
[#8462](#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [#8430](#8430),
[#8448](#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[#8458](#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[#8450](#8450),
[#8426](#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [#8429](#8429),
[#8424](#8424),
[#8452](#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [#8427](#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [#8459](#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [#8428](#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [#8267](#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [#8086](#8086))
- **Setup shows the same model size and name as Settings.** (PR
[#8431](#8431))
- **A reply cut short by a crash isn't continued.** (PR
[#8391](#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [#8434](#8434))
- **The document library's install hint matches this build.** (PR
[#8327](#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[#8382](#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[#8499](#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[#8353](#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [#8490](#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[#8468](#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[#8291](#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[#8455](#8455),
[#8476](#8476),
[#8432](#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [#8435](#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [#8433](#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[#8495](#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[#6008](#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[#7226](#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [#8312](#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [#8213](#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[#8313](#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[#8218](#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [#8331](#8331),
[#8332](#8332),
[#8333](#8333),
[#5973](#5973),
[#8483](#8483),
[#8476](#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[#8480](#8480),
[#8474](#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [#8335](#8335),
[#8388](#8388),
[#8455](#8455),
[#8453](#8453),
[#8454](#8454),
[#8471](#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[#8121](#8121),
[#8294](#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [#8462](#8462),
[#8461](#8461),
[#8468](#8468),
[#8482](#8482),
[#8466](#8466),
[#8465](#8465),
[#8467](#8467),
[#8464](#8464),
[#8402](#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[#6136](#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [#8499](#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](v0.26.0...v0.27.0)
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
## Summary

Attached files keep the name the user gave, including spaces, accents
and non-Latin scripts, and the agent quotes that name instead of an
ASCII underscore version. The side rail also shows the user's name when
a duplicate upload is stored with an id prefix.

## Why

`team meeting notes.wav` was stored and quoted as
`team_meeting_notes.wav`, so GAIA answered with a filename the user
never used; images had the same problem. The fix keeps the original name
on disk and percent-encodes it in attachment links, while traversal,
separators, control characters, symlinks and subfolders stay refused.

## Linked issue

Closes amd#8361

## Changes

- Preserve spaces, accents and non-Latin scripts in uploaded copy names;
replace only path, shell, control and Windows-illegal characters.
- Percent-encode the stored name as one URL path segment in both upload
responses.
- Decode and validate attachment links on the backend and in the web UI
before granting file access or rewriting a link to a filesystem path.
- Match attachment grants against real uploads-directory entries, so
names with spaces and parentheses still scope correctly.
- Cover spaced, Arabic, Persian, percent, hash, ampersand and hostile
names through upload, serving, link resolution and attachment scope.
- Keep the side rail's document name on the user's filename: a duplicate
stored as `<id>_Q3 plan.pdf` now shows `Q3 plan.pdf` even when the
composer link lookup misses because of a literal space or
percent-encoding.

## Test plan

- [x] `pytest tests/unit/chat/ui/test_upload_names.py
tests/unit/chat/ui/test_media_upload.py
tests/integration/test_files_router.py`: 275 passed, 1 skipped. The skip
is the Windows-only drive-letter test at
`tests/integration/test_files_router.py:514`.
- [x] `npm test` in `src/gaia/apps/webui`: 4,385 passed and 2 failed of
4,387. Both failures are the known locale-dependent timestamp assertions
in `MessageBubble.answerPolish.test.tsx` (`Nov 2` expected, `2 Nov`
received), unrelated to this change.
- [x] `npm run build`: TypeScript check and Vite build completed.
- [x] `pytest tests/unit/chat/ui/
tests/integration/test_files_router.py`: 4,257 passed, 11 skipped. This
includes the new two-case side-rail regression.
- [x] The new regression fails against the previous lookup with
`0123456789ab_Q3 plan.pdf` and passes with the `display_file_name`
fallback.
- [x] `black --check`, `isort --check-only`, and `flake8` with GAIA's
line-length and ignore settings on the two changed Python files: clean.
- [ ] `pytest tests/unit/`: not completed. Collection needs ignores for
the optional `reportlab` and `anthropic` packages, and the run blocks in
`tests/unit/eval/test_integrity_gate.py::test_cli_compare_completeness_opt_in`,
which spawns `python -m gaia.cli eval agent --compare` with `HOME`
pointed at a pytest temp dir. It made no progress for over 16 minutes.
This is an environment/test limitation, not a pass; CI remains the
authoritative full-suite run.
- [ ] `python util/lint.py --all`: 16 of 18 checks pass, one warning,
and Pylint fails on two pre-existing E1120 errors at
`src/gaia/utils/awake_clock.py:47` and `src/gaia/utils/terminal.py:109`,
both outside this diff. MyPy emits warnings only.

## Evidence

- [x] **HTTP API / REST**: real requests through the app's FastAPI
TestClient. Uploading `Q3 plan.pdf` twice produced:

```json
{"filename": "Q3 plan.pdf", "original_name": "Q3 plan.pdf", "url": "/api/files/uploads/Q3%20plan.pdf", "size": 5, "content_type": "application/pdf", "is_image": false}
{"filename": "9b344abeab79_Q3 plan.pdf", "original_name": "Q3 plan.pdf", "url": "/api/files/uploads/9b344abeab79_Q3%20plan.pdf", "size": 6, "content_type": "application/pdf", "is_image": false}
```

`GET /api/files/uploads/9b344abeab79_Q3%20plan.pdf` returned `200` with
body `b'second'`.

  The same stored path fed to `TurnLedger.summary` produced:

```json
[{"name": "Q3 plan.pdf", "path": ".../gaia-home/chat/uploads/9b344abeab79_Q3 plan.pdf", "pages": [1], "passages": 1}]
```

  This is the reviewer-approved substitute for the missing screenshots.
- [ ] **Agent exposed in the Agent UI** (Chat): the earlier before/after
screenshots are no longer available locally, and no screenshot was
fabricated. The real upload response, encoded URL fetch, and rail output
above are the evidence supplied instead.
- [ ] **MCP tools / servers**: N/A, no MCP surface changed.
- [ ] **CLI**: N/A, no CLI surface changed.

## Checklist

- [x] I have linked a GitHub issue above (`Closes #N` / `Fixes #N` /
`Refs #N`).
- [x] I have described **why** this change is being made, not just what
changed.
- [ ] I have run linting and tests locally (`python util/lint.py --all`,
`pytest tests/unit/`) (ran, with the two pre-existing Pylint errors and
the full-suite blocker described in Test plan).
- [x] I have attached **real-world evidence matched to the surface I
changed** (see Evidence above), or marked each surface N/A. The Agent UI
screenshot is unavailable; the real upload, encoded URL fetch, and rail
output are supplied as the reviewer-approved alternative.
- [x] I have updated documentation if user-visible behavior changed (see
[CONTRIBUTING.md](../CONTRIBUTING.md)) (checked; no existing doc
describes the old underscore naming).

---------

Signed-off-by: Niladri Das <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [amd#7108](amd#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[amd#7108](amd#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [amd#7108](amd#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[amd#5973](amd#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [amd#8483](amd#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[amd#5417](amd#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [amd#5465](amd#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [amd#5442](amd#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [amd#6136](amd#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[amd#8480](amd#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[amd#8474](amd#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [amd#8400](amd#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[amd#7504](amd#7504),
[amd#7499](amd#7499),
[amd#7514](amd#7514),
[amd#7527](amd#7527),
[amd#8281](amd#8281),
[amd#8279](amd#8279),
[amd#8280](amd#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[amd#8326](amd#8326),
[amd#7808](amd#7808),
[amd#8385](amd#8385),
[amd#8451](amd#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[amd#8121](amd#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [amd#8251](amd#8251))
- **A reply that stalls partway is requested again.** (PR
[amd#8446](amd#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [amd#8436](amd#8436))
- **A failed turn stays marked failed in history.** (PR
[amd#8335](amd#8335))
- **A document is never reported attached when nothing was written.**
(PR [amd#8388](amd#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[amd#8461](amd#8461))
- **The agent can read images GAIA generated.** (PR
[amd#8478](amd#8478))
- **A bare JSON answer ends the turn.** (PR
[amd#8462](amd#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [amd#8430](amd#8430),
[amd#8448](amd#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[amd#8458](amd#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[amd#8450](amd#8450),
[amd#8426](amd#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [amd#8429](amd#8429),
[amd#8424](amd#8424),
[amd#8452](amd#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [amd#8427](amd#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [amd#8459](amd#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [amd#8428](amd#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [amd#8267](amd#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [amd#8086](amd#8086))
- **Setup shows the same model size and name as Settings.** (PR
[amd#8431](amd#8431))
- **A reply cut short by a crash isn't continued.** (PR
[amd#8391](amd#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [amd#8434](amd#8434))
- **The document library's install hint matches this build.** (PR
[amd#8327](amd#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[amd#8382](amd#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[amd#8499](amd#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[amd#8353](amd#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [amd#8490](amd#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[amd#8468](amd#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[amd#8291](amd#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[amd#8455](amd#8455),
[amd#8476](amd#8476),
[amd#8432](amd#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [amd#8435](amd#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [amd#8433](amd#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[amd#8495](amd#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — 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** — restart the model server from time to time.
Tracked in [amd#8312](amd#8312).
- **Coding: editing a config, data or `SKILL.md` file 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"** — 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).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333),
[amd#5973](amd#5973),
[amd#8483](amd#8483),
[amd#8476](amd#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[amd#8480](amd#8480),
[amd#8474](amd#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [amd#8335](amd#8335),
[amd#8388](amd#8388),
[amd#8455](amd#8455),
[amd#8453](amd#8453),
[amd#8454](amd#8454),
[amd#8471](amd#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[amd#8121](amd#8121),
[amd#8294](amd#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [amd#8462](amd#8462),
[amd#8461](amd#8461),
[amd#8468](amd#8468),
[amd#8482](amd#8482),
[amd#8466](amd#8466),
[amd#8465](amd#8465),
[amd#8467](amd#8467),
[amd#8464](amd#8464),
[amd#8402](amd#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[amd#6136](amd#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [amd#8499](amd#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

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

Labels

tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attached files lose the spaces in their names: 'team meeting notes.wav' becomes 'team_meeting_notes.wav'

2 participants