/context and /cost TUI renders off-screen and disappears (v2.1.11, macOS)

Resolved 💬 3 comments Opened Jan 17, 2026 by Quenos Closed Jan 17, 2026

Description

The /context and /cost commands render their TUI visualization off-screen. The content is only visible when scrolling up, and after ~10 seconds the normal input prompt reappears, making the visualization essentially unusable.

Environment

  • Claude Code version: 2.1.11
  • OS: macOS Darwin 25.2.0
  • Terminals tested: Terminal.app, iTerm2 3.6.6
  • TERM: xterm-256color
  • Theme: Dark mode
  • claude doctor: OK

Steps to reproduce

  1. Run claude
  2. Type /context or /cost

Expected behavior

Context/cost visualization appears on screen and is readable

Actual behavior

  • Screen appears to go black
  • Content is pushed off-screen (only visible when scrolling up immediately)
  • After ~10 seconds, normal prompt returns
  • Content disappears from scroll history

Additional notes

  • /model command works correctly
  • Issue persists across both Terminal.app and iTerm2
  • Enabling "Save lines to scrollback in alternate screen mode" in iTerm2 may help preserve the content, but the visualization still renders incorrectly

View original on GitHub ↗

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