claude-code - 💡(How to fix) Fix [BUG] Powershell screen is not cleared after exit [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46297Fetched 2026-04-11 06:24:01
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

After exiting claude text artifacts from my claude session remain on the screen.

<img width="1115" height="628" alt="Image" src="https://github.com/user-attachments/assets/1bf12162-fbbd-4270-9f77-c76f9d4c5778" />

What Should Happen?

All text artifacts should be cleared from the screen, or at least clean out the characters that obscuring my command input.

Error Messages/Logs

Steps to Reproduce

  1. Run claude code in a powershell terminal by typing claude.
  2. Use the /exit command to exit claude code.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.100

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by modifying the exit command in Claude Code to properly clear the screen after exiting.

Guidance

  • Verify that the /exit command is correctly implemented to clear the screen and remove any text artifacts.
  • Check the documentation for the Anthropic API and Claude Code to see if there are any known issues or workarounds for this problem.
  • Try using a different terminal or shell to see if the issue is specific to PowerShell.
  • Consider reporting this issue to the developers of Claude Code, as it is a regression and was working in a previous version.

Example

No code example is provided as the issue does not contain enough information about the implementation of the /exit command.

Notes

The lack of information about the Last Working Version and Additional Information makes it difficult to provide a more specific solution. The issue may be related to a change in the Anthropic API or Claude Code.

Recommendation

Apply workaround: The user can try using a different command or method to clear the screen after exiting Claude Code, such as the clear command in PowerShell.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING