[BUG] "Checking if UI preview is needed" runs all the time in CLI, when it should only run in GUI

Resolved 💬 2 comments Opened Mar 27, 2026 by 45Matches Closed Apr 26, 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?

"Checking if UI preview is needed" seems to run on almost every command in the CLI, when it has no ability to generate previews. Only the GUI can. Please stop this as it's chewing up thousands of tokens unnecessarily.

What Should Happen?

Do not check for UI preview in CLI.

Error Messages/Logs

Steps to Reproduce

No f idea

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.85 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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