Skip to content

[Bug] Claude Code hangs when resuming certain conversations with large tool outputs in history #19036

Closed as duplicate

Description

@jsayubi

Bug Description
When resuming a session that contains a large tool output (e.g., a 1.4MB git diff or file read), Claude Code
freezes/hangs while attempting to render the session history in the terminal

Steps to Reproduce

  1. Start a Claude Code session
  2. Run a command that produces large output (e.g., git diff on many files, reading a large file)
  3. Exit the session
  4. Try to resume the session using /resume or the resume picker

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.12
  • Feedback ID: 091effec-806d-4c2a-9fe8-18eadf912300

Expected Behavior

Session resumes normally, possibly with large outputs truncated or lazily loaded.

Actual Behavior

Claude Code hangs indefinitely. Terminal becomes unresponsive. CPU usage spikes to 100%.

Activity

  1. github-actions commented on Jan 18, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. /resume command consistently crashing after the agent reads too big files, resulting in full unavailability of command and conversation history until fixed #16251
    2. Claude Code crashes with SIGABRT when session JSONL files exceed V8 heap limit #19025
    3. Session UI freeze when command outputs exceed ~5MB (git status on large node_modules) #18575

    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. jsayubi commented on Jan 18, 2026

    @jsayubi
    Author

    Adding debug evidence from my investigation (issue #19036, closing as duplicate):

    Environment: macOS Darwin 25.2.0, Claude Code 2.1.12, Warp Terminal

    Session file analysis:

    • Total: 82 messages, 2MB
    • Line 17: 1,447,356 bytes (1.4MB) - single tool output
    • Additional large entries: 133KB, 85KB, 56KB

    Debug log showing the hang:
    High write ratio: blit=0, write=18913 (100.0% writes), screen=467x123

    When resuming, Claude Code attempts to render all 82 messages at once, including the 1.4MB entry, causing 18,913
    terminal writes
    that completely freeze the UI. CPU spikes to 100% and the process becomes unresponsive.

    Closing #19036 as duplicate.

  3. github-actions commented on Jan 26, 2026

    @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.

  4. locked as resolved and limited conversation to collaborators on Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions