[Bug] Auto-Compact Loses Track of Active Commands During Cleanup
Resolved 💬 3 comments Opened Oct 3, 2025 by eliasstepanik Closed Oct 7, 2025
Bug Description
Auto Compacting sometimes loses track of currently running commands. in the .claude/commands folder.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.5
- Feedback ID: cee0ff1e-0d3c-4e03-b7c0-94fd4400421a
Errors
[{"error":"SyntaxError: Unexpected token '.', \".\\.claude\\.mcp.json\" is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:747:9932\n at Q (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:713:13287)\n at f_0.<anonymous> (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3678:224)\n at f_0.B [as _actionHandler] (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:703:528)\n at file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:707:3127\n at f_0._chainOrCall (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:707:1694)\n at f_0._parseCommand (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:707:3103)\n at f_0.parseAsync (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:704:4195)\n at ve5 (file:///C:/Users/elias/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3707:1502)","timestamp":"2025-10-03T01:39:02.862Z"},{"error":"Error: 525 <!DOCTYPE html>\n<!--[if lt IE 7]> <html class=\"no-js ie6 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 7]> <html class=\"no-js ie7 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if IE 8]> <html class=\"no-js ie8 oldie\" lang=\"en-US\"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en-US\"> <!--<![endif]-->\n<head>\n\n\n<title>api.anthropic.com | 525: SSL handshake failed</title>\n<meta charset=\"UTF-8\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />\n<meta name=\"robots\" content=\"noindex, nofollow\" />\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />\n<link rel=\"stylesheet\" id=\"cf_styles-css\" href=\"/cdn-cgi/styles/main.css\" />\n\n\n</head>\n<body>\n<div id=\"cf-wrapper\">\n <div id=\"cf-error-details\" class=\"p-0\">\n <header class=\"mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8\">\n <h1 class=\"inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2\">\n <span class=\"inline-block\">SSL handshake failed</span>\n <span class=\"code-label\">Error code 525</span>\n </h1>\n <div>\n Visit <a href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_525&utm_campaign=api.anthropic.com\" target=\"_blank\" rel=\"noopener noreferrer\">cloudflare.com</a> for more information.\n </div>\n <div class=\"mt-3\">2025-10-03 01:40:14 UTC</div>\n </header>\n <div class=\"my-8 bg-gradient-gray\">\n <div class=\"w-240 lg:w-full mx-auto\">\n <div class=\"clearfix md:px-8\">\n \n<div id=\"cf-browser-status\" class=\" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center\">\n <div class=\"relative mb-10 md:m-0\">\n \n <span class=\"cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat\"></span>\n <span class=\"cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4\"></span>\n \n </div>\n <span class=\"md:block w-full truncate\">You</span>\n <h3 class=\"md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3\">\n \n Browser\n \n </h3>\n <span class=\"leading-1.3 text-2xl text-green-success\">Working</span>\n</div>\n\n<div id=\"cf-cloudflare-status\" class=\" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center\">\n <div class=\"relative mb-10 md:m-0\">\n <a href=\"https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_525&utm_campaign=api.anthropic.com\" target=\"_blank\" rel=\"noopener noreferrer\">\n <span class=\"cf-icon-cloud block md:hidd
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗