Skip to content

~/.claude.json file JSON Configuration File Corruption with Chat Sessions  #6181

Closed as duplicate

Description

@brandontan

Bug Description
./claude.json is being corrupted by chat conversations - causing my JSON to balloon to 1.3MB

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.85
  • Feedback ID: 059e8e70-7d18-4f81-92a8-f925c1a96b9b

Errors

[{"error":"McpError: MCP error -32603: \n    at hz0._onresponse (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:1838:17107)\n    at _transport.onmessage (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:1838:14259)\n    at gz0.processReadBuffer (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:1840:2325)\n    at Socket.<anonymous> (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:1840:1691)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-08-20T11:23:39.940Z"},{"error":"Error: {\"error\":{\"name\":\"Error\",\"message\":\"Unauthorized. Please provide a valid access token to the MCP server via the --access-token flag or SUPABASE_ACCESS_TOKEN.\"}}\n    at Z9B (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:1876:12058)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:1876:6788)\n    at async jN8 (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3398:10539)\n    at async xuB (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3398:6800)\n    at async PN8 (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3398:5778)\n    at async ON8 (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3398:5407)\n    at async RU (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3398:2906)\n    at async RU (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3398:3672)\n    at async d1 (file:///Users/brtan/node_modules/@anthropic-ai/claude-code/cli.js:3431:3094)","timestamp":"2025-08-20T11:25:47.023Z"}]

Appended chats:
},
{
"display": "give me a new json!",
"pastedContents": {}
},
{
"display": "use supbase cli dude",
"pastedContents": {}
},
{
"display": "you need to read it anyway

Activity

  1. github-actions commented on Aug 20, 2025

    @github-actions

    Found 3 possible duplicate issues:

    1. History accumulation in .claude.json causes performance issues and storage bloat #5024
    2. Claude Code runtime data overwrites .claude.json configuration file #5313
    3. Bug: .claude.json automatically stores conversation history when it shouldn't #1449

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. changed the title [-]JSON Configuration File Corruption with Chat Sessions - ~/.claude.json file[/-] [+]~/.claude.json file JSON Configuration File Corruption with Chat Sessions [/+] on Aug 20, 2025
  3. github-actions commented on Aug 24, 2025

    @github-actions

    This issue has been automatically closed as a duplicate of #5024.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  4. added
    duplicateThis issue or pull request already exists
    and removed
    platform:macosIssue specifically occurs on macOS
    on Aug 24, 2025
  5. github-actions commented on Aug 31, 2025

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions