Antigravity 2.6 – Agent stuck on Working due to invalid UTF-8 in CortexErrorDetails

After updating to Antigravity 2.6, the agent gets stuck indefinitely on “Working” and never completes its tasks.

The DevTools Console repeatedly shows the following error:

[consumeAgentStateStream] streamAgentStateUpdates error:
ConnectError: [internal] internal: marshal message: proto:
field exa.cortex_pb.CortexErrorDetails.short_error
contains invalid UTF-8

The error occurs repeatedly with different error IDs.

I downgraded to Antigravity 2.5.5, and the agent works normally again.

This strongly suggests a regression in version 2.6, potentially related to malformed UTF-8 data in the agent state stream or an internal Cortex error response.

Could the team investigate this issue?

Environment:

  • Antigravity 2.6

  • Windows

  • Gemini Pro

  • Agent workflow with manual approval of each step

The issue disappears after downgrading to version 2.5.5.

Hi @Tiago_Zan,

Welcome to the Forum.

Thanks for the detailed report and console trace. In Antigravity IDE 2.6.0, the updated extension architecture automatically reconnects and restores open conversations. If a step or tool error on Windows outputs non-UTF-8 characters into CortexErrorDetails.short_error, protobuf serialization fails and leaves the UI stuck on Working, and resuming that conversation re-triggers the stream failure.

If you test v2.6.0 again (or use Antigravity App 2.28.2), please try:

  1. Start a New Conversation (Ctrl+N): Open a fresh chat so the agent doesn’t re-stream the affected session history, and test switching models (such as Gemini 3.8 Flash or Gemini 4 Argon) in the model selector.
  2. Reset the agent stream: Press Ctrl+Shift+P and run Developer: Reload Window (or Antigravity: Restart Agent).

If the issue persists in a new chat, please open View > Output (Ctrl+Shift+U), select Antigravity Language Server, and reply here with the log lines preceding the error.

(post deleted by author)

Thanks for the suggestions.

I tested version 2.6.0 on a completely clean installation (manually purged all directories across %APPDATA%, %LOCALAPPDATA%, and local cache folders). I then opened a brand new chat (Ctrl + N) and switched the model to Gemini 3.8 Flash Medium.

Unfortunately, the issue persisted immediately on the very first command. The agent gets stuck in “Working…” indefinitely.

Here is what the diagnostics showed:

  • Antigravity Language Server (Ctrl + Shift + U): No errors reported. The output simply stops after SetEditorState (requestId: 16).
  • Developer Tools Console (Ctrl + Shift + I): The console continuously logs the following Protobuf serialization error:
    [consumeAgentStateStream] streamAgentStateUpdates error: ConnectError: [internal] internal: marshal message: proto: field exa.cortex_pb.CortexErrorDetails.short_error contains invalid UTF-8

This confirms that the issue is not caused by stale session state or model selection. On Windows (where system processes and tool outputs frequently default to CP850 / Windows-1252), unhandled characters passed into CortexErrorDetails.short_error break the gRPC Protobuf marshalling on the very first turn.

I am rolling back to v2.5.5 with updates disabled until a patch/hotfix addressing this serialization bug is released. Hope these trace details help the team reproduce and fix it!

Antigravity LS
[main] => {“type”:“postmessage-rpc”,“channel”:“agy-ext-antigravity-api”,“requestId”:17,“rpcPath”:“/gemini_coder.agent_ui_toolkit.iframe.AntigravityApi/SetEditorState”,“payload”:{“$typeName”:“gemini_coder.agent_ui_toolkit.iframe.EditorStateMessage”,“otherDocuments”:[],“action”:“ACTIVE_EDITOR_CHANGED”},“source”:“antigravity-extension”}

[main] => {“type”:“postmessage-rpc”,“channel”:“agy-ext-antigravity-api”,“requestId”:18,“rpcPath”:“/gemini_coder.agent_ui_toolkit.iframe.AntigravityApi/SetEditorState”,“payload”:{“$typeName”:“gemini_coder.agent_ui_toolkit.iframe.EditorStateMessage”,“otherDocuments”:[],“action”:“ACTIVE_EDITOR_CHANGED”},“source”:“antigravity-extension”}

[main] => {“type”:“postmessage-rpc”,“channel”:“agy-ext-antigravity-api”,“requestId”:19,“rpcPath”:“/gemini_coder.agent_ui_toolkit.iframe.AntigravityApi/SetEditorState”,“payload”:{“$typeName”:“gemini_coder.agent_ui_toolkit.iframe.EditorStateMessage”,“otherDocuments”:[],“action”:“ACTIVE_EDITOR_CHANGED”},“source”:“antigravity-extension”}

[main] => {“type”:“postmessage-rpc”,“channel”:“agy-ext-extension-api”,“requestId”:29,“rpcPath”:“/gemini_coder.agent_ui_toolkit.iframe.ExtensionApi/OnDidChangeTelemetrySetting”,“payload”:{},“source”:“antigravity-extension”,“error”:false}

Thank you for following up with that clean-install test and the exact DevTools console trace, @Tiago_Zan. Confirming that proto: field exa.cortex_pb.CortexErrorDetails.short_error contains invalid UTF-8 fires immediately on the very first command of a brand-new chat after SetEditorState is the smoking gun.

To build on @Rebbanpalli_Naveen’s notes and explain why this happens even on a freshly wiped %APPDATA% install on Windows:

  1. Root Cause (Windows Localized Legacy Codepage in syscall.Errno / Subprocess stderr): When the Go language_server in v2.6 initializes workspace state or runs a background environment probe on Windows, if any underlying OS call or shell child process returns a localized Windows error message (for example, Portuguese/Spanish/French characters like ã, ç, é encoded in Windows-1252 or CP850 rather than UTF-8), that raw byte string gets copied directly into CortexErrorDetails.short_error. Because Protobuf v3 strictly rejects non-UTF-8 byte sequences during proto.Marshal, the streamAgentStateUpdates gRPC-Web stream aborts before the UI ever receives the completion event, leaving the spinner stuck on Working... forever.

  2. Workaround #1 (Enable Windows System-Wide UTF-8 Codepage 65001): You can force Windows to return all OS and subprocess error strings in valid UTF-8 so proto.Marshal never chokes on CortexErrorDetails.short_error:

    • Press Win + R, type intl.cpl, and press Enter.
    • Go to the Administrative tab and click Change system locale…
    • Check Beta: Use Unicode UTF-8 for worldwide language support, click OK, and reboot.
  3. Workaround #2 (Force UTF-8 Environment Variables & chcp 65001 Without Changing Locale): If you need to keep your legacy system locale for older apps, set PYTHONUTF8=1 and LANG=en_US.UTF-8 in your Windows User Environment Variables and add chcp 65001 >nul to your shell startup so any command spawned by the language server emits strict UTF-8.

Thanks for the detailed breakdown and explanation regarding how the Go language server handles syscall.Errno and Protobuf marshalling.

We tested both workarounds to see if we could mitigate the issue:

  1. Workaround #2 (Environment Variables & chcp 65001): Setting PYTHONUTF8=1, LANG=en_US.UTF-8, and enforcing chcp 65001 did not prevent the crash. Since the error originates directly from low-level Win32 system calls within the Go runtime, the unhandled codepage bytes are still copied straight into CortexErrorDetails.short_error before shell-level environment flags can intercept them. The stream aborts immediately on the first command just as before.

  2. Workaround #1 (System-wide Beta UTF-8 via intl.cpl + Reboot): Enabling the beta UTF-8 flag globally and rebooting did not reliably resolve the stream failure, and more importantly, it introduces breaking encoding side-effects across existing development toolchains, database drivers, and legacy compilers running on the machine.

Since neither workaround provides a clean or viable resolution, I am remaining on v2.5.5 for my day-to-day development. The definitive solution will need to be implemented within the language server binary itself by sanitizing or transcoding OS error byte strings to strict UTF-8 prior to calling proto.Marshal.

Thanks again for investigating the trace and validating the root cause!

Appreciate you testing both paths thoroughly and reporting the exact results back, @Tiago_Zan. Confirming that the Go language_server on v2.6 still emits raw non-UTF-8 Win32 error bytes into CortexErrorDetails.short_error even with chcp 65001 and the intl.cpl UTF-8 flag narrows this 100% to an unguarded string assignment inside the v2.6 binary prior to proto.Marshal.

Staying pinned on v2.5.5 is definitely the right call for production stability right now. On the upstream Go side, wrapping the short_error assignment with strings.ToValidUTF8(errStr, "\uFFFD") (or decoding via golang.org/x/text/encoding/charmap before constructing CortexErrorDetails) will prevent streamAgentStateUpdates from aborting the gRPC-Web stream. Your test matrix here gives the engineering team everything needed to reproduce and patch the regression.

Thanks for the update and for confirming the root cause! Glad to hear the traces helped pinpoint the exact issue on the Go side.

I will remain on v2.5.5 for my daily workflow and look forward to the upcoming release with the patch applied. Appreciate the attention and support!

Hi team,

Following up on the confirmed root cause regarding the non-UTF-8 CortexErrorDetails.short_error Protobuf serialization failure on Windows in v2.6:

Do you have an estimated timeline or a target patch/hotfix release (e.g., v2.6.1) scheduled to include the Go language server fix (strings.ToValidUTF8)?

I am currently pinned to v2.5.5 to maintain stability, but would love to know when we can expect the updated build so we can plan the upgrade.

Thanks again for the great support!

Good morning everyone, hope you are all doing well.

Following up on this—do we have any ETA or update on a new release (e.g., v2.6.1) containing the Windows UTF-8 Protobuf serialization fix (CortexErrorDetails.short_error)?

With the new Hydrogen model rolling out yesterday, those of us on Windows who are still forced to stay pinned to v2.5.5 (since both v2.6.0 and the CLI hang on “Working”) are missing out and remain restricted to only two older models.

We would really appreciate an update on when we can expect the patched build so we can safely upgrade. Thanks!