Agent died and chat history gone FOUR times today

Case 1: Just press the undo button and see the chat history vaporised.

Case 2: Send a message and Agent randomly dies.

Here’s a log from case 2:

Trajectory ID: 5fb10fd7-089f-42e9-9b80-e39448cb7
Error: agent executor error: trajectory converted to zero chat messages
(1) attached stack trace
  -- stack trace:
  | google3/third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.(\*AgentExecutor).Run
  | 	third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.go:339
  | [...repeated from below...]
Wraps: (2) agent executor error
Wraps: (3) attached stack trace
  -- stack trace:
  | google3/third_party/gemini_coder/framework/generator/generator.(\*requestBuilder).buildRequest
  | 	third_party/gemini_coder/framework/generator/request_builder.go:117
  | google3/third_party/gemini_coder/framework/generator/generator.(\*PlannerGenerator).generateWithAPIRetry
  | 	third_party/gemini_coder/framework/generator/planner_generator.go:277
  | google3/third_party/gemini_coder/framework/generator/generator.(\*PlannerGenerator).generateWithModelOutputRetry
  | 	third_party/gemini_coder/framework/generator/planner_generator.go:148
  | google3/third_party/gemini_coder/framework/generator/generator.(\*PlannerGenerator).Generate
  | 	third_party/gemini_coder/framework/generator/planner_generator.go:91
  | google3/third_party/gemini_coder/framework/executor/executor.(\*Executor).executeLoop
  | 	third_party/gemini_coder/framework/executor/executor.go:369
  | google3/third_party/gemini_coder/framework/executor/executor.(\*Executor).Execute
  | 	third_party/gemini_coder/framework/executor/executor.go:288
  | google3/third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.(\*AgentExecutor).Run
  | 	third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.go:305
  | google3/third_party/jetski/cortex/cortex.(\*CascadeManager).executeHelper.func1
  | 	third_party/jetski/cortex/cascade_manager.go:1732
  | google3/third_party/jetski/cortex/utils/background.(\*Pool).Go.func2
  | 	third_party/jetski/cortex/utils/background.go:121
  | google3/go/context/detach.Go.func1
  | 	go/context/detach.go:247
  | runtime.goexit
  | 	third_party/go/gc/src/runtime/asm_amd64.s:1774
Wraps: (4) trajectory converted to zero chat messages
Error types: (1) \*withstack.withStack (2) \*errutil.withPrefix (3) \*withstack.withStack (4) \*errutil.leafError

I don’t have an error message for Case 1 since I thought it was just a one-time issue, but it turns out it’s recurrent. I will post more logs later.

And… Just minutes later I got Case 1! Just press the undo button and watch it vaporise:

Trajectory ID: 35ec4e72-399e-473e-ac56-8105c07d9
Error: agent executor error: no handler for step type: CORTEX_STEP_TYPE_VIEW_FILE
(1) attached stack trace
-- stack trace:
| google3/third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.(*AgentExecutor).Run
| 	third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.go:339
| [...repeated from below...]
Wraps: (2) agent executor error
Wraps: (3) attached stack trace
-- stack trace:
| google3/third_party/jetski/cortex/utils/utils.ShouldRevertStep
| 	third_party/jetski/cortex/utils/revert_utils.go:108
| google3/third_party/jetski/cortex/utils/utils.RevertToIndex
| 	third_party/jetski/cortex/utils/revert_utils.go:58
| google3/third_party/jetski/cortex/executors/executors.(*RevertExecutor).Execute
| 	third_party/jetski/cortex/executors/revert_executor.go:59
| google3/third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.(*AgentExecutor).Run
| 	third_party/gemini_coder/framework/executor/agentexecutor/agentexecutor.go:305
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper
| 	third_party/jetski/cortex/cascade_manager.go:1729
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).RevertToStep
| 	third_party/jetski/cortex/cascade_manager.go:2199
| google3/third_party/jetski/language_server/language_server.(*Server).RevertToCascadeStep
| 	third_party/jetski/language_server/rpcs_cascade.go:650
| google3/third_party/golang/connectrpc_com/connect/v/v1/connect.NewUnaryHandler[...].func1
| 	third_party/golang/connectrpc_com/connect/v/v1/handler.go:51
| google3/third_party/jetski/connect_utils/connect_utils.(*validateInterceptor).WrapUnary.func1
| 	third_party/jetski/connect_utils/validate.go:20
| google3/third_party/jetski/language_server/interceptor/interceptor.(*CsrfInterceptor).WrapUnary.func1
| 	third_party/jetski/language_server/interceptor/csrf_interceptor.go:41
| google3/third_party/jetski/language_server/interceptor/interceptor.(*requestIDInterceptor).WrapUnary.func1
| 	third_party/jetski/language_server/interceptor/request_id_interceptor.go:31
| google3/third_party/jetski/connect_utils/connect_utils.(*LogErrorsServerInterceptor).WrapUnary.func1
| 	third_party/jetski/connect_utils/interceptor.go:80
| google3/third_party/jetski/connect_utils/connect_utils.(*SentryErrorInterceptor).WrapUnary.func1
| 	third_party/jetski/connect_utils/interceptor.go:399
| google3/third_party/jetski/language_server/interceptor/interceptor.(*traceTaskInterceptor).WrapUnary.func1
| 	third_party/jetski/language_server/interceptor/trace_task_interceptor.go:35
| google3/third_party/golang/connectrpc_com/connect/v/v1/connect.NewUnaryHandler[...].func2
| 	third_party/golang/connectrpc_com/connect/v/v1/handler.go:69
| google3/third_party/golang/connectrpc_com/connect/v/v1/connect.(*Handler).ServeHTTP
| 	third_party/golang/connectrpc_com/connect/v/v1/handler.go:237
| google3/third_party/jetski/language_server_pb/language_server_go_proto_connect.NewLanguageServerServiceHandler.func1
| 	blaze-out/windows_x64-opt/bin/third_party/jetski/language_server_pb/language_server_go_proto_connect/language_server.connect.go:5299
| net/http.HandlerFunc.ServeHTTP
| 	third_party/go/gc/src/net/http/server.go:2285
| net/http.(*ServeMux).ServeHTTP
| 	third_party/go/gc/src/net/http/server.go:2829
| google3/third_party/jetski/language_server/language_server.setUpHTTPServersCommon.(*Cors).Handler.func4
| 	third_party/golang/cors/cors.go:289
| net/http.HandlerFunc.ServeHTTP
| 	third_party/go/gc/src/net/http/server.go:2285
| net/http.serverHandler.ServeHTTP
| 	third_party/go/gc/src/net/http/server.go:3324
| net/http.initALPNRequest.ServeHTTP
| 	third_party/go/gc/src/net/http/server.go:4087
| net/http.(*http2serverConn).runHandler
| 	third_party/go/gc/src/net/http/h2_bundle.go:6604
| runtime.goexit
| 	third_party/go/gc/src/runtime/asm_amd64.s:1774
Wraps: (4) no handler for step type: CORTEX_STEP_TYPE_VIEW_FILE
Error types: (1) *withstack.withStack (2) *errutil.withPrefix (3) *withstack.withStack (4) *errutil.leafError

I literally lost WEEKS of history and my new agent need to be rebriefed/context diving. If y’all think y’all losing money from Antigravity, this is the cause!

Instead of cutting quota, fix your IDE first, this rediscovering phase for agents is wasting my time and y’all compute.