Skip to content

[Bug]: Antigravity: a GBK/GB18030 text attachment makes every later turn in the thread fail with a generic error #40310

Open

Description

@RyanTens

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Make a CSV file in GB18030/GBK, the default encoding for CSV exports from Alipay, WeChat Pay and most Chinese banks. For example:
    printf '交易时间,金额\n2026-01-01,10.00\n' | iconv -f UTF-8 -t GB18030 > export.csv
  2. In an Antigravity thread, attach export.csv and send a message.
  3. The turn fails. Send a few more plain-text messages in the same thread with no attachments.

Expected behavior

  • The attachment is decoded (detect or fall back to GB18030, or let me pick an encoding), or
  • If it is rejected, the UI shows the real reason (for example "export.csv is not UTF-8") and that turn fails on its own.
  • The thread keeps working for later messages.

Actual behavior

  1. The first turn fails. The UI only says:

    The provider could not start this turn. Retry the turn; if it keeps failing, check the provider setup and server logs.

    The specific cause only appears in server.trace.ndjson.

  2. Every later message in the thread fails the same way, even plain text with no attachment. When the native session is recreated ("Context handoff" / "Recovering provider context in a fresh native session"), the thread history is replayed, including the GB18030 attachment, and buildAntigravityPrompt rejects it again. The thread can't be used after that. The only workaround is to start a new thread.

There are three separate problems here:

  • Encoding support: fix(antigravity): accept UTF-16 text attachments with a BOM #39456 added UTF-16 with a BOM, but there is no fallback for other non-UTF-8 text such as GB18030. These files are very common for users in China.
  • Thread poisoning: an attachment that fails to encode during history replay should be skipped or replaced with a placeholder note, not fail the whole turn every time.
  • Error surfacing: the ProviderAdapterTurnStartError detail and attachment name should be shown in the UI instead of the generic message.

Note: xlsx attachments are already converted to a .txt sidecar before being sent, so CSV seems to be handled less carefully than xlsx.

Impact

Blocks work completely

Version or commit

T3 Code (Beta) 0.1.11, arm64

Environment

macOS (Apple Silicon), Antigravity provider (agy ACP)

Logs or stack traces

From `~/.t3/userdata/logs/server.trace.ndjson` (`RunExecutionService.startRootRun`, file name genericized):


orchestration V2 provider turn start failed
  ProviderAdapterTurnStartError (driver: antigravity)
    cause: ProviderAdapterProtocolError
      detail: "Failed to build ACP attachment prompt"
      payload: AcpRequestError
        code: -32602
        errorMessage: "Attachment 'export.csv' is not a UTF-8 text file."


On every later turn, the same error follows right after:


orchestrationV2.providerTurnStart.start
  "Recovering provider context in a fresh native session" (driver: antigravity)


`file` reports the stored attachment as `Non-ISO extended-ASCII text,

Screenshots, recordings, or supporting files

No response

Workaround

No response

Activity

  1. added
    bug
    needs-triage
    on Nov 21, 2026
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

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions