Repository navigation
fix(runtime): re-anchor source patches for T3 0.1.11 and current Nightly - #154
Conversation
Upstream 0.1.11 renamed linkAntigravityUserSkills to linkAntigravityUserConfig, dropped customModelCapabilityOverrides, and absorbed headless Antigravity sign-in natively (codeLogin), so the fail-closed agent-resources and gateway-context anchors no longer matched and the antigravity-sign-in backport became redundant. Re-anchor both patches, drop the backport, and move the bundled runtime pin to 0.1.11 so source builds work again on both matrix legs.
Upstream 0.1.12-nightly.20261121.5038 asks each hub account for its routed models before reading quota. The cliproxy smoke fixture had no handler, so every request fell into its error-tracking assert. Answer with an empty model list, which upstream treats as the older-hub behavior the smoke already asserts.
The integration smoke still exercised our removed backport's contract. Follow the native flow instead: the login spawn keeps the browser suppression helper (only the display is stripped), a malformed sign-in link fails the stream instead of being ignored, the credentials field is upstream's code field, and the runtime no longer advertises customModelCapabilityOverrides, which upstream removed in 0.1.11.
Upstream removed customModelCapabilityOverrides, so the patched runtime no longer advertises it and the smoke asserts false on both sides of the upgrade; gatewayModelLimits stays the patched-runtime proof.
Upstream's ProviderAuthState makes interaction optional and drops it when none is offered; the backport used to publish an explicit null.
The customModelCapabilityOverrides advertisement is this repo's own gateway-capabilities patch, not an upstream key; the earlier flip to false confused it with the upstream schema key that gateway-context used as an anchor before this PR re-anchored it.
T3 Code requires a relay client >= 2026.10.3 and rejects the image's 2026.5.2 shim, falling into a log-spamming install loop and leaving the tunnel down. Pin 2026.11.1 (latest stable) and make the smoke test fail if the pin ever drops below T3 Code's floor again.
0.1.11 replaced the compiled MINIMUM_OPENCODE_VERSION constant with an embedded driver-compat manifest; take the broken-range boundary as the floor T3 enforces. 1.14.19 stays the floor, so the catalogue and the installed 1.19.6 still meet it. Also carry the cloudflared 2026.11.1 bump from dizys#153: the newer bundled runtime enforces its 2026.10.3 relay floor, so without it the image's Connect status is never 'available'.
dizys
left a comment
There was a problem hiding this comment.
Note
🤖 Muse Wonder Full responding on behalf of dizys
Approved. #153 is merged, and this branch is now updated onto the new main with no conflict and an unchanged diff, as expected for the identical carried commit.
The previous head was green on every leg. Holding the merge until the updated head finishes CI, since the Nightly legs resolve todays upstream Nightly rather than the 20261121 one the green run used. Will merge as soon as checks pass, or bring any new patch drift back here.
claude_url_complete slept a fixed 14s and asserted once. On the 2026-11-22 runs every smoke leg failed that check while the following checks drove the same sign-in session to completion, so the URL is captured, just later than 14s. Poll the session state for up to 90s instead of racing the login render. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Note 🤖 Muse Wonder Full responding on behalf of dizys Pushed one maintainer commit, Why: on the updated head, every finished smoke leg failed only that check, while the next checks drove the same Claude sign-in session to completion. The tree is otherwise identical to the previously green run (same tree hash, same Claude 2.1.330), so the login render has simply started taking longer than 14s and the check was racing it. No product code changes in this commit.` |
The 90s poll still timed out on core arm64 while the same session completed in the following check, so the login render can take longer than that on current runners. Poll for up to five minutes, and on timeout leave a redacted note (session state, whether code_challenge was seen, response size) in the failure summary, since check() discards output and the failure was otherwise blind. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Note 🤖 Muse Wonder Full responding on behalf of dizys Second maintainer commit, The 90s poll was not enough: |
Anthropic changed the claude auth login URL server side: it no longer carries code_challenge and state as query parameters, but one opaque ?z- token with the challenge kept server side (verified against a clean 2.1.330 login render). Setup captures the new URL fine and the session completes, so only the smoke completeness assertion was obsolete. Accept the legacy long form only with its challenge and state, or the opaque form with a full length token, and report the captured form in the timeout diagnostic. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Note 🤖 Muse Wonder Full responding on behalf of dizys Root cause found, and it was not timing. Third maintainer commit, The new diagnostic showed So the product capture is working; only the smoke definition of a complete URL was stale. The check now accepts the legacy long form only with its |
The Nightly legs of the native-runtime matrix have been failing since upstream moved ahead of our patch anchors, and the next run would fail the Stable leg too.
What's happening
The image builds patched T3 runtimes from the exact upstream tag. Each source patch fails closed when its anchor no longer matches, and three of them no longer do:
linkAntigravityUserSkills→linkAntigravityUserConfiginantigravityAuthSupport.ts(it now linksAGENTS.md,GEMINI.mdandconfig/skills.jsonitself; our bridge links the sameAGENTS.md/GEMINI.mdtargets, so the two coexist on Linux builds).customModelCapabilityOverridesentirely fromcontracts/src/server.tsandws.ts.codeLoginspawningagy acp --login, arespondflow, and a credentials interaction for the code). Our backport patch duplicates it and can no longer apply.The failing PR-#153 checks showed only the first failure because patches apply in registry order and stop at the first drift. The Stable leg only looked healthy because it was downloading a previously published patched artifact for 0.1.10; that artifact predates the current upstream tree and no source build of 0.1.10 can reproduce it.
The fix
linkAntigravityUserConfigcall (the insertedlinkAntigravityUserResourcesbridge is unchanged).threadFind(schema + ws capability flags), which is unique and stable in both new versions.antigravity-terminal-login.tsasset: v0.1.11 ships the feature natively.ARG T3_VERSION0.1.10 → 0.1.11 (current stable) so both the bundle and the Stable matrix leg build from source under the new patch revision.The patch revision changes with this edit, so CI will do a full source build for both Stable (0.1.11) and Nightly on the next run, then cache the artifacts as usual.
Validation
native-publish-smokeclean.scripts/bump-versions.sh --checkpasses with the 0.1.11 pin (it is upstream's latest release).