Subject: Critical Issue: Agent terminated due to error on macOS 26.2 (Apple Silicon M2)
Description: The Antigravity agent fails to initialize and terminates immediately with the error message “Agent terminated due to error”. This persists even after a full clean reinstall, clearing all application support/cache directories, and disabling all extensions/MCP servers.
Environment:
OS: macOS 26.2 (Build-specific issue suspected)
Hardware: MacBook Air M2 (Apple Silicon)
App Version: darwin-arm64
Log Level: Trace/Verbose
Technical Findings from CLI & DevTools:
Process Termination: The Extension Host/Agent exits with code: 0, signal: unknown, indicating a clean exit enforced by the OS rather than a crash.
Kernel/API Error: Captured via --verbose: [ERROR:sandbox/mac/system_services.cc:35] SetApplicationIsDaemon: Error Domain=NSOSStatusErrorDomain Code=-50 "paramErr: error in user parameter list" (-50)
GPU Context Failure:[ERROR:gpu/ipc/service/gles2_command_buffer_stub.cc:270] ContextResult::kFatalFailure: Failed to create context.
Running with --disable-gpu, --no-sandbox, and --disable-extensions.
Unsetting VSCODE_CLI environment variables.
Deleting ~/Library/Application Support/Antigravity and Keyring entries.
Executing with sudo and NSAppSleepDisabled=YES.
Running with a fresh --user-data-dir.
Conclusion: There appears to be a regression or a new restriction in macOS 26.2 regarding how background daemons/agents are registered via Electron. The -50 paramErr suggests that the parameters passed to SetApplicationIsDaemon are no longer valid or require different entitlements under this OS version.
it started happenging me with all the models did you find a solution?
Agent terminated due to error**
You can prompt the model to try again or start a new conversation if the error persists.See our [troubleshooting guide](https://antigravity.google/support) for more help.
debug data:
Trajectory ID: 5ac460eb-0169-41bf-be3f-87eaed4d57eb
Error: model unreachable: UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server: UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server: model api cannot be reached
(1) attached stack trace
-- stack trace:
| google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).generateWithModelOutputRetry
| third_party/gemini_coder/framework/generator/planner_generator.go:194
| google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).Generate
| third_party/gemini_coder/framework/generator/planner_generator.go:95
| google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| third_party/gemini_coder/framework/executor/executor.go:303
| google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| third_party/jetski/cortex/cascade_manager.go:1558
| [...repeated from below...]
Wraps: (2) secondary error attachment
| UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server: UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server
| (1) tags: map[stream_receive_count:0 streaming_duration:0s]
| Wraps: (2) attached stack trace
| -- stack trace:
| | google3/third_party/gemini_coder/framework/generator/generator.(*streamResponseHandler).processStream
| | third_party/gemini_coder/framework/generator/stream_handler.go:338
| | google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).attemptGenerate
| | third_party/gemini_coder/framework/generator/planner_generator.go:437
| | google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).generateWithAPIRetry
| | third_party/gemini_coder/framework/generator/planner_generator.go:278
| | google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).generateWithModelOutputRetry
| | third_party/gemini_coder/framework/generator/planner_generator.go:154
| | google3/third_party/gemini_coder/framework/generator/generator.(*PlannerGenerator).Generate
| | third_party/gemini_coder/framework/generator/planner_generator.go:95
| | google3/third_party/gemini_coder/framework/executor/executor.(*Executor).Execute
| | third_party/gemini_coder/framework/executor/executor.go:303
| | google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func1
| | third_party/jetski/cortex/cascade_manager.go:1558
| | google3/third_party/jetski/cortex/cortex.(*CascadeManager).executeHelper.func2
| | third_party/jetski/cortex/cascade_manager.go:1676
| | runtime.goexit
| | third_party/go/gc/src/runtime/asm_arm64.s:1447
| Wraps: (3) UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server
| Wraps: (4) UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server
| Error types: (1) *go_utils.withTags (2) *withstack.withStack (3) *errutil.withPrefix (4) *utils.HTTPError
Wraps: (3) model unreachable: UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server: UNAVAILABLE (code 503): No capacity available for model claude-opus-4-6-thinking on the server
Wraps: (4) attached stack trace
-- stack trace:
| google3/third_party/jetski/cortex/shared/shared.init
| third_party/jetski/cortex/shared/interfaces.go:21
| 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: (5) model api cannot be reached
Error types: (1) *withstack.withStack (2) *secondary.withSecondaryError (3) *errutil.withPrefix (4) *withstack.withStack (5) *errutil.leafError