Skip to content

[Bug]: Antigravity web search renders as a local file search (query becomes a fake fileName) #37644

Closed

Description

@senutpal

Before submitting

Area

apps/server (ACP provider mapping / turn-item classification), desktop work log

Steps to reproduce

  1. T3 Code Nightly 0.1.10-nightly.20261114.4709, Windows 11, provider antigravity, model Gemini 3.8 Flash (High), runtime mode full-access.
  2. Start a new thread in any workspace.
  3. 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.
  4. 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 by variant, and/or by the presence of grounding sources in the output payload.
  • Add Antigravity's actual variant value to the accepted set. I could not capture rawInput to hand it over: ~/.t3/userdata/logs/provider/events.*.log records only JSON-RPC methods, .../antigravity-acp/log/acp-server-*.log records lifecycle only, and the per-conversation steps.step_payload is protobuf without the tool call. If there is a supported trace flag (T3_ACP_* in server.asar only exposes cgroup/MCP vars), tell me and I will attach the exact payload.
  • When kind === "search" cannot be classified, do not synthesise results: [{ 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"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions