Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate (closest: [Bug]: ACP grep/code search rows show a globe as web search #12928, which fixed the inverse direction).
- I included enough detail to reproduce or investigate the problem.
Area
apps/server (ACP provider mapping / turn-item classification), desktop work log
Steps to reproduce
- T3 Code Nightly
0.1.10-nightly.20261114.4709, Windows 11, providerantigravity, model Gemini 3.8 Flash (High), runtime mode full-access. - Start a new thread in any workspace.
- Send:
Use ONLY your web search tool. Do not use the shell, file read/write, or file search. Query: "top story on Hacker News today". Reply with the verbatim raw output, then the title and URL of the #1 story, or write NO WEB RESULTS if the tool returned nothing. - Watch the tool row in the work log.
Expected behavior
A web_search row — "Searched the web", globe, with the grounding sources the model received.
Actual behavior
The row is a local file search: item type file_search, and the payload is
{
"pattern": "top story on Hacker News today",
"results": [{ "fileName": "top story on Hacker News today" }]
}The query is echoed back as a fileName, there are no sources, and the log reads as if the agent grepped the workspace. Nothing in the UI indicates a web request happened.
The web search itself works
The model returned a genuine grounding summary with vertexaisearch.cloud.google.com/grounding-api-redirect/... citations for five stories that were exactly on the Hacker News front page at that moment (checked against hacker-news.firebaseio.com immediately after):
- Qwen4-Max — qwen.ai
- Universal XSS in uBlock Origin from website-driven element picker — iter.ca
- How to make almost anything — cba.mit.edu
- Old Bitly links are being hijacked — ransomnews.com
- What's Next for Nvidia? — steveblank.com
So the capability is fine. The classification and presentation are wrong, and they manufacture a fake result row.
Where it breaks
src/provider/acp/AntigravityProtocol.ts — the ACP search branch:
case "search": {
const backendSearch = acpBackendWebSearch(rawInputRecord, rawOutputRecord);
if (backendSearch !== void 0) {
// type: "web_search" with patterns + results
break;
}
turnItem = {
...base,
type: "file_search",
...path === void 0 ? {} : { pattern: path },
...path === void 0 ? {} : { results: [{ fileName: path }] }
};
break;
}and the recogniser it depends on:
function acpBackendWebSearch(rawInput, rawOutput) {
const variant = typeof rawInput?.variant === "string" ? rawInput.variant.toLowerCase() : "";
const action = unknownRecord$1(rawOutput?.action);
if (variant !== "xsearch" && variant !== "websearch" && action?.type !== "search") return;
...
}Antigravity's real web tool call carries neither variant: "xsearch" | "websearch" nor rawOutput.action.type === "search", so the recogniser returns undefined, the branch falls through to file_search, and fileName: path fabricates a result.
Secondary defect in the same file:
function providerRequestKind(kind) {
switch (kind) {
case "execute": return "command";
case "read":
case "search":
case "fetch": return "file-read";so a web search is permission-classified (and telemetry-classified) as a file read.
Suggested fix
- Recognise the Antigravity web tool by its tool name/title (
search_web, "Web search") as well as byvariant, and/or by the presence of grounding sources in the output payload. - Add Antigravity's actual
variantvalue to the accepted set. I could not capturerawInputto hand it over:~/.t3/userdata/logs/provider/events.*.logrecords only JSON-RPC methods,.../antigravity-acp/log/acp-server-*.logrecords lifecycle only, and the per-conversationsteps.step_payloadis protobuf without the tool call. If there is a supported trace flag (T3_ACP_*inserver.asaronly exposes cgroup/MCP vars), tell me and I will attach the exact payload. - When
kind === "search"cannot be classified, do not synthesiseresults: [{ fileName: <query> }]. An unclassified row with no fabricated result would be honest and would not corrupt the audit trail.
Relationship to #12928
That issue fixed the opposite failure — ACP grep rows rendering with a globe — by tightening acpBackendWebSearch to explicit signals. This is the same heuristic now failing in the other direction, for an ACP provider that genuinely searches the web. A fix needs to keep local grep on file_search while recognising Antigravity's web calls.
Impact
Confusing rather than fatal, but consequential: the work log says web search never happened. I concluded from it that Antigravity had no web access under T3 and briefed four research agents on that false premise before a live probe disproved it. It also hides the sources the model actually used, and writes a fabricated fileName into the persisted thread.
Workaround
None client-side. The model still receives real results; only the record is wrong. Practically: trust the assistant's grounding URLs, not the tool row.
Version or commit
T3 Code Nightly 0.1.10-nightly.20261114.4709 (ProductVersion 0.1.10.0)
Environment
Windows 11, T3 Code desktop (Nightly), providers antigravity and antigravity_2, gemini-3.8-flash with thought_level: high, runtimeMode: full-access.
Logs or stack traces
Turn item as persisted/rendered:
{
"type": "file_search",
"pattern": "top story on Hacker News today",
"results": [{ "fileName": "top story on Hacker News today" }]
}Assistant output (abridged), showing real grounding sources behind that row:
A)
The search for "top story on Hacker News today" returned the following summary:
Top stories currently trending on Hacker News include:
* Qwen4-Max (qwen.ai)[1]
* Universal XSS in uBlock Origin from website-driven element picker (iter.ca)[1]
...
Sources:
[1] https://vertexaisearch.cloud.google.com/grounding-api-redirect/AUZIYQGYNzfz...
Provider request log for the same thread only shows session/prompt start/success — no tool payload:
[2026-11-16T13:25:08.843Z] {"method":"session/prompt","status":"started"}
[2026-11-16T13:25:52.136Z] {"method":"session/prompt","status":"succeeded"}
Activity