Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#1,156 1 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@Edd88-pixel đang làm issue này rồi.

Từ ngày 29/9/2026.

  • #1164 của @Edd88-pixel — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
HCL
Star
82
Fork
172
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
29

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của coder/registry

Tất cả issue của coder/registry

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.