[BUG] Session becomes stuck ("Determining.../Marinating...") after long session duration in large project
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After running a long Claude Code session (~5 hours, 56% of session limit used, 81% of weekly limit used) inside a large Katalon Studio automation project, the agent got stuck showing rotating status text ("Thought for Xs" → "Bash" → "Read" → "Determining..." → "Marinating...") without producing a response or completing the turn.
Closing and reopening VS Code did not resolve it — the session remained in the same stuck state showing "Marinating..." after reopening.
What Should Happen?
Claude Code should either complete the turn and respond, or clearly indicate it is still actively processing vs. stuck, especially in long-running sessions with large project context (multiple SKILL.md/reference files).
Error Messages/Logs
No explicit error message. Terminal showed:
IN: find . -iname "*.tsc" -not -path "*/node_modules/*" 2>/dev/null; find . -iname "*collection*" -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null
OUT: Exit code 1
Steps to Reproduce
- Open a large Katalon Studio project in VS Code with Claude Code extension (project contains custom .claude/skills/katalon/ reference files, e.g. SKILL.md, xml-templates.md, webui-keywords.md)
- Run a long session (several hours) with multiple file reads and bash commands across the session
- Continue prompting ("lanjutkan", "beresin") without using /compact
- Observe that after ~5 hours of session time, the agent's status text cycles (Thought/Bash/Read/Determining/Marinating) without completing a response
- Close and reopen VS Code — issue persists in the same session
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.241 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Session context: Long-running Katalon Studio test automation project (regression test suites, .ts test case files). Project uses custom Claude Code skills folder for Katalon-specific keyword/XML template references.