[Bug] Custom rules and MCP memories lost after context summarization

Resolved 💬 3 comments Opened Jan 29, 2026 by asvishnyakov Closed Jan 29, 2026

Bug Description
Claude Code looses it's rules (like CLAUDE.md or memories from custom MCP's, like Serena) on context summarization. It should read CLAUDE.md and do whatether else it does on sessions initialization

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 2.1.23
  • Feedback ID: 36e0aa54-8bce-4319-9fe1-1747474333d0

Errors

[{"error":"Error: ENOENT: no such file or directory, scandir '/etc/claude-code/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:2063)\n    at nJ (/$bunfs/root/claude:11:35715)\n    at readdirSync (/$bunfs/root/claude:12:2024)\n    at zZ$ (/$bunfs/root/claude:1781:380)\n    at zZ$ (/$bunfs/root/claude:1781:1350)\n    at <anonymous> (/$bunfs/root/claude:1781:4670)\n    at <anonymous> (/$bunfs/root/claude:1781:5401)\n    at A (/$bunfs/root/claude:11:7259)\n    at ax1 (/$bunfs/root/claude:4791:4342)","timestamp":"2026-01-29T21:50:06.966Z"},{"error":"Error: ENOENT: no such file or directory, scandir '/home/asvishnyakov/.claude/skills'\n    at readdirSync (unknown)\n    at <anonymous> (/$bunfs/root/claude:12:2063)\n    at nJ (/$bunfs/root/claude:11:35715)\n    at readdirSync (/$bunfs/root/claude:12:2024)\n    at zZ$ (/$bunfs/root/claude:1781:380)\n    at zZ$ (/$bunfs/root/claude:1781:1350)\n    at <anonymous> (/$bunfs/root/claude:1781:4713)\n    at <anonymous> (/$bunfs/root/claude:1781:5401)\n    at A (/$bunfs/root/claude:11:7259)\n    at ax1 (/$bunfs/root/claude:4791:4342)","timestamp":"2026-01-29T21:50:06.966Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: Executable not found in $PATH: \"typescript-language-server\"\n    at start (/$bunfs/root/claude:1749:22299)\n    at async f (/$bunfs/root/claude:1749:24751)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:50:09.274Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/claude:1749:22299)\n    at async f (/$bunfs/root/claude:1749:24751)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:50:09.274Z"},{"error":"Error: Executable not found in $PATH: \"typescript-language-server\"\n    at spawn (unknown)\n    at spawn (node:child_process:669:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/claude:1749:20844)\n    at start (/$bunfs/root/claude:1749:22353)\n    at f (/$bunfs/root/claude:1749:24751)\n    at f (/$bunfs/root/claude:1749:25726)\n    at L (/$bunfs/root/claude:1749:32513)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:50:09.274Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:669:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/claude:1749:20844)\n    at start (/$bunfs/root/claude:1749:22353)\n    at f (/$bunfs/root/claude:1749:24751)\n    at f (/$bunfs/root/claude:1749:25726)\n    at L (/$bunfs/root/claude:1749:32513)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:50:09.274Z"},{"error":"Error: Failed to start LSP server plugin:typescript-lsp:typescript: Executable not found in $PATH: \"typescript-language-server\"\n    at <anonymous> (/$bunfs/root/claude:1749:32535)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:50:09.275Z"},{"error":"Error: Failed to start LSP server plugin:pyright-lsp:pyright: Executable not found in $PATH: \"pyright-langserver\"\n    at <anonymous> (/$bunfs/root/claude:1749:32535)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-01-29T21:50:09.275Z"},{"error":"AbortError: The operation was aborted.\n    at unknown\n    at abortChildProcess (node:child_process:937:42)\n    at onAbortListener2 (node:child_process:35:24)\n    at abort (unknown)\n    at <anonymous> (/$bunfs/root/claude:6276:13481)","timestamp":"2026-01-29T21:50:11.912Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗