[BUG] Fullscreen rendering: blank screen after accepting plan with "clear context"
Description
When CLAUDE_CODE_NO_FLICKER=1 (fullscreen/alt-screen rendering) is enabled, accepting a plan with the "Yes, clear context and auto-accept edits" option causes the terminal to go completely blank — prompt, status bar, and all output disappear. The process continues running normally in the background (steady CPU usage, API calls proceeding), but the display never recovers.
Steps to Reproduce
- Set
CLAUDE_CODE_NO_FLICKER=1in settings or environment - Enter plan mode (
/planor via a task) - Approve the plan using "Yes, clear context and auto-accept edits" (
Shift+Tab) - Screen goes blank — no prompt, no status line, no output
Expected Behavior
After context clear, the alt-screen buffer should re-initialize and display the ongoing session normally.
Actual Behavior
The alt-screen buffer is not restored after the context clear. The terminal is completely blank. The Claude process continues working (confirmed via ps aux showing steady ~12.5% CPU). Killing and restarting is the only recovery.
Workaround
Use "Yes, auto-accept edits" (preserves context, no buffer reset) instead of the clear-context variant.
Environment
- Claude Code v2.1.88
CLAUDE_CODE_NO_FLICKER=1- Linux (Debian 13)
- Terminal: Kitty
- Shell: Bash
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗