火箭君 MEN
FeaturedAll
CollectionsRSSSign in
火箭君 MEN
FeaturedAll
MoreCollectionsRSSSign in
github.com

[Bug] "Allow always" saves full command text leaking secrets and causing parse errors · Issue #24994 · anthropics/claude-code · GitHub

译:Claude Code「Always allow」会把整段命令(含 API key)写进 .claude/settings.local.json,可能跟着 npm 包泄漏

  • 所有权/回滚:发布前 npm pack --dry-run 查有没有 .claude/

  • 泄漏立刻轮换密钥;.gitignore / .npmignore 挡一层

  • 排查说明

Oct 31, 2026