Repository navigation
fix(env): 清理 T3 Antigravity 注入的 AGY_CLI_FORCE_FILE_TOKEN_STORAGE - #603
Merged
Merged
Conversation
Owner
Author
独立评审记录(PR #603)
Findings 裁决与处置
验证与 CI 状态
剩余风险
|
Owner
Author
|
更正:描述里写的是「T3 Code 注入 本 PR 的修法不受影响:只要判断出处在 T3 的 Antigravity 配置里,就从 AgentNave 启动的子进程(以及从该会话打开的托盘)里,把这个变量和 🤖 Generated with Claude Code |
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.
Summary
T3 Code 在运行其隔离的 Antigravity ACP profile 时,除
AGY_ACP_FORCE_FILE_STORAGE=1外还会注入AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1。从该会话启动托盘或派生子进程若继承此变量,会强制agy跳过系统钥匙串改读文件 token,导致agy models报未登录、托盘「员工」页显示Antigravity CLI配置错误/读取失败。Evidence
AGY_CLI_FORCE_FILE_TOKEN_STORAGE=1)或继承该变量的托盘进程中运行agy models:Error: Please sign in to view available models. Launch the CLI without arguments to sign in.scripts/open_tray.sh清理后同会话内运行agy models,立即返回全部 20 个可用模型;本地全量门控通过:ruff format --check .、ruff check .、pyright(0 errors)、scripts/review_checks.py --base origin/main(ADR index: ok)、全量pytest(1,387 passed / 17 skipped)及变基后定向pytest tests/test_adapters.py tests/test_architecture_invariants.py tests/test_review_checks.py(168 passed)。apps/tray):cargo fmt --check、cargo clippy --all-targets -- -D warnings、AGENTNAVE_PREVIEW=1预览版 clippy、cargo test temp_dir::(6 passed)。Merge Danger
Door: two-way(仅扩展既有 T3 注入环境变量的清理清单,不改持久化数据或对外契约)
Blast Radius: env
仅在派生子进程与托盘启动时剥离 T3 Code 注入的
AGY_CLI_FORCE_FILE_TOKEN_STORAGE(以及其同时存在的 T3 profileGEMINI_HOME),不影响普通用户自带的GEMINI_HOME、BROWSER与SSH_CONNECTION。