Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
area:corearea:ideautocloseIssue will be closed automaticallyIssue will be closed automaticallybugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsmemoryplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on Windows
Description
Bug Description
Complete system freeze occurs when running 2 or more GoLand IDE instances with Claude Code simultaneously.
UPDATE: Just Reproduced with Detailed Scenario!
What just happened (2025-12-19):
- 3 Claude Code instances running in GoLand IDE
- Instance 1: Writing this bug report (active, responding)
- Instance 2 & 3: Running long tasks — both froze after 2-3 minutes
- Instance 1 remained responsive while others were frozen
- Attempted to send a comment from Instance 1 to add details to this issue
- INSTANT FREEZE — Instance 1 froze immediately, then entire computer froze
- Only hard reboot recovered the system
Root Cause Hypothesis: Concurrent File Access
This behavior strongly suggests race condition in .claude.json file access:
- All instances read/write to the same config file
- When Instance 1 tried to save/sync while writing the issue comment
- File lock contention caused deadlock → system freeze
Supporting evidence from related issues:
- [Bug] Settings file becomes corrupted after update #14672 — Settings file corruption (
SyntaxError: Expected double-quoted property name in JSON)- This is exactly what happens with concurrent writes without proper locking!
- [Bug] The .claude.json elephant in the room: Is this "vibe coding" in production? #7243 — 8+ months of complaints about
.claude.jsonarchitecture (no atomic writes, no separation of concerns)
Symptoms
- Computer freezes almost completely
- Only mouse cursor can move (sometimes)
- Window switching occasionally works but is extremely sluggish
- Cannot reboot normally — standard shutdown methods don't work
- Only hard reboot (long press on power button) recovers the system
Environment Info
- Platform: Windows 10 (win32)
- Terminal: GoLand IDE (multiple instances)
- Claude Code Version: 2.0.72
- Feedback ID: 6dec4a08-1e22-4031-b2ff-5884183aa942
Steps to Reproduce
- Open GoLand IDE with Claude Code extension
- Open a second GoLand IDE instance with Claude Code
- Start tasks in both instances simultaneously
- Wait 2-3 minutes — one or both will freeze
- Try to interact with the remaining responsive instance
- System freezes completely — only mouse moves, no keyboard/window response
- Hard reboot required
Expected Behavior
Multiple IDE instances should work without causing system-wide freezes. At minimum:
- Proper file locking for
.claude.json - Graceful degradation instead of complete system freeze
- Per-project or per-instance config separation
The Real Fix Needed
As documented in #7243, the .claude.json architecture is fundamentally broken:
- No atomic writes → file corruption on concurrent access
- No file locking → race conditions, deadlocks
- Everything in one file → massive contention
Proposed solution:
~/.claude/
├── config.json # Static configuration only (rarely written)
├── mcp_servers.json # MCP settings
├── sessions/ # Per-session state (isolated)
│ ├── session-{uuid}.json
└── data/
└── history.db # SQLite for conversation history (proper locking)
Errors
[]No errors captured — system freezes before any logs can be collected.
Related Issues:
- [Bug] Settings file becomes corrupted after update #14672 — Settings file corruption (JSON parse error) — SAME ROOT CAUSE
- [BUG] Long responses overflow from status bar causing UI rendering issues #14658 — UI rendering issues on Windows
- Fear of updating: When 'vibe coding' meets production stability #14642 — Fear of updating: vibe coding vs stability
- [Bug] The .claude.json elephant in the room: Is this "vibe coding" in production? #7243 — .claude.json architectural issues (8+ months unresolved)
Reacted by D-Ogi and Maksym Trofimenko
Metadata
Metadata
Assignees
Labels
area:corearea:ideautocloseIssue will be closed automaticallyIssue will be closed automaticallybugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsmemoryplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on Windows
Activity
github-actions commentedon Dec 19, 2025
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
kolkov commentedon Dec 19, 2025
This is NOT a duplicate — it's a CRITICAL escalation
The referenced issues (#13287, #8699, #13499) describe Claude Code instances freezing.
This issue describes something far worse:
.claude.jsonaccessWhy this matters
The previous issues are "annoying inconveniences" — you restart Claude Code.
This issue is a CRITICAL SYSTEM STABILITY BUG — you lose all unsaved work across ALL applications, risk filesystem corruption, and waste 5-10 minutes on each hard reboot.
New evidence linking issues
I just found #14672 — Settings file corruption with error:
This is EXACTLY what happens when multiple processes write to the same JSON file without proper locking:
The common root cause
All these issues (#13287, #8699, #13499, #14672, #14674) stem from the same architectural flaw documented in #7243 for 8+ months:
.claude.jsonstores EVERYTHING (config, history, state, changelog)Please keep this issue open — it provides critical debugging information and connects the dots between multiple related issues.
@Anthropic-Team Please acknowledge this systemic problem.
kolkov commentedon Dec 19, 2025
Additional data loss evidence
Just realized another critical point:
When system freezes, the ENTIRE conversation from session start is LOST.
Not just the last message — EVERYTHING since launching Claude Code in that session.
This means:
This is because
.claude.jsondoesn't save incrementally — it appears to batch-write or only save on clean exit. When system freezes and requires hard reboot, there's no clean exit, so nothing gets persisted.Yet another reason why SQLite with proper transactions (as proposed in #7243) would solve multiple problems:
Current architecture: single JSON file with batch saves = maximum data loss on any failure
kolkov commentedon Dec 19, 2025
CHANGELOG Analysis: Root Cause Found in v2.0.60
I just analyzed the CHANGELOG.md and found something critical:
v2.0.60 — The Breaking Change
This is EXACTLY when the multi-instance problems started!
What the CHANGELOG shows:
.claude.jsonlocking fixesWhat's NOT in CHANGELOG (8+ months of #7243):
.claude.jsonMeanwhile, what IS being shipped:
[Image #N]links"Cosmetic features while critical stability bugs remain unaddressed.
NEW BUG in v2.0.73: Terminal Output Broken
Just discovered another regression — terminal output is not rendering properly.
When Claude Code outputs text to terminal, I see:
But the actual content is INVISIBLE. The entire output area is blank/collapsed incorrectly. I can't see what Claude wrote in the terminal!
This might be related to:
The "Reduced terminal flickering" fix in v2.0.72 seems to have broken terminal rendering entirely.
@Anthropic-Team The CHANGELOG proves that background agents (v2.0.60) broke multi-instance support, and no fix has been shipped in 20+ versions. Meanwhile, terminal rendering is now broken too.
Is anyone actually testing these releases before shipping?
kolkov commentedon Dec 19, 2025
Calling all Claude Code contributors
This issue affects system stability — complete Windows freeze requiring hard reboot. Not just Claude Code crash, but entire OS becomes unresponsive.
Claude Code Team:
@bcherny @catherinewu @ant-kurt @ashwin-ant @bogini @fvolcic @whyuan-cc @dhollman @rboyce-ant @dicksontsai @sid374 @ThariqS @ddworken @williamhu99 @ltawfik @chrislloyd @wolffiex
@bcherny — In your Peterman Pod interview you said:
Yet:
.claude.jsonarchitecture has been broken for 8+ months ([Bug] The .claude.json elephant in the room: Is this "vibe coding" in production? #7243)The Real Ask: OPEN SOURCE THE CODE
If Anthropic cannot fix these fundamental issues after 8+ months and 20+ versions, please open source the relevant modules.
The community is ready to help:
.claude.jsonaccess)But we CAN'T help when the code is closed.
Every release makes things WORSE:
Options:
Silence while shipping broken releases is unacceptable. We're not asking for free support — we're offering FREE ENGINEERING HELP that you're refusing by keeping the code closed.
Users affected: #13287 #8699 #13499 #14672 #7243 #5024 #1449 #6394
The pattern is clear: closed source + declining quality + no communication = eroding trust
kolkov commentedon Dec 19, 2025
Proposal: Rewrite Claude Code in Go
Since we're discussing fundamental architecture issues and open-sourcing, let me propose something more radical:
Rewrite Claude Code in Go.
Why This Makes Sense
1. TypeScript itself is being rewritten in Go
Microsoft announced that TypeScript 7 compiler will be written in Go:
If the creators of TypeScript chose Go for their most critical tool, maybe it's time for Anthropic to reconsider too.
2. Go solves the exact problems Claude Code has:
syscall.Flock, atomic operationssync.Mutex, proper concurrency3. Existing Go libraries can accelerate development:
The Go ecosystem already has production-ready components. Here's what I maintain that could help:
🖥️ Terminal UI & Rendering
⚡ State & Communication
🔍 Code Parsing & Search
🧠 AI/ML Infrastructure — Local Inference & Training
🎮 GPU Acceleration — Training & Inference at Scale
📊 Scientific Computing & Data Storage
4. Benefits of Go rewrite:
5. The irony
Anthropic uses Go extensively internally. Claude's infrastructure runs on Go. Yet the developer tool is written in TypeScript and has fundamental stability issues that Go would solve by design.
The Vicious Cycle
Fix the multi-instance bug, and you unlock a community of developers building tools that could make Claude Code better.
Realistic Path Forward
I maintain 31+ Go projects across 12 organizations, including TUI frameworks, ML tools, GPU computing, regex engines, and scientific libraries — all built with Claude Opus 4.5. I'd be happy to contribute to a Go-based Claude Code.
The bottom line: TypeScript was a reasonable choice in 2024 for rapid prototyping. But Claude Code is now a critical tool used by thousands of developers. It deserves production-grade engineering — and that means Go.
/cc @bcherny @catherinewu — Would Anthropic consider this?
kolkov commentedon Dec 19, 2025
Competition is Coming — Act Now or Lose the Market
One more critical point:
DeepSeek is releasing their own AI agent by end of 2025
According to Bloomberg:
DeepSeek's recent releases:
And here's the kicker: DeepSeek open-sources their models.
The Competitive Landscape
Why This Matters for Anthropic
The Market Will Fix This
If Anthropic won't:
Then the market will simply move to alternatives. DeepSeek, Cursor, Windsurf, or community-built tools.
The question isn't IF Claude Code will be replaced — it's WHEN.
Unless Anthropic acts now:
Time is running out. DeepSeek's agent drops in weeks, not months.
@bcherny @catherinewu @Anthropic-Team — The window to lead in AI coding tools is closing. What's your move?
github-actions commentedon Jan 20, 2026
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
github-actions commentedon Feb 14, 2026
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
github-actions commentedon Feb 23, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.