Repository navigation
fix(scripts): 打开托盘前去掉 Claude Code 会话变量 - #600
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
评审记录
|
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
从 Claude Code 会话里运行
install_local.sh或preview_tray.sh时,托盘会继承这个会话的变量(CLAUDE_CODE_SESSION_ID、CLAUDE_CODE_ENTRYPOINT、CLAUDE_PID等),托盘对 Claude 的模型探测因此失败,Claude Code 卡片显示「读取失败」。open_tray.sh原本已经会去掉 T3 和 agy 的会话标记,这次把 Claude Code 的标记也一并去掉。Evidence
install_local.sh install装正式版后,ps eww <tray>能看到 12 个CLAUDE_*变量,托盘的 Claude Code 卡片显示「读取失败」。CLAUDE_*)运行sh scripts/open_tray.sh --env HOME=… --env AGENTNAVE_DATA_DIR=… /Applications/AgentNave.app,新托盘进程里CLAUDE_*、T3CODE_*都是 0 个。Merge Danger
Door: two-way
Blast Radius: 本机脚本
只影响开发用的打开托盘脚本(安装和预览都走它)。从桌面启动时本来就没有这些变量,去掉后的效果和桌面启动一样。
🤖 Generated with Claude Code