Agent executor error: could not convert a single message before hitting truncation

I have been facing this issue from last 15 days and nothing is working. Tried reinstalling the app deleted all the previous files, changing agent, and changing project. But, nothing is working.

Trajectory ID: dd010d23-928c-43ce-
Error: agent executor error: could not convert a single message before hitting truncation
(1) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:2088
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| third_party/jetski/cortex/cascade_manager.go:2136
Wraps: (2) agent executor error
Wraps: (3) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/chatconverters/chatconverters.(*TrajectoryChatConverter).GetNumTokensSinceLastCheckpoint
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:550
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7.1
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:43
| google3/third_party/jetski/cortex/executors/executors.(*CascadeWrapper).ViewTrajectory
| third_party/jetski/cortex/executors/cascade_wrapper.go:258
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:33
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).executeLoop
| third_party/gemini_coder/framework/executor/executor.go:388
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| third_party/gemini_coder/framework/executor/executor.go:277
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:2053
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| third_party/jetski/cortex/cascade_manager.go:2136
Wraps: (4) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/chatconverters/chatconverters.(*TrajectoryChatConverter).TrajectoryToChatMessagesFromNCheckpointsAgo
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:1135
| google3/third_party/jetski/cortex/chatconverters/chatconverters.(*TrajectoryChatConverter).GetNumTokensSinceLastCheckpoint
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:548
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7.1
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:43
| google3/third_party/jetski/cortex/executors/executors.(*CascadeWrapper).ViewTrajectory
| third_party/jetski/cortex/executors/cascade_wrapper.go:258
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:33
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).executeLoop
| third_party/gemini_coder/framework/executor/executor.go:388
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| third_party/gemini_coder/framework/executor/executor.go:277
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:2053
| […repeated from below…]
Wraps: (5) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/chatconverters/chatconverters.init
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:44
| runtime.doInit1
| third_party/go/gc/src/runtime/proc.go:8105
| runtime.doInit
| third_party/go/gc/src/runtime/proc.go:8072
| runtime.main
| third_party/go/gc/src/runtime/proc.go:258
| runtime.goexit
| third_party/go/gc/src/runtime/asm_arm64.s:1447
Wraps: (6) could not convert a single message before hitting truncation
Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *withstack.withStack (4) *withstack.withStack (5) *withstack.withStack (6) *errutil.leafError

1 Like

Do u have request input?

Hi @pravin_jha,

This error means the AI agent’s context window is full, often due to excessive information from enabled tools or services. Here are a few things to try:

  • Reduce Enabled Services (MCP Servers): Only keep the essential services active for your current task. You can manage these in Antigravity by going to the Agent panel > “…” menu > MCP Servers > Manage MCP Servers. Disable any you don’t need right now.
  • Use Skills: Leverage Antigravity Skills to load tools and knowledge on-demand, rather than all at once. This keeps the context window lean.
  • Start a New Chat: Clear the history by starting a new conversation with the agent.
  • Be Specific: Refine your prompts to be more focused, so tools return only the most relevant information.

Hi, I followed all the instructions from previous posters since I too have seen this issue in Antigravity persist over the past two weeks.

  • I have no MCP Servers because of this issue. I removed them.
  • I have hundreds of skills and try to leverage them as much as possible. This doesn’t work.
  • No matter how many new chat that I create this happens… ALWAYS
  • Doesn’t matter how much I specificity because any prompt produces this regardless of size or specificity. This isn’t an edge case this is something that will happen no matter what.

I want to point out the solution to getting around this so far is to just not use Gemini with Antigravity, as this is a specific issue to Gemini, but not Claude. Which seems absurd that everything works with antigravity except for the Gemini language models given the same context window and similar tasks.

From the stack it looks like this error explicitly happens based on TrajectoryChatConverter and CascadeManager. I have done everything suggested and this persists.

3 Likes

I am having the same issue. It all started after the latest antigravity update; everything was working fine before that. Unfortunately, the solution provided here did not work either. I hope Google engineers see this; I also reported the bug. If anyone found a workaround, it would be appreciated. Thanks!

1 Like

Hi Everyone,

Following several hours of deep-diving into the problem, I’ve managed to find a working solution

Follow these steps to restore functionality:

Step 1: Rollback to Stable Version (1.19.6)

The current build contains a bug affecting message processing. Use Windows Package Manager (winget) to force an install of the previous stable version. Open your terminal and run:

PowerShell

winget install --name "antigravity" --version 1.19.6 --force

Step 2: Prevent Immediate Auto-Update

To ensure the application does not automatically update back to the buggy version upon launch, follow this sequence:

  1. Disconnect from the Internet (Disable Wi-Fi or unplug your ethernet cable).

  2. Launch the Antigravity application.

Step 3: Modify Update Settings

While offline, you must disable the background update service within the application settings:

  • Navigate to Editor Settings.

  • Search for “Update” in the settings search bar.

  • Locate Enable Windows Background Updates and uncheck the box.

  • Change Update Mode to Manual

Step 4: Restore Connectivity

Once the update setting is disabled, you can safely reconnect to the internet. The application will remain on version 1.19.6, bypassing the truncation error and allowing your Gemini Flash quota to be utilized correctly.

3 Likes

the same, are you going to fix it @googledevelopers? I paid and I am having problems for a few weeks…

This worked. Thank you.

2 Likes

Use my solution below and it will be working with you without problems.

YOU ARE A LEGEND. Thank you

1 Like

God bless you, this worked. They made the app buggyy and limited all the quota, basically ruined one of their best products

1 Like

I did this, but still didn’t work.
Here is my error message:
Trajectory ID: 5e30aec0-39ed-43ae-8a5a-61bfe5d22bf2
Error: agent executor error: could not convert a single message before hitting truncation
(1) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:1945
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| third_party/jetski/cortex/cascade_manager.go:1990
Wraps: (2) agent executor error
Wraps: (3) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/chatconverters/chatconverters.(*TrajectoryChatConverter).GetNumTokensSinceLastCheckpoint
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:581
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7.1
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:43
| google3/third_party/jetski/cortex/executors/executors.(*CascadeWrapper).ViewTrajectory
| third_party/jetski/cortex/executors/cascade_wrapper.go:250
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:33
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).executeLoop
| third_party/gemini_coder/framework/executor/executor.go:389
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| third_party/gemini_coder/framework/executor/executor.go:278
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:1897
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| third_party/jetski/cortex/cascade_manager.go:1990
Wraps: (4) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/chatconverters/chatconverters.(*TrajectoryChatConverter).TrajectoryToChatMessagesFromNCheckpointsAgo
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:1147
| google3/third_party/jetski/cortex/chatconverters/chatconverters.(*TrajectoryChatConverter).GetNumTokensSinceLastCheckpoint
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:579
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7.1
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:43
| google3/third_party/jetski/cortex/executors/executors.(*CascadeWrapper).ViewTrajectory
| third_party/jetski/cortex/executors/cascade_wrapper.go:250
| google3/third_party/jetski/cortex/mixins/mixins.GetConversationalHooks.NewCheckpointHook.func7
| third_party/jetski/cortex/executors/posthooks/checkpoint_hook.go:33
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).executeLoop
| third_party/gemini_coder/framework/executor/executor.go:389
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| third_party/gemini_coder/framework/executor/executor.go:278
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:1897
| […repeated from below…]
Wraps: (5) attached stack trace
– stack trace:
| google3/third_party/jetski/cortex/chatconverters/chatconverters.init
| third_party/jetski/cortex/chatconverters/trajectory_chat_converter.go:43
| runtime.doInit1
| third_party/go/gc/src/runtime/proc.go:8105
| runtime.doInit
| third_party/go/gc/src/runtime/proc.go:8072
| runtime.main
| third_party/go/gc/src/runtime/proc.go:258
| runtime.goexit
| third_party/go/gc/src/runtime/asm_amd64.s:1774
Wraps: (6) could not convert a single message before hitting truncation
Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *withstack.withStack (4) *withstack.withStack (5) *withstack.withStack (6) *errutil.leafError

And versions:
Antigravity

Antigravity Version: 1.19.6
VSCode OSS Version: 1.107.0 (user setup)
Commit: d2597a5c475647ed306b22de1e39853c7812d07d
Date: 2026-02-26T23:07:23.202Z (1 mo ago)
Electron: 39.2.3
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200
Language Server CL: 875890115

Much appreciated if someone can help me fix it. It’s been almost 2 weeks since I can’t use Antigravity :frowning:

Thank you!