feat(ui): add kitty graphics protocol support for inline images - #1484
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Member
|
We should now rename all |
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0cab151. Configure here.
Closed
Detect the kitty graphics protocol alongside sixel in the terminal probe and prefer it when available. Kitty transmits full RGBA pixels directly, so color and transparency are preserved without palette quantization. sentry api renders image attachments via kitty first, falling back to sixel on older terminals. SENTRY_NO_SIXEL disables both. Fixes #1482
/ now accept either (sixel) or , so kitty-only terminals still get a real pixel budget instead of falling back to the 800 px default. Fixes the bug reported by sentry[bot] / cursor[bot].
Renames SENTRY_NO_SIXEL to SENTRY_NO_GRAPHICS (old name kept as a deprecated alias) now that the toggle governs both kitty and sixel, and adds a persistent `sentry cli defaults graphics on/off` setting. Inline graphics are opt-out: capable terminals render images by default. Removes the dashboard-specific opt-in (--sixel flag, SENTRY_DASHBOARD_SIXEL, timeseries_sixel displayType). `sentry dashboard view` now renders as a graphics canvas on capable terminals via the same global setting, preferring kitty and falling back to sixel. Detection stays env-only so the --help banner never opens the database; the stored graphics preference is read only in the TTY-gated image paths.
sixelBanner only called optedOut(), so a persisted `graphics off` preference still emitted the sixel help banner. Now it also checks getGraphicsPreference() === false, matching canRenderSixel / canRenderKitty and the documented semantics of the preference.
MathurAditya724
force-pushed
the
issue-1482-kitty-graphics
branch
from
August 26, 2026 19:32
eb5812a to
5ca32bb
Compare
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds support for the kitty graphics protocol alongside the existing sixel rendering. Newer terminals (kitty, WezTerm, Ghostty, recent Konsole) prefer kitty, which transmits full RGBA pixels directly — preserving color and transparency without palette quantization. The terminal probe now detects kitty via its graphics query, and
sentry apirenders image attachments via kitty when available, falling back to sixel on older terminals.SENTRY_NO_SIXELdisables both.Sixel is kept as the fallback rather than dropped: it remains the only option on terminals that don't speak kitty.
Testing
vitest run test/lib/kitty-image.test.ts test/lib/sixel.test.ts test/commands/api.test.ts(261 pass),biome checkclean on changed files,check:env-coveragepasses.tscerrors are pre-existing (missing generated files, unrelated to this change).Closes #1482