Google Ultra Account [BUG}

I keep getting this bug only on the Gemini agents, Claude agents are working. I thought it would be the other way around. I have tried all of the workarounds listed and it still doesn’t work

Trajectory ID: 79e60671-514f-447c-
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:2096
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| third_party/jetski/cortex/cascade_manager.go:2144
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:2061
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| third_party/jetski/cortex/cascade_manager.go:2144
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:2061
| […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

Hi @Darren_Saunders ,

Welcome to the Forum!
Thank you for reporting the issue.The error “could not convert a single message before hitting truncation” usually occurs when the conversation trajectory becomes too large, causing the system to fail while converting the context for the agent.
Please try the below steps:

  • Start a new agent session.
  • Add unusually large files to your .antigravityignore so the agent ignores them.
  • Retry with a shorter prompt or smaller context.
  • Restart the Antigravity session.

Ran into something similar. Do you have skills installed? I removed my skills directory and seems to have fixed the issue.