Skip to content

Claude Codeの環境変数をhome.sessionVariablesで設定する - #72

Merged
kakudo415 merged 2 commits into
mainfrom
claude-code-env-session-variables
Sep 14, 2026
Merged

kakudo415 merged 2 commits into
mainfrom
claude-code-env-session-variables

Conversation

@kakudo415

Copy link
Copy Markdown
Owner

settings.shared.json の env は --settings 付きで起動したプロセスにしか適用されず、background session subcommandやそこから起動されるプロセスには DISABLE_AUTOUPDATER が届いていなかった。その結果auto-updaterが動き、~/.local/bin/claude にnative版が入ってPATH上でwrapperを覆い隠していた。

DISABLE_AUTOUPDATER / DISABLE_ERROR_REPORTING / DISABLE_TELEMETRY は home.sessionVariables に移し、claude の起動経路によらず適用する。EDITOR はClaude Code固有ではないので programs.neovim.defaultEditor で全アプリケーションに設定する。

@kakudo415
kakudo415 merged commit 1eebc21 into main Sep 14, 2026
2 checks passed
@kakudo415
kakudo415 deleted the claude-code-env-session-variables branch September 14, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant