Repository navigation
fix(antigravity): follow-ups for managed-agent image (#30) - #31
Merged
Merged
Conversation
…cher symlink Follow up on review items from #30 (6648113): - api.go / main.go: fail fast with a clear error when a configured CA bundle (SSL_CERT_FILE or explicit AX_CA_BUNDLE) cannot be read or contains no valid PEM certificates, instead of silently falling back to system roots. - main.go: preserve an explicit spec.config.previousInteractionId on session follow-up turns instead of overwriting it with st.LastInteractionID. - main.go: cancel in-flight interactions and clear st.Pending / run finish() on terminal errors (requires_action, spec.config.timeout, maxContinuations, worker crash giving up), and delete newly created environments on worker start failure or initial create failure. Bound remote cancel/delete calls with a 15s timeout and clean up atomic write temp files on error. - worker.go: lower worker stop timeout from 10s to 5s so gemini-api exits ahead of ax-runner's 10s SIGTERM grace period before SIGKILL. Align createTimeout with api.go's 1m http.Client timeout. - Dockerfile: link /usr/local/bin/ax-launcher instead of deprecated ax-harness (follows google/ax#734). - README.md: document the current google/ax spec.sessionId defaulting behavior. - ci.yaml: add a go vet and go test -race job for antigravity/. Verification: - ./scripts/verify/boilerplate.sh (pass) - cd antigravity && go vet ./... (clean) - cd antigravity && go test -race -count=1 ./... (all 18 tests/subtests pass) - cd antigravity && go build ./ (binary builds cleanly) - gofmt -l antigravity/ (clean) - python3 yaml.safe_load check on .github/workflows/ci.yaml (valid) - Note: docker build ./antigravity was not run locally (no Docker socket)
rakyll
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up fixes from #30 (6648113):
antigravity/api.go,antigravity/main.go): Fail fast when an explicitAX_CA_BUNDLEorSSL_CERT_FILEcannot be read or has no valid PEM certificates, rather than silently falling back to system roots. The default egress trust-bundle path stays optional when absent.previousInteractionId(antigravity/main.go): Only defaultprevious_interaction_idtost.LastInteractionIDwhenspec.config.previousInteractionIdwas not set by the caller.antigravity/main.go): Cancel in-flight interactions (bounded 15s timeout), clearst.Pending, and runfinish()on terminal failures (requires_action,spec.config.timeout,maxContinuations, worker crash giving up) so a relaunched task cannot reattach to a cancelled interaction and one-off tasks delete their remote environment. Also delete a newly created environment ifworker.start()or initial interaction creation fails, and remove leftoverwriteAtomictemp files on error. TransientgetInteractionpoll errors still preservest.Pendingfor reattach.antigravity/worker.go,antigravity/main.go): ReduceworkerStopTimeoutfrom 10s to 5s sogemini-apiexits ahead ofax-runner's 10sstopGracePeriodbeforeSIGKILL. AligncreateTimeoutwith the 1mhttp.Clienttimeout inapi.go.antigravity/Dockerfile): Link/usr/local/bin/ax-launcherinstead of the deprecatedax-harnesspath (follows runner: rename the default launcher from ax-harness to ax-launcher google/ax#734).ci.yaml): Rungo vet ./...andgo test -race -count=1 ./...inantigravity/on pull requests andmain.antigravity/README.md): Note howAX_SESSION_FILEcurrently interacts withax-serverdefaultingspec.sessionIdtometadata.uid.Open questions (kept out of this PR)
spec.sessionIddefault:google/axcurrently setsspec.sessionId = metadata.uidwhen omitted (internal/server/server.go:269), soAX_SESSION_FILEis always non-empty on server-created tasks anddeleteEnvironmentnever runs. Recommend leavingspec.sessionIdempty inax-serverfor one-off tasks so the launcher cleans up automatically without extra config keys..github/workflows/release.yamlcurrently buildsagents/antigravityasghcr.io/agentexecutor/antigravity. Recommend wiring this image separately (for exampleantigravity-managed) until the egress gateway supports WebSocket credential injection, keeping existing images secret-free.Verification
./scripts/verify/boilerplate.sh(pass)cd antigravity && go vet ./...(clean)cd antigravity && go test -race -count=1 ./...(all unit tests pass, incl. new coverage forTestSessionPreservesExplicitPreviousInteractionID,TestRequiresActionClearsPendingAndDeletesEnv,TestTimeoutCancelsAndCleansUp,TestWorkerStartFailureDeletesEnv,TestCABundleErrors)cd antigravity && go build .(clean)gofmt -l antigravity/(clean)docker build ./antigravitywas not executed locally (no Docker socket in this environment).