Skip to content

fix(tools): read Arabic, Japanese, Chinese and Cyrillic legacy-encoded text files - #8230

Merged
kovtcharov-amd merged 8 commits into
amd:mainfrom
kovtcharov:fix/8040-legacy-encodings
Nov 15, 2026
Merged

kovtcharov-amd merged 8 commits into
amd:mainfrom
kovtcharov:fix/8040-legacy-encodings

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

Asking GAIA in chat to read or search a .txt or .csv saved as Windows-1256,
GBK or Windows-1251 returned garbled Latin letters with no error, and a
Shift-JIS file failed to decode, so the agent fell back to a PowerShell
command that needed approval. The Agent UI file preview garbled them the
same way. Document Q&A already read these files correctly (#8012), so the
two paths disagreed about the same file. Now the file tools, the CSV loader,
the file-info preview, the Agent UI preview and document Q&A all detect the
encoding through one shared decoder, and a file that fits no text encoding
fails with a message that names it.

UTF-8, BOM-tagged UTF-16/32 and clean CP1252 text read exactly as before.

Eval categories to watch on the next RC: gaia_files, rag_quality,
gaia_rag (file-tool results change for legacy-encoded files only).

Closes #8040

Test plan

  • pytest tests/unit/agents/test_file_tools_text_encoding.py tests/unit/rag tests/unit/test_file_tools.py tests/integration/test_files_router.py (1309 passed; the new Windows-1256, Shift-JIS, GBK and Windows-1251 cases fail on main)
  • Reading the five sample files (four legacy encodings plus CP1252) through read_text returns the original text
  • In the app: ask GAIA to read a Shift-JIS .txt and an Excel-saved Windows-1256 .csv; both quote the real text with no shell prompt

…d text files

Asking GAIA in chat to read or search a .txt or .csv saved as Windows-1256,
GBK or Windows-1251 returned garbled Latin letters with no error, and a
Shift-JIS file failed to decode, so the agent fell back to a PowerShell
command that needed approval. The Agent UI file preview garbled them the
same way. Document Q&A already read these files correctly (amd#8012), so the
two paths disagreed about the same file. Now the file tools, the CSV loader,
the file-info preview, the Agent UI preview and document Q&A all detect the
encoding through one shared decoder, and a file that fits no text encoding
fails with a message that names it.

UTF-8, BOM-tagged UTF-16/32 and clean CP1252 text read exactly as before.

Eval categories to watch on the next RC: `gaia_files`, `rag_quality`,
`gaia_rag` (file-tool results change for legacy-encoded files only).

Closes amd#8040

## Test plan
- [x] `pytest tests/unit/agents/test_file_tools_text_encoding.py tests/unit/rag tests/unit/test_file_tools.py tests/integration/test_files_router.py` (1309 passed; the new Windows-1256, Shift-JIS, GBK and Windows-1251 cases fail on main)
- [x] Reading the five sample files (four legacy encodings plus CP1252) through `read_text` returns the original text
- [ ] In the app: ask GAIA to read a Shift-JIS .txt and an Excel-saved Windows-1256 .csv; both quote the real text with no shell prompt
@github-actions github-actions Bot added dependencies Dependency updates rag RAG system changes tests Test changes performance Performance-critical changes agents labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This PR sends every text read (file tools, CSV loader, file-info preview, Agent UI preview, document Q&A) through one shared decoder, so Arabic, Japanese, Chinese and Cyrillic files saved in old Windows encodings now show their real text instead of garbled letters. The direction is right, and the tests on the four sample encodings are thorough.

One regression needs fixing before merge:

  • Large files that are almost all plain English now fail in two places that used to work. The encoding is now chosen from the first 64 KB only. If a log or CSV is pure ASCII for its first 64 KB and has one accented Western character later (café, €), it is labelled UTF-8 and the full read then fails. The file-info tool used to show a preview of such a file and now says "Could not decode". The Agent UI preview used to show it and now treats it as binary. When the full read fails, detect again over the whole file.
  • No real-world evidence yet. The one in-app check in the test plan is still unticked. Add a real /api/files/preview request and response, or a chat transcript reading a Shift-JIS file, before merge.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review and the PR's own unit and integration tests. No package dependencies were installed on this runner, so I could not run the large-file case. That finding comes from reading the code.

🔍 Technical details

🟡 A head-only sniff turns a late non-UTF-8 byte into a hard failure (src/gaia/utils/text_decoding.py:497-508, used by text_files.read_text and ui/routers/files.py:340)

file_encoding returns utf-8 when the first SNIFF_BYTES decode as UTF-8. read_text then opens the whole file as UTF-8 and raises on the first later CP1252 byte.

  • get_file_info (file_tools.py:2470) used to fall through to latin-1. It now reports encoding: "unknown".
  • preview_file counts lines by iterating the whole file (files.py:348-349). A late decode error is caught by the outer except UnicodeDecodeError, so is_text stays False.
  • read_file already behaved this way before this PR. The PR spreads it to two more surfaces.

Repro: b"plain ascii line\n"*5000 + b"caf\xe9\n".

Suggested fix in read_text, if the file is longer than the sniff:

    except UnicodeDecodeError as exc:
        if os.path.getsize(path) > SNIFF_BYTES:
            with open(path, "rb") as stream:
                return decode_text(stream.read())
        raise name_file(exc, path) from exc

Make the same change in preview_file, and add a test that builds this file.

🟡 Missing real-world evidence (rubric: HTTP API and agent tools). The PR changes what GET /api/files/preview returns (encoding is now cp1252 where it was latin-1, and undecodable files now return is_text: false) and what the chat file tools return. TestClient coverage is good, but please attach one real request and response or a chat run.

🟢 Document Q&A now rejects non-UTF-8 text that contains a control byte (text_decoding.py:449). _decode_text_bytes used to hand these bytes to charset-normalizer. detect_encoding now raises on any C0 control byte, for example the 0x1A end-of-file marker old DOS editors append or an ESC sequence. The file tools already treated such files as binary. For RAG this is new behaviour, so either make it deliberate (allow a trailing 0x1A) or note it in the PR.

🟢 str(m) == cp1252_text for m in matches decodes the whole payload once for every candidate. On a large non-UTF-8 CSV given to analyze_data_file or RAG, that means several full copies in memory. This was moved over from the old RAG code, so it is not new, but it now runs on the chat path too. Comparing m.encoding against the cp1252-equivalent code pages first would avoid it.

Sibling check: code_index/sdk.py:838 still falls back to latin-1, and the email agent's gmail_backend.py:404 has its own codec list. Both decode a different kind of input (source files and MIME parts), so leaving them is fine. I found no doc that states the old latin-1 behaviour. The frontend only types encoding as a string.

Strengths

  • One decoder replaces four diverging encoding loops, and the old get_file_info, CSV and preview loops silently fell back to latin-1. An undecodable file now raises a named error, which follows the fail-loudly rule.
  • LEGACY_SAMPLES is one shared fixture used across tools, the router and RAG. The test that splits a double-byte character at the 64 KB boundary covers a subtle edge.
  • The BOM CSV test now pins columns == ["name", "val"] where the old one only documented a quirk.

The RAG lane's path filter does not cover the file tools' reader or the
shared fixture, and both readers now decode through one function, so the
RAG tests keep their own encoding cases and the file-tool tests keep theirs.
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

🟡 The large-file regression from the last review is still there. The new push only removes a RAG test. A big file that is plain ASCII for its first 64 KB and has one accented character later (café, €) still gets labelled UTF-8 and then fails the full read. The file-info tool now says "Could not decode" for it, and the Agent UI preview shows it as binary. Both used to work. Please detect the encoding again over the whole file when the full read fails, and add a test with this file.

🟡 The in-app check in the test plan is still unticked. Please attach one real /api/files/preview response or a chat run that reads a Shift-JIS file.

🔍 Technical details
  • file_encoding (src/gaia/utils/text_decoding.py:113-124) still reads only SNIFF_BYTES. read_text (src/gaia/agents/tools/text_files.py:29-34) and preview_file (src/gaia/ui/routers/files.py:887-922) still open the whole file with that codec and turn a later UnicodeDecodeError into a failure.
  • Repro: b"plain ascii line\n"*5000 + b"caf\xe9\n".
  • The fix suggested in the previous review still applies: when the file is larger than SNIFF_BYTES, run decode_text over the full bytes before raising, in both places.

…not UTF-8

A large file that is plain ASCII for its first 64 KB and has an accented
Western character later was labelled UTF-8 from the sniff, and the full read
then failed; the file-info preview and the Agent UI preview used to show such
a file. The rest of the file is now checked as UTF-8, and if it is not, the
whole file decides the encoding.
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The large-file bug is fixed. A file that is plain ASCII for its first 64 KB and has an accented character later now gets its encoding detected again over the whole file, and a new test covers it. That covers both the file-info tool and the Agent UI preview, because both get their encoding from the same place.

🟡 One item from the last review is still open: there is no real-world evidence yet. The in-app step in the test plan is still unticked. Please attach one real /api/files/preview request and response, or a chat run that reads a Shift-JIS file, or point to where that evidence lives.

🔍 Technical details
  • The fix is in file_encoding (src/gaia/utils/text_decoding.py). When the first 64 KB looks like UTF-8, _rest_is_utf8 streams the rest of the file through an incremental UTF-8 decoder. If that fails, detect_encoding runs again over the full bytes. read_text and preview_file both get their codec from this function, so one fix covers both.
  • The new test test_a_western_character_past_the_sniff_limit_still_reads covers this case: an ASCII head, then café … € in CP1252.
  • For the evidence rule, see the rubric's "Real-world evidence" section: it applies to HTTP API and agent tool surfaces.

With only a few non-ASCII bytes in a large file the detector guesses
(cp775 for 'café … €'); such a file is Windows ANSI, as it read before.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Both points taken.

  • Large mostly-English files: fixed. The first 64 KB still pick the encoding, but the rest of the file is now checked as UTF-8, and if it isn't, the whole file decides. A file with only a stray accent among ASCII stays Windows-1252, as it read before this PR. New test: an ASCII log with café … € past the 64 KB mark reads back intact.
  • Lint: the RAG lane no longer depends on files its path filter doesn't cover.
  • Evidence: the in-app check needs an RC whose agent binary carries this change, so it stays unticked until then. On the fix checkout, read_text returns the original text for Windows-1256, Shift-JIS, GBK, Windows-1251 and CP1252 samples.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

🟡 A mostly-English file with some Russian in it still reads as garbled Latin. A typical Excel export, say an English CSV whose name column holds Cyrillic, comes back labelled Windows-1252 even when the detector correctly says Windows-1251. The new "few accents means Windows-1252" shortcut in this push widens that gap. Please let the detector's best guess win over the Windows-1252 tie-break, and add a mixed English and Cyrillic CSV test.

🟡 Real-world evidence is still missing. The chat check fairly needs an RC. The Agent UI preview endpoint doesn't: it runs from this checkout. Please attach one real /api/files/preview response for a Shift-JIS or Windows-1256 file.

🔍 Technical details
  • detect_encoding (src/gaia/utils/text_decoding.py): any(str(m) == cp1252_text for m in matches) returns cp1252 whenever cp1252 is anywhere among charset-normalizer's candidates. That happens for almost any single-byte input, so it overrides matches.best().
  • Repro: 800 rows of i,customer,<name>,2024-01-01,order shipped ok, where every 10th name is Иванов Петров, encoded cp1251. That is 38 KB with 2.5% high bytes, so the new _SPARSE_RATIO shortcut does not fire. from_bytes(data).best().encoding == "cp1251", but detect_encoding returns cp1252.
  • Suggested order: check best first, and fall back to cp1252 only when best is a Western-equivalent code page (cp1250/cp775/…) whose decode equals cp1252_text.
  • At 1 Cyrillic row in 40 (0.6%), the new _SPARSE_RATIO = 200 shortcut forces cp1252 before detection runs. Sparse detection was unreliable there anyway (it guessed cp1125), so that case is a limitation, not a regression.

A mostly-English CSV with Cyrillic names came back as Windows-1252 because
cp1252 was among the candidates. Windows ANSI now wins only when the
detected text is Latin script (it scores as cp1250/cp775 too) or there are
too few non-ASCII bytes to tell; Cyrillic, Arabic, Greek and CJK are the
detector's call.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Both addressed.

  • Mixed English and Cyrillic: fixed. Windows-1252 now wins only when the detected text is Latin script, or when there are too few non-ASCII bytes to tell (café); otherwise the detector's best guess stands. Your 800-row CSV with every tenth name in Cyrillic is a new test and reads back as Windows-1251. The earlier "few accents" ratio shortcut is gone.
  • Real-world evidence: the Agent UI backend started from this checkout (python -m gaia.ui.server, throwaway home), previewing a Shift-JIS and a Windows-1256 file:
🔍 Technical details
GET /api/files/preview?path=C:\gaia-test\h4\Documents\meeting_sjis.txt
{"path":"C:\\gaia-test\\h4\\Documents\\meeting_sjis.txt","name":"meeting_sjis.txt","size":135,"size_display":"135.0 B","extension":".txt","modified":"2026-11-14T21:23:37.979044","is_text":true,"preview_lines":["会議名,日付,担当者,メモ","定例会議,木曜日,田中,次回の会議は木曜日の午後3時です。","予算審議,金曜日,佐藤,来年度の予算案を確認してください。"],"total_lines":3,"columns":null,"row_count":null,"encoding":"cp932"}
HTTP 200

GET /api/files/preview?path=C:\gaia-test\h4\Documents\sales_1256.csv
{"path":"C:\\gaia-test\\h4\\Documents\\sales_1256.csv","name":"sales_1256.csv","size":107,"size_display":"107.0 B","extension":".csv","modified":"2026-11-14T21:23:37.980048","is_text":true,"preview_lines":["الشركة,المدينة,الإيرادات","شركة النور للتجارة,الرياض,1234","شركة الأمل للخدمات,جدة,5678","مؤسسة الفجر,الدمام,910"],"total_lines":4,"columns":["الشركة","المدينة","الإيرادات"],"row_count":3,"encoding":"cp1256"}
HTTP 200

@kovtcharov-amd kovtcharov-amd added ready_for_ci Run CI workflows on draft PR without requesting review bug Something isn't working labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This PR gives the file tools, the CSV reader, the Agent UI preview and document Q&A one shared decoder. Arabic, Japanese, Chinese and Russian files saved in old Windows encodings now read correctly instead of coming back garbled. The design and tests are solid. One regression should be fixed before merge:

  • Some files that used to be found by search, or indexed for document Q&A, are now skipped. The new decoder rejects any file that isn't UTF-8 and contains a terminal colour code or a DOS end-of-file marker. That covers coloured log files with a single accented byte, and old CP1252 text that ends in Ctrl-Z. Search used to read these leniently and still matched the plain-text lines. Now it logs a warning and quietly reports no match, and document Q&A refuses to index them. Allowing those two control bytes fixes it.
  • The in-app check is still unticked. This changes what the agent sees in chat, but nobody has shown it working there yet. Tick the "read a Shift-JIS .txt and a Windows-1256 .csv in the app" item, with the output, before merge.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review and reading the new decoder's logic. Nothing was exercised in the app or the CLI.

🔍 Technical details

🟡 Non-UTF-8 text with ESC (0x1B) or SUB (0x1A) now raises instead of decoding (src/gaia/utils/text_decoding.py:456-503)

detect_encoding raises "control bytes: not a text file" for any non-UTF-8 input containing a byte in _CONTROL_BYTES. Before this PR, the callers below still read such files:

  • search_file_content (file_tools.py:1518): text_encoding() used to return "utf-8" and the file was opened with errors="ignore". It now raises, search_file catches it as UnicodeError (line 1547), logs it, and skips the file. A grep for ERROR across ANSI-coloured logs with one stray Latin-1 byte now returns nothing. That is a quiet wrong answer.
  • RAG _extract_text_from_text_file / the CSV path (rag/sdk.py:2749, 2784): the old _decode_text_bytes had no control-byte check, so a CP1252 file ending in \x1a was indexed. Now it fails with "Failed to decode file".
  • get_file_info previews such files as [Could not decode …], where the old latin-1 path showed them.

ESC and SUB both occur in real text files and both decode cleanly in CP1252, so letting them through keeps genuine binary (NUL and the other C0 bytes) rejected:

# Bytes legacy code pages map to control characters text never holds; NUL marks binary.
# ESC (ANSI colour codes in logs) and SUB (DOS end-of-file) do turn up in real text.
_CONTROL_BYTES = frozenset(range(32)) - {9, 10, 12, 13, 26, 27}

Add a case such as b"\x1b[32mINFO\x1b[0m caf\xe9\n" to TestWindowsAnsiTextReadsAsText so the search path stays covered.

🟡 file_encoding can read a whole large file into memory (text_decoding.py:571-573)

When a file's first 64 KB is ASCII and a non-UTF-8 byte appears later, stream.read() loads the whole file and passes it to charset_normalizer.from_bytes and the _CONTROL_BYTES scan. This runs on every candidate in search_file_content and on the Agent UI preview, which has no size cap for TEXT_EXTENSIONS. It is sync I/O inside the async def preview_file handler. A multi-GB .log with one CP1252 byte near the end gets fully buffered and scanned, where the old preview streamed it line by line. UTF-8 files are also now read twice per search: once by _rest_is_utf8, then again by the search itself. Consider deciding on a bounded sample, for example the head plus the first failing 64 KB window, rather than stream.read().

🟡 Real-world evidence missing for the chat surface

The PR changes what the agent's file tools return in chat, and the only in-app item in the test plan is unchecked. Per the rubric, a user-visible change needs proof on the surface a user touches. Paste the chat transcript, or a TUI capture, of the agent quoting a Shift-JIS .txt and a Windows-1256 .csv.

Checked with nothing to report: charset-normalizer is MIT and was already a dependency. No docs describe the old latin-1/cp1252 fallback order, so nothing is stale. rag/sdk.py still uses codecs and _TEXT_BOM_ENCODINGS in _refuse_binary, so those imports stay. The other new text_encoding() raisers (read_file with offset/limit, search_code) already sit inside handlers that turn the error into a tool error, matching how strict UTF-8 failed before.

Strengths

  • Four decoders that disagreed are now one. The cross-path tests over the same LEGACY_SAMPLES fixture (read, search, info, analyze, router preview) are a good way to keep them from drifting apart again.
  • Cut-character handling is tested directly at the 64 KB sniff boundary for double-byte encodings, which is the subtle part.
  • Undecodable files now fail with a message that names the file, and the BOM-in-CSV-header test now asserts the right answer instead of documenting the bug.

# Conflicts:
#	src/gaia/ui/routers/files.py
…hole files

Search skipped ANSI-coloured logs with one accented byte, and document Q&A
refused old CP1252 text ending in Ctrl-Z, because ESC and SUB were treated
as binary markers. Both now decode. A large file whose first non-UTF-8 byte
sits past the 64 KB sniff is now judged on a 64 KB window around that byte
instead of reading the whole file into memory.
@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: Request changes

The two code findings are fixed. Coloured logs and Ctrl-Z-terminated CP1252 text decode again, and a big file now picks its encoding from a 64 KB window instead of being read whole into memory. Both changes have tests.

🟡 The in-app check from the last review is still open. This PR changes what the agent quotes back in chat, but nobody has yet shown it doing that. Before merge, run the unticked test-plan item: ask GAIA in the app or the TUI to read a Shift-JIS .txt and an Excel-saved Windows-1256 .csv. Paste the transcript and tick the box.

🔍 Technical details
  • I checked _first_non_utf8 and found nothing wrong. It subtracts the incremental decoder's held-back bytes before adding exc.start, so the offset is absolute.
  • _window_at only lines up on a newline that falls before the bad byte. If 32 KB of UTF-8 runs with no newline, the window can open partway through a multibyte character. Real files almost never look like that, so this isn't blocking.
  • Unticked item: PR body line "In the app: ask GAIA to read a Shift-JIS .txt and an Excel-saved Windows-1256 .csv".

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This PR sends every text read (the file tools, the CSV loader, the Agent UI preview and document Q&A) through one shared decoder. Arabic, Japanese, Chinese and Russian files saved in old Windows encodings now read as real text instead of garbled Latin letters. The approach is sound, and it removes three copies of the decoding logic that disagreed with each other. I found nothing that blocks the merge. Two cases still garble text without warning and should become follow-up issues:

  • Very short non-Western files still come out garbled. If a file has only a word or two of Arabic, Russian or Chinese, the decoder assumes it is Western European text. For example, "Привет", "مرحبا" and "你好" all decode as Latin gibberish. The old code did the same, but this PR's title promises these languages, so a one-line note will surprise users.
  • One bad byte deep inside a large UTF-8 file now garbles the whole file. Before, such a file was reported as unreadable. Now every accented character in it turns into gibberish, and nothing tells the user.

Before merge, please also tick the open in-app test-plan item: Shift-JIS .txt and Windows-1256 .csv read in chat with no shell prompt.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review plus a direct check of the new decoder outside the app. The runner had no GAIA environment, so I could not run the PR's tests. I installed the decoder's dependency into a temp folder and ran the new module on its own:

'Привет' cp1251 -> cp1252 False 'Ïðèâåò'
'Привет мир' cp1251 -> cp1125 False '╧ЁштхҐ ьшЁ'
'مرحبا' cp1256 -> cp1252 False 'ãÑÍÈÇ'
'こんにちは' shift_jis -> cp932 True 'こんにちは'
'你好' gbk -> cp1252 False 'ÄãºÃ'
'café' cp1252 -> cp1252 True 'café'
'Ελληνικά κείμενο εδώ' cp1253 -> cp1253 True 'Ελληνικά κείμενο εδώ'
194 MB ASCII log, file_encoding -> utf-8 in 0.118 s
UTF-8 file (>64 KB) with one stray 0xE9 late -> cp1252, tail reads 'naïve résumé'

The Agent UI preview and the chat tools were not exercised in the real app.

🔍 Technical details

Issues found

🟡 Follow-up: "Short legacy-encoded text still decodes as CP1252" (src/gaia/utils/text_decoding.py:100-105). The high < _TOO_FEW_TO_TELL branch returns cp1252 whenever a CP1252 decode succeeds, whatever the script. Fewer than 8 high bytes covers about 4 Arabic, 7 Cyrillic or 3 CJK characters. This matches what happened before, so it isn't a regression, but it falls short of what the PR title promises. Two cheaper options: apply the _latin_script_only(str(best)) check even when high is small, or for short input accept a non-Latin best only when the detector's chaos score is low. "Привет мир" → cp1125 comes straight from the detector's pick, so it is a separate, harder problem.

🟡 Follow-up: "A late invalid byte flips a mostly-UTF-8 file to CP1252" (src/gaia/utils/text_decoding.py:151-154, _window_at). When the head is UTF-8 and _first_non_utf8 finds a stray byte past 64 KB, detect_encoding runs on the window around it. CP1252 decodes UTF-8 multibyte sequences without errors, so the result is cp1252 and every valid UTF-8 character in the file becomes mojibake. Before this PR, read_file reported such a file as binary. Now it returns garbled text with no warning, which is the dishonest-status class. One fix: if the window's bytes are mostly valid UTF-8 apart from a few stray bytes, keep utf-8 and let the caller choose errors="replace" (or report the offset) rather than switching the codec for the whole file.

🟡 Missing real-world evidence for the two user surfaces (the Agent UI preview route and chat file tools). The integration tests use TestClient, and the in-app test-plan item is unticked. Please add the GET /api/files/preview response for one legacy file and the chat transcript, or tick the item once you've run it.

🟢 text_encoding can now raise UnicodeDecodeError (before, it fell back to "utf-8"). I checked every caller: search_file catches UnicodeError, and the paged read_file path already surfaced the same exception class from read_text_page. No caller breaks.

🟢 tests/unit/test_file_tools.py::TestReadTabularFile._read_csv still tests a copy of the production decode block, not _read_tabular_file itself. The copy's error message has already drifted from the real one, which lacks TRIED_ENCODINGS and the "Re-save" hint. Calling the real helper would keep the test honest.

Checks done

  • Sibling paths: no remaining copies of the old utf-8/latin-1/cp1252 loop under src/ or hub/. _decode_text_bytes, _TEXT_TRIED_ENCODINGS and _SNIFF_BYTES have no leftover references.
  • Docs drift: no doc describes the old latin-1 fallback. The eval.mdx "Latin-1 text" line is about a test fixture, not decoder behaviour.
  • Licence: charset-normalizer (MIT) was already a dependency; only its comment changed.
  • Performance: scanning the rest of a large UTF-8 file in file_encoding cost 0.12 s on a 194 MB file (page cache warm), which is acceptable for paged reads.

Strengths

  • One decoder replaces three implementations that disagreed. That disagreement is how document Q&A and the file tools gave different answers for the same file.
  • Splitting on line boundaries at the 64 KB cut, and the late-byte window, are well thought out, and the tests cover each double-byte encoding with every padding offset.
  • Undecodable files now fail with the file named and a fix to try (a fail-loudly improvement over [Could not decode file content]).

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 15, 2026
Merged via the queue into amd:main with commit e94ee00 Nov 15, 2026
123 of 174 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/8040-legacy-encodings branch November 15, 2026 20:48
kovtcharov-amd pushed a commit to kovtcharov/gaia that referenced this pull request Nov 15, 2026
)

A UTF-8 file with one stray byte after its first 64 KB now reads as
gibberish without warning: every accented letter in the file turns into
`é`-style junk, and the agent quotes it as if it were fine. Before
amd#8230 the file was reported as unreadable. Now, when real UTF-8 text
comes before the bad byte, GAIA refuses the file again, names the byte's
offset and asks the user to re-save it as UTF-8. A file that really is
Windows ANSI past an ASCII head still reads as before.

This was raised in amd#8230's review, which merged before the fix landed.
That review's other follow-up, short non-Latin files still decoding as
gibberish, is amd#8295.

**In the app.** The Agent UI preview of a 97 KB UTF-8 file with one
stray `0xE9` near the end:

```
GET /api/files/preview?path=…/damaged.txt
before: "encoding": "cp1252", preview "café"
after:  "is_text": false, "encoding": null
```

amd#8230's untested in-app check passes on this build: GAIA reads a
Shift-JIS `.txt` and an Excel-style Windows-1256 `.csv` in chat, quoting
`会議メモ:青い鯨は41番です。` and `زيت زيتون` with no prompt.

![GAIA quoting the Japanese memo and the Arabic product name in
chat](https://raw.githubusercontent.com/kovtcharov/gaia/qa-evidence-rc29/testing/8230/legacy-files-read-in-chat.jpg)

## Test plan
- [x] `pytest tests/unit/agents/test_file_tools_text_encoding.py
tests/unit/test_file_tools.py`: 325 passed. The new test covers the
UTF-8 text in the first 64 KB and past it.
- [x] The Agent UI preview of the damaged file is refused, not garbled.
- [x] In the Agent UI, a Shift-JIS `.txt` and a Windows-1256 `.csv` read
in chat with no prompt (screenshot above).
@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

agents bug Something isn't working dependencies Dependency updates performance Performance-critical changes rag RAG system changes ready_for_ci Run CI workflows on draft PR without requesting review tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reading an Arabic or Japanese text file saved in an older encoding shows garbled text

2 participants