bug: claude-code keeps stale configuration after managed settings or API key helper are disabled
メンテナーはふだん 2 日以内に返信
評価
この 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
- Start a workspace with
managed_settingsconfigured. - Update the template to set
managed_settings = null. - Apply the updated template and restart the workspace, preserving
/etc/claude-code. - 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/registry のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
coder/registry#1142 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 68/100
coder/registry#1120 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Dependency Dashboardオープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
coder/registry#1195 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
coder/registry#1187 · コメント 3 件 ·
メンテナーはふだん 2 日以内に返信
-
sharkymark/templates/docker-claude: workspaces start with an error because tmux is not installedオープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
coder/registry#1186 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信