bug: claude-code keeps stale configuration after managed settings or API key helper are disabled
Maintainer thường phản hồi trong vòng 2 ngày
Đá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
- 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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/registry
-
perplexica: deprecate or fixĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
coder/registry#1142 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Add a stale workflow for PRsĐang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
coder/registry#1120 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Dependency DashboardĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
coder/registry#1195 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
coder/registry#1187 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
sharkymark/templates/docker-claude: workspaces start with an error because tmux is not installedĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
coder/registry#1186 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày