Skip to content

Cover art is blank in iTerm2 because the picker selects Kitty #978

Closed

Description

@LargeModGames

What happened

A user on macOS with iTerm2 sees an empty area where the cover art must be, in the playbar and in the full-screen cover view (G). imgcat shows images in the same terminal, so iTerm2 can draw images.

Their log shows the cause:

spotatui 0.47.0 startup | os=macos arch=aarch64 | features: ..., cover-art, art-decode, ... | terminal: TERM=xterm-256color TERM_PROGRAM=iTerm.app
cover art renderer detected a Kitty backend
got new cover art: https://i.scdn.co/image/...

The art downloads, but the renderer uses the Kitty protocol. In ratatui-image 11.1.0, Picker::from_query_stdio gives priority to the answer from the stdio query over the env hint (capability_proto.or(tmux_proto).or(iterm2_proto)). This iTerm2 answers the Kitty graphics query, so TERM_PROGRAM=iTerm.app has no effect. The Kitty protocol in ratatui-image draws only through Unicode placeholders (U=1, U+10EEEE), and iTerm2 does not implement them. Thus nothing shows.

ratatui-image already blocks Kitty for WezTerm and Konsole for the same reason, but not for iTerm2. Its compatibility table lists iTerm2 with the iTerm2 protocol.

Expected: iTerm2 uses the iTerm2 protocol and shows the cover art.

Possible fix: in init_renderer (src/tui/cover_art.rs), if TERM_PROGRAM or LC_TERMINAL names iTerm and the probe gives Kitty, use ProtocolType::Iterm2. I will also report the missing iTerm2 case to ratatui-image.

Steps to reproduce

  1. Start spotatui with cover art in iTerm2 on macOS.
  2. Play a track.
  3. The cover slot is empty. The log says cover art renderer detected a Kitty backend.

Frontend

Terminal app

Source

Spotify

spotatui version

0.47.0

OS

macOS 27.0.1 (Apple M1 Pro)

How you installed spotatui

Homebrew, the one-line installer, and a source build. The result is the same for all three.

Terminal

iTerm2 (version not known yet)

Debug log

The relevant lines are above.

Activity

  1. added
    bug
    on Nov 5, 2026
  2. spotatui commented on Nov 5, 2026

    @spotatui
    Contributor

    🎧 spotatui triage

    Auto-triaged with claude-opus-5-5.

    Label: bug
    Likely area: TUI cover art renderer (terminal image protocol detection)

    Summary

    In iTerm2 on macOS, the cover art area stays empty in both the playbar and the full-screen cover view (G). The art downloads, but the renderer chooses the Kitty protocol because iTerm2 answers the Kitty graphics query. ratatui-image's Kitty output draws only through Unicode placeholders, which iTerm2 does not support. The reporter expects iTerm2 to use the iTerm2 protocol, and suggests overriding the probe result in init_renderer when TERM_PROGRAM or LC_TERMINAL names iTerm.

    Key points

    • spotatui 0.47.0 on macOS 27.0.1 (Apple M1 Pro) in iTerm2. The result is the same for the Homebrew, one-line installer and source builds.
    • The log shows TERM=xterm-256color TERM_PROGRAM=iTerm.app and cover art renderer detected a Kitty backend, followed by got new cover art.
    • imgcat shows images in the same terminal, so iTerm2 itself can draw images.
    • The reporter says ratatui-image 11.1.0 Picker::from_query_stdio prefers the stdio probe answer over the iTerm2 env hint, and that it blocks Kitty for WezTerm and Konsole but not for iTerm2.
    • Expected: iTerm2 uses ProtocolType::Iterm2 and shows the cover art.

    Where to look

    • src/tui/cover_art.rs: init_renderer calls Picker::from_query_stdio() and logs the detected protocol without overriding it. The reporter proposes the fix here.

    What would help

    • iTerm2 version
    • Whether iTerm2's Kitty graphics support or any related iTerm2 settings are turned on

    Possible duplicates: none found

    Compared against 30 open and 100 recently closed issues.

  3. self-assigned this
    on Nov 5, 2026
  4. added a commit that references this issue on Nov 5, 2026
    59a046c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions