[BUG]

Resolved 💬 3 comments Opened Mar 17, 2026 by GainMarketing123 Closed Mar 20, 2026

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?

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

Environment

  • Claude Code: v2.1.76
  • OS: Windows (PowerShell 7.5.4)
  • Python: 3.14.3
  • Plan: Claude Max

What's Wrong

During long sessions, the terminal periodically re-renders the entire session output — the welcome screen reappears and all previous tool calls/responses replay visually. This happens multiple times per session (observed 8+ replays in one session).

Key observations

  • Context usage is NOT affected (stays at 9-10% despite visual replays)
  • The issue is purely visual — the terminal redraws but no content is re-injected into the conversation
  • Custom hooks are configured in settings.json (SessionStart, PostToolUse, Stop, SubagentStop, SessionEnd)
  • Occurs most frequently during/after long tool sequences and thinking blocks
  • Multiple hook-side fixes attempted (eliminating all non-SessionStart stdout, session marker idempotency, combining hooks to reduce process spawns) — none resolved the visual re-rendering

Reproduction

  1. Configure 5+ hooks in settings.json
  2. Run a long session with many tool calls (20+ Bash/Write/Read operations)
  3. Terminal will periodically redraw the welcome screen and replay all prior output

Labels

platform:windows, bug

What Should Happen?

No Re-rendering.

Error Messages/Logs

Steps to Reproduce

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

Environment

  • Claude Code: v2.1.76
  • OS: Windows (PowerShell 7.5.4)
  • Python: 3.14.3
  • Plan: Claude Max

What's Wrong

During long sessions, the terminal periodically re-renders the entire session output — the welcome screen reappears and all previous tool calls/responses replay visually. This happens multiple times per session (observed 8+ replays in one session).

Key observations

  • Context usage is NOT affected (stays at 9-10% despite visual replays)
  • The issue is purely visual — the terminal redraws but no content is re-injected into the conversation
  • Custom hooks are configured in settings.json (SessionStart, PostToolUse, Stop, SubagentStop, SessionEnd)
  • Occurs most frequently during/after long tool sequences and thinking blocks
  • Multiple hook-side fixes attempted (eliminating all non-SessionStart stdout, session marker idempotency, combining hooks to reduce process spawns) — none resolved the visual re-rendering

Reproduction

  1. Configure 5+ hooks in settings.json
  2. Run a long session with many tool calls (20+ Bash/Write/Read operations)
  3. Terminal will periodically redraw the welcome screen and replay all prior output

Labels

platform:windows, bug

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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