[Bug] Excessive memory consumption during session index initialization
Resolved 💬 4 comments Opened Jan 21, 2026 by andre-salata Closed Feb 28, 2026
Bug Description
Claude 2.1.14 is EATING UP the whole RAM memory when initializing. In seconds RAM usage by the "2.1.14" process goes to 15GB.
When launching Claude Code using --debug, it's showing lots of indexing messages:
2026-01-21T00:16:13.216Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:13.216Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:13.216Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:13.311Z [DEBUG] Generated summary for session f7a467fc-fadd-4535-852b-3e72d425a47b: "Session Cleared and Exited"
2026-01-21T00:16:13.314Z [DEBUG] Summarizing all 112 messages (~50336 tokens)
2026-01-21T00:16:13.314Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-21T00:16:13.315Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:13.315Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:13.316Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:14.113Z [DEBUG] Stream started - received first chunk
2026-01-21T00:16:14.292Z [DEBUG] Generated summary for session bb6d2095-b208-4844-96a6-77118cc7456e: "SDK User Flows Documentation Split Refactoring"
2026-01-21T00:16:14.298Z [DEBUG] Summarizing all 5 messages (~0 tokens)
2026-01-21T00:16:14.298Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-21T00:16:14.299Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:14.299Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:14.299Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:15.171Z [DEBUG] Stream started - received first chunk
2026-01-21T00:16:15.337Z [DEBUG] Generated summary for session d30160dc-52ec-4618-b803-47d48b2db357: "User Session Ended"
2026-01-21T00:16:15.339Z [DEBUG] Summarizing all 5 messages (~0 tokens)
2026-01-21T00:16:15.339Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-21T00:16:15.340Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:15.340Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:15.340Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:16.374Z [DEBUG] Stream started - received first chunk
2026-01-21T00:16:16.629Z [DEBUG] Generated summary for session 61ddb00f-ba0c-4757-a67f-182898fc197a: "Session Ended: User Exited Claude Code CLI"
2026-01-21T00:16:16.653Z [DEBUG] Summarizing all 83 messages (~81004 tokens)
2026-01-21T00:16:16.654Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-21T00:16:16.655Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:16.655Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:16.655Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:17.336Z [DEBUG] Stream started - received first chunk
2026-01-21T00:16:17.625Z [DEBUG] Generated summary for session 11f03229-b836-4727-bf78-b3cf65c1e347: "Preserve original filenames in TREKS uploads"
2026-01-21T00:16:17.630Z [DEBUG] Summarizing all 9 messages (~0 tokens)
2026-01-21T00:16:17.631Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-21T00:16:17.631Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:17.631Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:17.631Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:18.450Z [DEBUG] Stream started - received first chunk
2026-01-21T00:16:18.575Z [DEBUG] Generated summary for session 6b9f2bbf-13e0-4ef6-b9c3-0bdf8e13bb1b: "User Login and Greeting"
2026-01-21T00:16:18.582Z [DEBUG] Summarizing all 29 messages (~4665 tokens)
2026-01-21T00:16:18.583Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-01-21T00:16:18.583Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-01-21T00:16:18.583Z [DEBUG] [API:auth] OAuth token check starting
2026-01-21T00:16:18.583Z [DEBUG] [API:auth] OAuth token check complete
2026-01-21T00:16:19.639Z [DEBUG] Stream started - received first chunk
2026-01-21T00…
**Note:** Content was truncated.This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗