Skip to content

fix(agent): don't ask to run a command on text handed over to translate - #8266

Merged
kovtcharov-amd merged 20 commits into
amd:mainfrom
kovtcharov:fix/8244-text-task-no-tools
Nov 15, 2026
Merged

kovtcharov-amd merged 20 commits into
amd:mainfrom
kovtcharov:fix/8244-text-task-no-tools

Conversation

@kovtcharov

@kovtcharov kovtcharov commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Asked only to translate a sentence that mentions a file, GAIA on Qwen3.6
sometimes reached for the shell first (echo "<the sentence>" | iconv …,
python -c urllib.parse.quote(…)), so the user got "Run this command?"
for a plain translation: 2 of 5 chats in the Agent UI. Pressing Deny made
it answer correctly. Now, when a request only hands over text to translate,
reword or proofread and its own instruction names no file, save or command,
a tool call that would need approval is declined for the user with that
reason, and the model answers in its reply. A request whose instruction
asks for work ("…then save it to fr.txt", "…using the shell") still asks.

The decline also applies under auto-approve, so a headless gaia -p run on such a request now has the call refused instead of run. The Agent UI shows it as "Not run, not needed for this request", not as the user's own "You declined".

Builds on #8233, which this branch contains, so landing this PR ships both.

Trade-off: with unquoted text ("Translate to German: Good morning. Save it as de.txt") everything after the colon counts as text, so a save typed there is no longer owed. Any tool the model reaches for is still put to the user, so nothing runs or is refused unasked.

In the Agent UI on this branch (Qwen3.6 35B A3B, Ask mode): 11 of 11 chats
translated directly with no prompt and no file written, including sentences
that tell the reader to run commands and save files. The model did not
reach for a tool in any of them, so the decline itself is shown by the unit
tests, not by a live run.

Eval categories to watch on the next RC: gaia_tool_selection,
conversation, gaia_shell.

Closes #8244

The new row (layout suite fixture, AUTO_DECLINED_STEPS):

English Arabic
A step GAIA turned down itself, labelled Not run, not needed for this request The same row in Arabic

Test plan

  • pytest tests/unit/agents/test_text_task.py (new: a shell call on handed-over text is declined without asking and the answer follows; a shell call the instruction asks for is still put to the user; both fail without the change)
  • pytest tests/unit/agents (7,811 passed)
  • pytest tests/unit/chat/ui/test_declined_tool_rows.py and vitest on toolEvents.declined / AgentActivity.toolLabels: a call GAIA turned down unasked reads as not run, a user's Deny still reads "You declined"
  • Agent UI, backend run from this branch with the agent in developer mode: 11 translate and proofread chats, no approval prompt, nothing written
  • On the next RC: send the French request from Translating a sentence that mentions a path sometimes asks to run a shell echo #8244 five times in new chats; no "Run this command?" appears

…uctions

Asking GAIA only to translate a sentence made it act on the sentence when
the sentence mentioned a path. "Translate to Spanish and reply with only
the translation: "Please save the report in D:\Reports\2026\summary.docx
before Friday."" raised "Allow writing file? D:\Reports\2026\summary.docx"
with the Spanish sentence as its content (Full access would have written
it), or answered and then added "I couldn't confirm... No successful write
to d:\reports\2026\summary.docx". amd#8168 had taught only the look-first
check that such text is text; the save, delivery, grounding and
tool-request checks and the skill suggestion still read the quoted
sentence as the request. Now they all read only the instruction, through
one shared helper, so the agent just translates. A file the instruction
itself names ("Translate README.md to French", "Translate D:\a.txt and
save it as D:\b.txt") is handled as before.

Replayed on Qwen3.6 35B A3B with `gaia -p`: 7 runs of the two failing
requests, no write_file attempt, no "couldn't confirm" note, no skill
suggestion. In about 2 runs of 5 the model still prints its answer through
a shell `echo` (a prompt, then the right answer); that is the model's own
choice with no nudge behind it and is tracked separately.

Eval categories to watch on the next RC: `gaia_files`,
`gaia_tool_selection`, `conversation`, `gaia_skills`.

## Test plan
- [x] `pytest tests/unit/agents` (all pass; new `test_text_task.py` cases fail on main)
- [x] `pytest hub/agents/gaia/python/tests/test_skill_suggestions.py` (new: handed-over text suggests no skill; a named file still does)
- [x] `gaia -p` replay of both requests on the real model, as above
- [ ] In the app, Ask mode, new chat: send the Spanish request above; the answer is the translation with no file prompt
…to translate

After a colon, only the quoted passage is the text handed over: 'Translate
this to French: "Hello there, friend." Then save it to fr.txt' keeps the
save, so it is still owed and still inside the turn's scope. A file named
after the colon ('Translate this file to French: notes.txt') is a target
and the request is read whole. Unquoted text after a colon is all text,
pinned in a test as a deliberate choice. The extraction gate now reads the
instruction through the same helper.
Asked only to translate a sentence that mentions a file, GAIA on Qwen3.6
sometimes reached for the shell first (`echo "<the sentence>" | iconv …`,
`python -c urllib.parse.quote(…)`), so the user got "Run this command?"
for a plain translation: 2 of 5 chats in the Agent UI. Pressing Deny made
it answer correctly. Now, when a request only hands over text to translate,
reword or proofread and its own instruction names no file, save or command,
a tool call that would need approval is declined for the user with that
reason, and the model answers in its reply. A request whose instruction
asks for work ("…then save it to fr.txt", "…using the shell") still asks.

Builds on amd#8233, which this branch contains.

In the Agent UI on this branch (Qwen3.6 35B A3B, Ask mode): 11 of 11 chats
translated directly with no prompt and no file written, including sentences
that tell the reader to run commands and save files. The model did not
reach for a tool in any of them, so the decline itself is shown by the unit
tests, not by a live run.

Eval categories to watch on the next RC: `gaia_tool_selection`,
`conversation`, `gaia_shell`.

Closes amd#8244

## Test plan
- [x] `pytest tests/unit/agents/test_text_task.py` (new: a shell call on handed-over text is declined without asking and the answer follows; a shell call the instruction asks for is still put to the user; both fail without the change)
- [x] `pytest tests/unit/agents` (7,811 passed)
- [x] Agent UI, backend run from this branch with the agent in developer mode: 11 translate and proofread chats, no approval prompt, nothing written
- [ ] On the next RC: send the French request from amd#8244 five times in new chats; no "Run this command?" appears
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This PR stops GAIA asking "Run this command?" when someone only wants a sentence translated or proofread. It also stops the checks that look for files and saves from treating paths inside that sentence as real work. The quoted case, which is what #8244 reports, is handled well and tested well. One gap needs fixing before merge:

  • A save the user typed after unquoted text gets refused without asking. If the text isn't in quotes, everything after the colon counts as text to translate, including the user's own instruction on the next line. For example, Translate to German: Good morning everyone. Save the result as de.txt or Proofread this:\n…\n\nThen write the corrected text to out.md. The save is then turned down without asking the user, the model is told "asks for nothing else", and the check that should notice the missing file no longer fires. Before this PR the user was asked. The fix: decline without asking only when the handed-over text is quoted, and keep asking when it isn't. The Translating a sentence that mentions a path sometimes asks to run a shell echo #8244 request is quoted, so it stays fixed.

Real-world evidence

N/A: no evidence bundle ran for this PR. The change affects how the agent behaves during a real model run, and that lives on the strix-halo lane. The verdict rests on static review, plus a direct check of the new text-detection helper, which confirmed the gap above. The description reports 11 chats in the Agent UI but includes no screenshot.

🔍 Technical details

Rubric and missed-bug-classes were both loaded. pytest wasn't installed in the review environment, so I didn't run the suite. I loaded text_task.py on its own and ran it:

'Translate to German: Good morning everyone. Save the result as de.txt' -> instruction 'Translate to German:', hands_over_text_only=True
'Proofread this:\nTheir going home.\n\nThen write the corrected text to out.md' -> 'Proofread this:', True
'Translate this to French: "Hello there, friend." Then save it to fr.txt' -> keeps "Then save it to fr.txt", False

🟡 Saves the user asked for are declined without a prompt when the text is unquoted (src/gaia/agents/base/agent.py:8846, src/gaia/agents/base/text_task.py:72)

  • instruction_part returns request[: colon.end()] for any unquoted prose tail, so any instruction after the colon is cut away. That's acceptable for the lenient checks (fewer obligations, no false "No successful write").
  • hands_over_text_only reuses the same cut to refuse a gated call without asking. That turns a correct save into a silent refusal, and CompletionEvidence no longer flags the missing de.txt either.
  • The tests write this behaviour in as intended ("Proofread this:\nPlease save it to x.md" is expected to decline; the German case expects the cut).
  • Suggestion: have the decline require delimited text. For example, track whether instruction_part cut at a quote (_LEADING_QUOTE / _QUOTED_TEXT matched) and return False from hands_over_text_only otherwise. The unquoted case then falls back to the normal approval prompt, which is the safe default ("ask rather than block"). Add the German and multi-line proofread requests to test_a_request_that_asks_for_work_is_not.

🟡 No screenshot for an Agent-UI-visible change
The description reports 11 live chats but embeds no before/after screenshot. A screenshot of the #8244 French request with no "Run this command?" card would cover this. Not blocking on its own.

Sibling paths checked: requested_tools, skill suggestions, look_first, TurnScopeGuard, CompletionEvidence, ExtractionLedger and ungrounded all go through instruction_part now. The old duplicated _TEXT_TASK regex in look_first.py is gone, so the rule lives in one place. No docs describe this behaviour, so there's no doc drift.

Strengths

  • One helper replaces a private regex, and every request-reading check now agrees on where the instruction ends.
  • The decline path only ever refuses. It never auto-approves, so it can't widen what runs without consent, and "always allow" grants still bypass it.
  • The tests cover both directions (quoted sentence declined; "using the shell" still asks) and drive the real loop, not just the helper.

@kovtcharov

Copy link
Copy Markdown
Contributor Author

Fixed as suggested: the call is declined without asking only when the handed-over text is quoted. With unquoted text the user is asked as before, so a save typed after it is no longer turned down for them. New tests cover Translate to German: Good morning everyone. Save the result as de.txt and the multi-line proofread example, plus a loop test that the prompt still reaches the user.

…quoted

With unquoted text everything after the colon counts as text, so a save
the user typed after it was declined without asking. The user is asked
again in that case; only quoted text, as in amd#8244, is declined for them.
@kovtcharov-amd kovtcharov-amd added the ready_for_ci Run CI workflows on draft PR without requesting review label Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This PR stops GAIA asking "Run this command?" when the user only wants a quoted sentence translated or proofread. Instead, the agent turns down the call itself and answers in its reply. The idea is sound and well tested. One gap blocks it: the check that decides "this request asks for nothing but text" works from a fixed list of action words. So when someone asks for real work after the quote using a word that isn't on the list, GAIA refuses it without asking them, and tells the model the user asked for nothing else.

Real-world evidence

N/A: no evidence bundle was produced for this run. The PR description reports 11 Agent UI chats on Qwen3.6 with no approval prompt, as text with no screenshots. It also says the model never reached for a tool in those chats, so the new decline has only been exercised by unit tests. This verdict rests on static review for the decline path. I couldn't run pytest here because it isn't installed on this runner. I did run the new helper directly to reproduce the finding above.

🔍 Technical details

🟡 hands_over_text_only uses a keyword list, so explicitly requested work can be auto-declined (src/gaia/agents/base/text_task.py:328-360, used at src/gaia/agents/base/agent.py:8846)

When the cut-down instruction has no hit in _ASKS_FOR_WORK, the request counts as text-only. Anything the user adds after the quote is still instruction, but a verb missing from that list slips through. Here is what I got running the module directly:

True | Translate this to French: Then paste it into my notes
True | Translate this to French: and post it on Slack
True | Translate this to French: then speak it aloud
False| Translate this to French: and append it to fr.txt

On the first three, any tool that needs confirmation returns TEXT_ONLY_DECLINE ("asks for nothing else") and the user is never asked. That is the opposite of the rubric's "for a real risk, ask the user rather than block". It also contradicts the docstring's promise that a request asking for work returns False. An allowlist of action words will always miss some.

Safer: decline only when the quote is the last thing in the request, or is followed only by to <language>. Ask in every other case:

def hands_over_text_only(request: str) -> bool:
    """Whether *request* asks only for text work on quoted text it supplies.

    Anything the user writes after the quoted text is an instruction we
    cannot classify, so the user is asked.
    """
    request = request or ""
    colon = _TEXT_AFTER_COLON.match(request)
    if colon and not _TARGET_BEFORE_COLON.search(colon.group()):
        quote = _LEADING_QUOTE.match(request[colon.end() :])
        after = request[colon.end() + quote.end() :] if quote else None
    else:
        quote = _QUOTED_TEXT.match(request)
        after = request[quote.end("quote") :] if quote else None
    if after is None or not re.fullmatch(
        r"\s*(?:(?:in)?to\s+[^\W\d_]+)?\s*[.!?]?\s*", after, re.IGNORECASE
    ):
        return False
    asked = instruction_part(request)
    return asked != request and not _ASKS_FOR_WORK.search(asked)

The existing parametrized cases should still pass. Add the three requests above to test_a_request_that_asks_for_work_is_not.

🟢 Skill suggestions are skipped even when the instruction asks for work (hub/agents/gaia/python/gaia_agent/agent.py:705-707)

instruction_part(...) != user_input returns [] for Translate this to French: "…" Then email it to Bob, even though the email skill is relevant. Passing the instruction part to the suggester keeps that case and still drops the quoted text:

        # Text handed over to translate or reword is matched on the instruction only.
        user_input = instruction_part(user_input)

(Drop the early return [] and keep the suggester.suggest(user_input, …) call. test_text_handed_over_to_translate_suggests_no_skill would then assert on the trimmed query, not on calls == [].)

🟢 An unquoted trailing save is no longer owed (from #8233)

Translate to German: Good morning everyone. Save the result as de.txt becomes Translate to German: for CompletionEvidence. If the model only replies, nothing flags the missing de.txt. The tests document this as intended, and the gate still asks the user, so this is non-blocking. It's worth one line in the PR so reviewers see the trade-off.

Strengths

  • One helper (instruction_part) now replaces the ad-hoc _TEXT_TASK regex in look_first.py, and every request reader (completion, grounding, turn scope, extraction ledger, tool requests) goes through it. Behaviour stays consistent across checks.
  • The tests are thorough: the helper, every guard and the real process_query loop, with both directions covered (declined without asking, and still asked when the instruction names a shell or a save).
  • The decline reaches the model as a reason ("Write the result in your reply"), not as a fake user denial, and it doesn't create a save obligation the completion check would complain about.

…n, as a file

"Translate to German: notes.txt, and save as de.txt" cut the file and the
save as text to translate, so a missed de.txt went unflagged. A quoted path
after the colon was cut the same way. Both are now kept as the instruction.
…the quote

"Translate this to French: \"Hello.\" and post it on Slack" counted as
text-only because "post" is not an action word the check knew, so a tool
the user asked for would have been declined without asking. The decline now
applies only when nothing but a target language follows the quoted text.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Fixed as suggested: the call is now declined without asking only when nothing but a target language follows the quoted text. "…and post it on Slack", "…then paste it into my notes" and "…then speak it aloud" now reach the user as an approval prompt, and the #8244 request is still handled. The three requests are in the tests and fail without the change.

  • Skill suggestions stay skipped for handed-over text. Passing just the instruction suggested send-email for "reply with only the translation" in a live run, which is the nudge this fix removes.
  • fix(agent): treat text handed over to translate as text, not as instructions #8233 is contained in this branch, including its latest commit, so this PR supersedes it. Landing this one alone ships both.
  • Unquoted trailing save: noted in the description as a deliberate trade-off.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

🟡 The last fix covers work written after the quoted text, but the same gap is still open for work written before it. Translate this to French and post it on Slack: "Hello there, friend." and Translate and then speak it aloud: "…" still count as translation-only. Any tool needing approval is declined, and the user is never asked. The cause is the same: the text before the colon is checked against a fixed list of action words, and "post" and "speak" aren't on it.

Fix: skip the prompt only when the instruction before the colon is just the verb, an optional "this sentence/text", and an optional "to ". Ask in every other case.

🔍 Technical details

src/gaia/agents/base/text_task.py hands_over_text_only: after is now checked with _ONLY_A_LANGUAGE, but the colon clause (colon.group()) is only screened by _ASKS_FOR_WORK. I ran the module directly:

True  | Translate this to French and post it on Slack: "Hello there, friend."
True  | Translate and then speak it aloud: "Hello there, friend."
False | Translate this to French: "Hello there, friend." and post it on Slack

Suggestion: in the colon branch, also require colon.group() to fullmatch something like
_VERB + r"(?:\s+(?:this|the|following|my)(?:\s+(?:sentence|text|phrase|line|paragraph|message|quote))?)?(?:\s+(?:in)?to\s+[^\W\d_]+)?\s*:". Return False otherwise. Then add the two requests above to test_a_request_that_asks_for_work_is_not.

@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

This PR stops GAIA asking "Run this command?" when someone only wants a quoted sentence translated or proofread. The extra tool call is now declined on the user's behalf and the model answers in its reply. The approach is sound and well tested, but one common request shape is misread.

  • A quoted file name with spaces is treated as a sentence to translate. Translate "Quarterly Sales Report.docx" to French is read as text handed over, not as a file. GAIA then drops the file from its look-first check and skill matching. If reading it needs approval (a file outside the chat's folders), that prompt is declined silently and the model is told to "write the result in your reply". The user gets a made-up translation instead of the file's contents. Fix: treat quoted text that ends in a file extension as a file name, the way the colon form already does, and add this case to the tests.

Real-world evidence

N/A: no evidence bundle was produced for this run. The PR description reports 11 live Agent UI chats on Qwen3.6 with no approval prompt, but it has no screenshot. By the author's own note, the decline itself never fired live, so it has only been exercised in unit tests. The verdict rests on static review plus a direct run of the new helper (below).

🔍 Technical details

🟡 Quoted multi-word file names count as prose (src/gaia/agents/base/text_task.py:297-299, :325-329)

_is_prose counts plain words, so any quoted file name with two or more ordinary words passes. I ran the helper from this branch:

'Translate "Quarterly Sales Report.docx" to French' -> 'Translate  to French'      hands_over_text_only=True
'Translate "Meeting Notes 2026.txt" into Spanish'  -> 'Translate  into Spanish'   hands_over_text_only=True
'Translate this: "Quarterly Sales Report.docx"'    -> 'Translate this:'            hands_over_text_only=True
'Translate "Q3 Board Minutes.pdf" ...'             -> kept whole (only 1 plain word)

Because instruction_part now drives named_workspace_paths, TurnScopeGuard, CompletionEvidence, the skill-suggestion skip and the new decline at agent.py:8846, this one misread changes five behaviours at once. The existing test 'Translate "C:\\My Docs\\notes.txt" to French' passes only because its words contain backslashes. A minimal fix is to rule out quoted text that ends in an extension:

_ENDS_IN_EXTENSION = re.compile(r"\.[A-Za-z][A-Za-z0-9]{1,4}$")


def _is_prose(text: str) -> bool:
    """Whether quoted *text* is a sentence, not a quoted file name or path."""
    text = text.strip()
    if _ENDS_IN_EXTENSION.search(text):
        return False
    return sum(1 for word in text.split() if _WORD.fullmatch(word)) >= 2

A sentence that ends in a file name ("…see report.docx") would then be kept whole and the user is asked. That is the safe direction. Add Translate "Quarterly Sales Report.docx" to French and the colon form to test_a_request_with_no_text_handed_over_is_kept_whole, and to the not hands_over_text_only list.

🟡 Agent UI evidence is text-only, with no screenshot

The rubric asks for a before/after Agent UI screenshot for agent-behaviour changes. The 11-chat run is useful, but a screenshot of the #8244 French request (before: "Run this command?", after: direct answer) would show the fix on the surface the issue was filed against. It does not need to block once the bug above is fixed. Embed it when the RC check in the test plan runs.

Checked, no finding

  • Sibling paths: every gated call goes through the one confirmation branch in _execute_tool, so streaming, the UI, the TUI and -p all get the decline. _original_user_input is reset each turn in memory.py:4380, so an earlier turn's request can't leak in.
  • Fail-loudly: the decline returns a denied status with a reason the model reads. Nothing is swallowed.
  • The trade-off for unquoted text is stated in the PR: hands_over_text_only still returns False there, so the user is asked. That holds in test_a_shell_call_after_unquoted_text_is_still_put_to_the_user.
  • Docs: no doc describes the old prompt-on-translate behaviour, so there is nothing to update.

Strengths

  • Moving look_first._TEXT_TASK into one shared instruction_part means the save, scope, grounding and look checks can no longer disagree on what counts as the instruction.
  • hands_over_text_only is deliberately narrow: quoted text, at most a language after it, and no work words. When in doubt it asks, which matches the "ask, don't block" rule.
  • The tests go through process_query with a scripted model and check both directions (declined without asking, still asked when the instruction wants the shell).

@kovtcharov-amd kovtcharov-amd added the bug Something isn't working label Nov 15, 2026
…es a file name

"Proofread my essay at D:\essay.docx: fix the typos and save it to
D:\fixed.docx" cut the save as text, so a missed save went unflagged.
A quoted file name of several words ("Quarterly Sales Report.docx") was
read as a sentence. Both are now kept as the instruction.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Fixed through #8233, which this branch now merges: quoted text that ends in a file extension is a file name, so Translate "Quarterly Sales Report.docx" to French and the colon form read the file and are never declined unasked. Both are in the tests, including the not-text-only list.

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

Copy link
Copy Markdown
Collaborator

Both open findings are fixed. A call GAIA turns down on its own now shows as "Not run, not needed for this request" in the Agent UI, live and after a reload; a real Deny still shows "You declined". Wording before the colon beyond the verb, a target language and "reply with only the translation" / "do nothing else" (e.g. "…and post it on Slack:") now reaches the user as a prompt. The auto-approve note is in the description.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

When a user only asks GAIA to translate, reword or proofread a quoted sentence, a shell or file call that would need approval is now turned down by GAIA itself, and the Agent UI shows it as "Not run, not needed for this request", not as the user's own Deny. The rule is narrow. It fires only when the text is quoted and the instruction around it holds nothing but the verb and a target language, so "…then save it to fr.txt", "…and email it to Bob" or "…using the shell" still ask the user. I probed the helper with those cases and it stayed on the safe side every time.

Two small things to look at before merge:

  • No screenshot of the new label. The new "Not run, not needed for this request" row, in English and Arabic, has no screenshot. Unit tests cover the wording, but the live run never triggered the decline. One shot from the RTL visual run, using a fixture with the new flag set, would close this.
  • Skill suggestions are skipped too broadly. They are dropped for any translate request that carries handed-over text, including one that also asks for a save. That's harmless today, but it's broader than the rest of the PR.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review, plus a direct probe of the new text-splitting helper (output below). The PR reports 11 of 11 live Agent UI translate chats with no prompt shown, but the model never reached for a tool in them, so the decline path itself has only unit-test proof. The probe:

'Translate this to French: Then save it to fr.txt'                  False  # save still asked
'Translate  to French'                                              True   # declined
'Translate this to French:'                                         True   # quoted "Run ls…" is text
'Translate to French: and email it to Bob'                          False
'Translate  to French and then look up the weather in Paris'        False
🔍 Technical details

🟡 UI label shipped without a rendered check (AgentActivity.tsx:184, en.ts/ar.ts)
The new tool.autoDeclined and activity.autoDeclined strings and the not-run styling for autoDeclined are covered only by RTL-library and vitest assertions. Per CLAUDE.md's UI rule, add a visual/rtl.visual.ts state with an autoDeclined tool step, so the English and Arabic rows get looked at. The Arabic label puts {label} after a colon, which is worth eyeballing in RTL. This is an evidence nudge, not a blocker, since the decline can't easily be triggered live.

🟢 Skill suggestions dropped even when the instruction asks for work (hub/agents/gaia/python/gaia_agent/agent.py:705)
instruction_part(user_input) != user_input returns [] for Translate this to French: "Hello there, friend." Then save it to fr.txt, whose instruction still owes a save (your own test_a_save_the_instruction_asks_for_is_still_owed). Matching the suggester against the instruction keeps the "text says nothing" intent without losing that case:

        # Text handed over to translate or reword needs no skill, whatever it says.
        if instruction_part(user_input) != (user_input or "") and hands_over_text_only(
            user_input
        ):
            return []

(This would also need hands_over_text_only imported. Alternatively, pass instruction_part(user_input) to the suggester.)

🟢 TUI shows the auto-decline as a plain failed step
The TUI doesn't read declined_by, so the row there shows the Not run: … error text rather than a "skipped" label. That's honest, just less polished than the Agent UI. A follow-up is fine.

Sibling paths checked: requested_tools, the look-first inventory, CompletionEvidence, TurnScopeGuard and grounding all now read instruction_part, and look_first's old private _TEXT_TASK regex was removed rather than left as a second rule. On the backend, declined_by is carried through sse_handler, SUMMARY_VIEW_KEYS and the persisted-step _denial, so a reloaded chat keeps the label. No docs describe the old behaviour.

Strengths

  • hands_over_text_only fails toward asking: unquoted text, single-word quotes, in French, / or any extra clause all return False, so it can't turn down work the user asked for.
  • A single helper replaces a duplicated regex, and the tests pin both directions (cut vs kept whole) with the bug's real sentences.
  • The decline uses the existing NOT_EXECUTED/denied shape, so the user's real Deny keeps its "You declined" wording.

# Conflicts:
#	src/gaia/agents/base/agent.py
#	src/gaia/agents/base/text_task.py
#	tests/unit/agents/test_text_task.py
@kovtcharov-amd kovtcharov-amd added ready_for_ci Run CI workflows on draft PR without requesting review and removed ready_for_ci Run CI workflows on draft PR without requesting review labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

When a user only asks GAIA to translate, reword or proofread some quoted text, GAIA now turns down any command or file change the model reaches for, and the model answers in its reply instead of showing a "Run this command?" prompt. The Agent UI labels that row "not needed for this request" rather than "You declined". The change only refuses calls and never runs one unasked. The text classifier errs strongly toward asking, and the tests pin both sides.

  • No screenshot of the new row. The new "Not run, not needed for this request" row and the "Skipped a step that wasn't needed" summary are new UI text in English and Arabic, but the PR has no screenshot of either. The live run never reached for a tool, so nobody has seen the row on screen. Before merge, add one English and one Arabic capture, for example from the AgentActivity RTL visual test with a stubbed autoDeclined step.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review, the classifier probe below, and the author's own report of 11 live Agent UI chats with no prompt. The decline path itself has no live evidence; only unit tests show it.

🔍 Technical details

Issues

🟡 Missing UI evidence for the new labels (AgentActivity.tsx:187, :465; en.ts / ar.ts). Per CLAUDE.md's "A UI change isn't done until someone has looked at it", run npm run test:rtl with a step carrying autoDeclined: true and attach the English and Arabic captures. The Arabic string mixes the {label} placeholder after a colon, which is the kind of row that has rendered backwards before.

🟢 TUI sibling shows the decline as a plain failed step. The TUI's denied wording comes only from an answered prompt (tui/internal/ui/chat/model.go:3540), so an autoDeclined result shows up there as a failed tool with the decline text as its detail. That is honest, but it doesn't match the Agent UI wording. It's worth a follow-up if the TUI should say "not needed" too.

Checked and fine

  • The decline sits inside the _tool_requires_confirmation branch (agent.py:8848), so ungated reads and searches still run. It only ever replaces a prompt with a no, and it carries NOT_EXECUTED.
  • _original_user_input is set per turn (memory.py:4380), so a follow-up such as "now save that to fr.txt" is judged on its own text and still asks.
  • I probed the classifier directly. It returns False (keeps asking) for unquoted text, extra clauses after the quote ("then read it out loud", "Also check my calendar"), several languages, no target language, and a trailing "Thanks!". It leans toward asking, which is the safe direction.
  • _denial checks timed_out before declined_by on both the Python and TS sides, and both read the nested relayed data. sse_handler passes only the exact value "agent" through, and a test pins that.
  • The model-loop sibling that builds the loop-break summary (agent.py:15527) treats any denied as "not permitted here", which still reads correctly for this decline.

Strengths

  • The negative test list is well chosen: work before the colon, work after the quote, quoted file names, and unquoted saves all still ask, and the shell-agent tests show the prompt is skipped only in the intended case.
  • A user's Deny, a prompt that timed out, and GAIA's own decline stay three distinct outcomes, live and after a reload (AgentStepResponse.autoDeclined).

@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
Streams an auto-declined shell step in English and Arabic, checks it
reads as not needed rather than declined, runs the layout audit and
saves a screenshot of each.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Added: a layout scene streams an auto-declined shell step in English and Arabic. It checks the row reads as not needed (never "You declined"), runs the layout audit, and saves these:

English Arabic
auto-declined row, English auto-declined row, Arabic

The Arabic row reads right to left with {label} in place after the colon. "Asking you a question" stays English there only because the fixture's narration is English, as in the existing declined-step scene. The TUI wording is a fair follow-up; I've left it out of this PR.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This stops GAIA from asking "Run this command?" when someone only hands over quoted text to translate, reword or proofread. The gated call is turned down before any prompt, the model answers in its reply, and the Agent UI labels the row "Not run, not needed for this request" instead of "You declined". The detection is conservative. It fires only when the text is quoted prose and nothing but the verb and a target language surrounds it. Anything else, including a lone quoted word or a save written after the quote, still goes to the user. I found no correctness bug.

Worth doing before or soon after merge:

  • Show the new row in screenshots. No screenshot shows the new label in English or Arabic. The live chats never triggered it, because the model didn't reach for a tool. A fixture row in the RTL visual suite would cover it.
  • Clear the tool's prepared preview on this path too. When the user says no, or a prompt times out, GAIA throws away the preview a tool built for the prompt (for example, the email draft). The new decline path skips that cleanup.
  • Mention the exception in the CLI reference. It still says --dangerously-skip-permissions runs every confirmation-gated tool without asking. On a text-only request, it now refuses them.

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 detection function on a few edge-case requests (results below). The PR description reports 11 live Agent UI chats on Qwen3.6 with no prompt and no file written. The decline path itself is covered only by unit tests, because the model never reached for a tool in those chats.

🔍 Technical details

Issues

🟡 Missing Agent UI evidence for the new row (AgentActivity.tsx, en.ts/ar.ts). The rubric and the reviewing-agent-ui skill want the new tool.autoDeclined / activity.autoDeclined strings seen in EN and AR. Only jsdom tests cover them. A fixture step with autoDeclined: true in visual/rtl.visual.ts would produce the screenshot without needing the model to misbehave live. This is a nudge, not a merge blocker.

🟢 Preflight draft not forgotten on the auto-decline (src/gaia/agents/base/agent.py:8851). The timed-out branch just below it and the user-deny branch both call preflight.forget(tool_args), so a prepared preview "must not outlive" the prompt. For example, _MailPreflight stores the built message in _email_prepared. The new early return leaves it there. The impact is small, but the cleanup should match the sibling paths:

            ):
                forget = getattr(preflight, "forget", None)
                if callable(forget):
                    with self._skill_tool_scope(tool_name):
                        forget(tool_args)
                return {

(Keep the opening if hands_over_text_only(...) lines as they are. Only the body changes.)

🟢 Doc drift: headless behaviour (docs/reference/cli.mdx:122). It still says --dangerously-skip-permissions will "Run confirmation-gated tools … without asking". The PR body says a gaia -p text-only request now has those calls refused. A short clause there would keep the reference honest.

Checks run

  • Sibling paths:
    • Backend _denial (_chat_helpers.py), SSE relay (sse_handler.py, SUMMARY_VIEW_KEYS), saved-step model, and the frontend denial() / toolRowText / stepsSummary / notRun all carry the new flag consistently.
    • The TUI tracks approvals from its own prompts, not from status: "denied". An auto-decline there renders as a plain tool result, never as "denied", so there's no mislabel.
    • _original_user_input is reset per turn (memory.py:4380), so an earlier turn's translate request can't gate a later one.
  • Probe of hands_over_text_only:
    • Translate "Hello" to French → False: one word is not prose, so the user is still asked.
    • Proofread this: "Their going home." → True.
    • …: "Hello." and then save → False.
    • Quote followed by \n\nThen save to fr.txt → False.
    • So the gate leans toward asking, as described.
  • pytest wasn't installed on this runner, so I didn't re-run the new tests here. The PR reports them passing.

Strengths

  • The decline is tied to the request's own instruction (instruction_part), not to a guess about the tool call. Quoted file names ("Report.docx") and work written before or after the quote are explicitly excluded and tested.
  • declined_by: "agent" is passed only for that exact value (test_an_unknown_decliner_is_not_passed_on), so a stray value can't relabel a user's own Deny.
  • Each case has a test on both sides, including that a user's Deny carries no declined_by.

The user-deny and timed-out paths already forget a tool's prepared
preview (such as an email draft); the text-only decline now does too.
The CLI reference notes that --dangerously-skip-permissions still has
gated tools refused on a text-only request.
@kovtcharov

Copy link
Copy Markdown
Contributor Author

All three suggestions are done:

  • Screenshots: the layout suite now has a scene for a call GAIA turned down itself, shown in English and Arabic, with both screenshots in the PR description.
  • Prepared preview: a call GAIA declines on its own now drops the preview a tool prepared (such as an email draft), as the deny and timeout paths already did.
  • CLI reference: the --dangerously-skip-permissions row now says a text-only request still has gated tools refused.
🔍 Technical details
  • preflight.forget(tool_args) runs under _skill_tool_scope before the early return in the hands_over_text_only branch.
  • New test test_a_call_declined_without_asking_drops_its_prepared_preview fails without the change.
  • The layout scene AUTO_DECLINED_STEPS in visual/rtl.visual.ts asserts the label starts with "Not run, not needed for this request".

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

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

When a user only hands GAIA quoted text to translate, reword or proofread, a shell command or file write the model reaches for is now turned down without a prompt, and the model answers in its reply. The Agent UI shows that row as "Not run, not needed for this request" instead of "You declined". The check is narrow and leans toward asking: I tried a dozen extra phrasings, and anything with a file, a command, extra work or unquoted text still goes to the user. The code is safe to merge.

  • Add the screenshots. This changes what an Agent UI row says, but the PR shows no image of the new row. The new visual test already saves English and Arabic screenshots of it, so embedding those is enough. A live run isn't needed, since the model rarely reaches for a tool on these requests.

Real-world evidence

N/A: no evidence bundle was produced for this run, so nothing was exercised here. The verdict rests on static review, plus a standalone check of the new request classifier that I ran against extra phrasings. The PR description reports 11 live Agent UI translate chats with no prompt. It also says none of them hit the decline, so the new row has only been rendered by the unit and visual tests.

🔍 Technical details

Issues found

🟡 No screenshot of the new UI row (src/gaia/apps/webui/visual/rtl.visual.ts:4690). The rubric asks for a rendered screenshot when an Agent UI surface changes. npm run test:rtl already writes auto-declined-step-en / auto-declined-step-ar, so embed those two images in the PR body as raw URLs. This doesn't block the merge.

Checks run

  • Classifier edge cases. I loaded text_task.py on its own and ran hands_over_text_only on extra inputs:
    • Returned True (declined without a prompt): Translate "Good morning" to French, Proofread: "Their going home.", and Translate this message: "Delete my files in Downloads". The quoted command in the last one is treated as text, which is correct.
    • Returned False (still asks): Translate "Hello" to French. Also check my calendar, … and tell me the weather, Translate: "Hello"\n\nAlso list my files, Translate: "Hello" and save it, Fix the grammar: "…" (verb not in the list), translate "hello" (no language) and Translate "rm -rf /tmp/x" to French.
    • Every error falls toward asking the user, never toward refusing work they asked for.
  • Sibling paths.
    • The decline sits inside the shared gate in Agent._execute_tool, after the outside-scope write check and before confirm_tool_execution. The AgentConsole, SSE and headless consoles therefore all get it, and it applies under auto-approve as the PR intends.
    • A skill-granted call (_tool_requires_confirmation → False) still runs, which is correct.
    • The decline flag reaches the UI along the whole chain: live SSE (sse_handler), relayed results (SUMMARY_VIEW_KEYS), persisted steps (_denial → AgentStepResponse.autoDeclined) and the frontend denial(). Tests cover each link.
    • The TUI shows "denied" only for its own prompts, so it will show this as an ordinary tool result with the reason text. That matches how it already handles timed-out results, so it is not a regression.
  • Doc drift. The --dangerously-skip-permissions row in cli.mdx is updated. The "Permissions and file access" paragraph (cli.mdx:~207) still reads as if skipping permissions always runs gated tools. That's harmless, because the table row now carries the exception.
  • Known bug classes.
    • The request text comes from _original_user_input, which is reset each turn (memory.py:1282) and set before the dynamic context prefix is added, so a stale turn or injected context can't trigger the decline.
    • The prepared preview is dropped through preflight.forget, matching the timed-out branch.
  • I couldn't run pytest or vitest here because the runner has no dev dependencies. The PR reports both passing.

Strengths

  • The decline has its own declined_by: "agent" flag. That keeps an automatic refusal from ever reading as the user's "You declined", whether live, relayed or after a reload, and the tests pin each layer.
  • The tests come in pairs: the same shell call is declined without asking on handed-over text and still prompts once the instruction asks for the shell. That shows the classifier, not the mock, decides.
  • The new strings go through useT in English and Arabic, and the RTL visual suite gets a case for the new row.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 15, 2026
Merged via the queue into amd:main with commit db64b53 Nov 15, 2026
120 of 153 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the fix/8244-text-task-no-tools branch November 15, 2026 21:58
@kovtcharov

Copy link
Copy Markdown
Contributor Author

Correction to my earlier reply: the two screenshots of the new row weren't in the description, although I said they were. They are now (English and Arabic, from the layout suite).

@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 cli CLI changes documentation Documentation 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.

Translating a sentence that mentions a path sometimes asks to run a shell echo

2 participants