Repository navigation
fix(agents): cap Gemini at 0.60.0, keep Codex in the scrollback, count Gemini usage once - #444
Merged
Merged
Conversation
- Gemini CLI stops at 0.60.0: from 0.61.0 `--yolo` no longer approves
edits to build files (package.json, lockfiles, Dockerfile…) and opens a
dialog a headless session cannot answer (upstream #29250); 0.63.0 adds
an "Untrusted Command Flags" prompt after MCP output (#29579).
- Codex 0.157 made `tui.fullscreen_transcript` default to true, drawing
the conversation on the alternate screen, out of the scrollback the
log tail and quota sweep read; config.toml turns it off.
- Codex's "refresh token has expired / was already used" is recognised
as a sign-in failure, and Antigravity's sign-out ("log out (/logout)
and log back in (/login)", 1.2.5+) and "AI credits balance is too low"
are recognised ahead of the next agy raise.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
Gemini CLI's gemini_cli.token.usage metric is CUMULATIVE (every export repeats the running total) and arrives in a separate request from the gemini_cli.api_response logs. The adapter added the metric up, and fell back to the logs whenever a payload had no metrics — which a logs-only request never does — so every session counted its tokens at least twice. Usage now comes from the api_response records alone, one per response. bin/capture-agent-otlp runs a CLI image against a mock model API with its telemetry through docker/otlp-ingest and writes the JSON the app receives to test/fixtures/files/otlp/<id>-<version>.json. otlp_contract_test parses those with the real adapters and requires a capture for the pinned version, so raising a pin without re-capturing fails in CI. Captured for Claude Code 2.1.294, Codex 0.161.0 and Gemini CLI 0.60.0: same metric and event names and attributes as 1.0.0's CLIs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
artempartos
force-pushed
the
chore/bump-agent-clis
branch
from
October 8, 2026 13:53
7a17e81 to
805fefb
Compare
artempartos
marked this pull request as ready for review
October 8, 2026 14:05
Merged
artempartos
added a commit
that referenced
this pull request
Oct 11, 2026
…s scroll Claude Code picks its fullscreen renderer on a fresh install, and every agent container is one. That renderer enters the alternate screen inside the 80x24 detached tmux pane and repaints a single frame with cursor moves, so nothing reaches the scrollback: the stored log replays as one frozen frame, the live tail and quota scan see 24 rows, and the ANSI- stripped MCP log reads as glued words. CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 is checked before the fresh-install branch in the CLI's renderer choice (verified in the 2.1.294 binary the image pins) and selects the classic renderer, which prints the conversation into the scrollback. Codex had the same problem, fixed in #444 via tui.fullscreen_transcript=false. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
artempartos
added a commit
that referenced
this pull request
Oct 11, 2026
…s scroll (#465) Claude Code picks its fullscreen renderer on a fresh install, and every agent container is one. That renderer enters the alternate screen inside the 80x24 detached tmux pane and repaints a single frame with cursor moves, so nothing reaches the scrollback: the stored log replays as one frozen frame, the live tail and quota scan see 24 rows, and the ANSI- stripped MCP log reads as glued words. CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1 is checked before the fresh-install branch in the CLI's renderer choice (verified in the 2.1.294 binary the image pins) and selects the classic renderer, which prints the conversation into the scrollback. Codex had the same problem, fixed in #444 via tui.fullscreen_transcript=false. Signed-off-by: Artem Petrov <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Follows #443 (CLI pins, Cursor/Kiro pinning) and #446 (Codex trust-dialog detector), both merged; this branch is rebased on them. #443 left two problems that a headless session hits, and this PR fixes them before 1.0.1 ships:
[tui] fullscreen_transcript = falseAntigravity stays at 1.1.27: 1.3.1 no longer reads
enableTelemetryfromsettings.json, so its telemetry would follow each user's Google account setting (recorded indocs/operations/antigravity-cli.md, from #443).What changes
--yolono longer approves edits to build files (package.json, lockfiles,Dockerfile,Makefile, …). The policy engine turns them into a "Build File Modification" confirmation that nobody answers in a session (upstream #29250, no opt-out;packages/core/src/policy/policy-engine.ts, absent at v0.60.0 and present from v0.61.0).docs/operations/gemini-cli.mdsays why.[tui] fullscreen_transcript = false.false(0.156) totrue(0.161,config/src/types.rs:861).gemini_cli.token.usageis a CUMULATIVE metric (each export repeats the running total) and arrives in a separate request from thegemini_cli.api_responselogs.api_responserecords alone, one per model response.bin/capture-agent-otlp <id> [image]runs a CLI image againsttest/otlp_capture/mock.py, a canned reply with known token counts. The telemetry goes through the realdocker/otlp-ingest, and the script saves what the app receives astest/fixtures/files/otlp/<id>-<version>.json.otlp_contract_test.rbparses those files with the real adapters and requires a capture for the pinned version, so raising a pin without re-capturing fails CI.docs/architecture/agent-runtime-registry.mdgains the re-capture step, and a note to read release notes for headless defaults, not just credentials.Verification
All checks ran locally on arm64 images built from this branch's Dockerfiles.
isBuildFileand "Build File" appear in 6 files, "Untrusted Command Flags" in 3.--helpstill lists--model,--yolo,mcp,skillsandhooks.[tui]block:alternate_on=1,history_size=0;alternate_on=0,history_size=18, and the prompt and reply are in the scrollback.bcb65d0) passed 14/14 checks: versions, launch flags and auth-banner strings.Follow-ups (not in this PR)
InteractivePromptDetectordoesn't know it yet.CLAUDE_CODE_DISABLE_1M_CONTEXTis not set), which affects cost.🤖 Generated with Claude Code