Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: claude-code keeps stale configuration after managed settings or API key helper are disabled

クローズ
#1,156 コメント 1 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@Edd88-pixel がすでに取り組んでいます。

2026年9月29日 から。

  • #1164 @Edd88-pixel による — オープン

評価

この issue はまだ評価されていません。

説明

Current Behavior

The claude-code module creates configuration files when managed_settings or api_key_helper is configured, but leaves those files behind when the corresponding input is later set to null.

On workspaces where these files survive a restart, Claude Code can therefore continue using settings or an authentication helper that was removed from the template. Users have to manually delete the generated files for the change to take effect.

Affected files:

  • /etc/claude-code/managed-settings.d/10-coder.json
  • /etc/claude-code/managed-settings.d/20-coder-apikeyhelper.json
  • ~/.claude/coder-api-key-helper.sh
Steps to Reproduce
  1. Start a workspace with managed_settings configured.
  2. Update the template to set managed_settings = null.
  3. Apply the updated template and restart the workspace, preserving /etc/claude-code.
  4. Check managed-settings.d/10-coder.json: it still contains the previous settings.

The same issue occurs when configuring api_key_helper and subsequently setting it to null, preserving both /etc/claude-code and the user's home directory.

Expected Behavior

Disabling either input should remove the corresponding files created by the module, while preserving unrelated Claude Code configuration.

Currently, write_managed_settings() and setup_api_key_helper() return immediately when their input is empty, without cleaning up files from a previous run.

主要言語
HCL
スター
82
フォーク
172
平均マージ
3日 16時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/registry のほかの issue

coder/registry の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。