[Bug] /init in ~/.claude directory overwrites existing CLAUDE.md
Resolved 💬 3 comments Opened Jan 29, 2026 by juanandresgs Closed Feb 2, 2026
Bug Description
When running claude code in ~/.claude, /init overwrites CLAUDE.md.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.23
- Feedback ID: c6833591-3735-4560-9fe2-77c224274b14
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n at readdirSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:2063)\n at iW (/$bunfs/root/claude:11:35715)\n at readdirSync (/$bunfs/root/claude:12:2024)\n at wQR (/$bunfs/root/claude:1783:380)\n at wQR (/$bunfs/root/claude:1783:1350)\n at <anonymous> (/$bunfs/root/claude:1783:4670)\n at <anonymous> (/$bunfs/root/claude:1783:5401)\n at A (/$bunfs/root/claude:11:7259)\n at Ay8 (/$bunfs/root/claude:4793:4342)","timestamp":"2026-01-29T21:12:39.042Z"},{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/turla/.local/share/claude/versions/2.1.23 (expected in multi-process scenarios)\n at kzR (/$bunfs/root/claude:3940:2098)\n at WxA (/$bunfs/root/claude:3940:1209)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:12:39.059Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"This credential is only authorized for use with Claude Code and cannot be used for other API requests.\"},\"request_id\":\"req_011CXcMkJZx3mf2mK1bF8FJN\"}\n at generate (/$bunfs/root/claude:145:37655)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:12:39.474Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (19bed4cd-3522-4893-ae12-0434bf3826ea) of 10 requests per minute. For details, refer to: https://docs.claude.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"},\"request_id\":\"req_011CXcMkYB1GYFrEEiGyYKjv\"}\n at generate (/$bunfs/root/claude:145:37865)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:12:42.634Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (19bed4cd-3522-4893-ae12-0434bf3826ea) of 10 requests per minute. For details, refer to: https://docs.claude.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"},\"request_id\":\"req_011CXcMkY7HdCaGKQa7XFhgQ\"}\n at generate (/$bunfs/root/claude:145:37865)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:12:42.639Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (19bed4cd-3522-4893-ae12-0434bf3826ea) of 10 requests per minute. For details, refer to: https://docs.claude.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"},\"request_id\":\"req_011CXcMkYBzjCmPpRnB2TWtE\"}\n at generate (/$bunfs/root/claude:145:37865)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:12:42.646Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed the rate limit for your organization (19bed4cd-3522-4893-ae12-0434bf3826ea) of 10 requests per minute. For details, refer to: https://docs.claude.com/en/api/rate-limits. You can see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase.\"},\"request_id\":\"req_011CXcMkY9Gf87H9BNLeNCkm\"}\n at generate (/$bunfs/root/claude:145:37865)\n at makeRequest (/$bunfs/root/claude:162:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:12:42.646Z"…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗