Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This was referenced Oct 15, 2026
betegon
marked this pull request as ready for review
October 15, 2026 18:25
11 tasks
joshuawayzwright
pushed a commit
to joshuawayzwright/sentry-mcp
that referenced
this pull request
Nov 16, 2026
…try (getsentry#1507) --- ## What Fixes the dashboard graphics pipeline silently falling back to ASCII on kitty-capable terminals. The dashboard rasterizes the whole grid into one image and encodes it as kitty or sixel (`renderCompleteDashboardAsSixel`). That path required the terminal's character-cell geometry (reported via `CSI 16 t`). Many kitty terminals answer the graphics capability query but never report cell size, so `terminalPixelWidth`/`terminalPixelHeight` returned `undefined` and the dashboard dropped to ASCII — even though the terminal fully supports kitty graphics. ## Changes - `sixel.ts`: add `selectGraphicsFormat()` centralizing the most-capable-first priority (kitty > sixel > ascii; kitty wins when both are advertised, since it transmits full RGBA without palette quantization), and `graphicsCellSize()` which returns the reported cell size or falls back to `DEFAULT_CELL_WIDTH`/`DEFAULT_CELL_HEIGHT` (10×20) when the terminal advertises graphics but reports no geometry. - `dashboard.ts`: `renderCompleteDashboardAsSixel` now selects the format via `selectGraphicsFormat()` and uses `graphicsCellSize()` for geometry. It preserves the terminal's reported pixel width when known and otherwise derives it from the cell width, so a graphics-capable terminal always renders graphics instead of ASCII. The all-or-nothing fallback invariant is preserved: with no graphics format available it still returns `undefined` and the caller renders the full character dashboard. ## Tests - New unit tests for `selectGraphicsFormat` and `graphicsCellSize` in `sixel.test.ts`. - Integration tests updated to mock the new entrypoints; added a regression test that a kitty terminal with no reported geometry renders kitty graphics (not ASCII), and kept the ASCII fallback test for the no-graphics case. - `vitest run test/lib/formatters test/lib/sixel*.test.ts test/lib/kitty-image.test.ts` — 1066 passing. ## Scope note The issue also mentions a heatmap widget (from getsentry#1395) with a custom ASCII renderer. That code is **not present on `main`** in this repo (no `heatmap` references anywhere in the tree), so there was nothing to unify for it here. Once the heatmap widget lands it should render through the shared `chart-core` rasterizer / `sixel-dashboard` compositor like the other widget types, which the compositor already supports. Flagging for a follow-up. Closes getsentry#1506 --- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
joshuawayzwright
pushed a commit
to joshuawayzwright/sentry-mcp
that referenced
this pull request
Nov 16, 2026
…try (getsentry#1507) --- ## What Fixes the dashboard graphics pipeline silently falling back to ASCII on kitty-capable terminals. The dashboard rasterizes the whole grid into one image and encodes it as kitty or sixel (`renderCompleteDashboardAsSixel`). That path required the terminal's character-cell geometry (reported via `CSI 16 t`). Many kitty terminals answer the graphics capability query but never report cell size, so `terminalPixelWidth`/`terminalPixelHeight` returned `undefined` and the dashboard dropped to ASCII — even though the terminal fully supports kitty graphics. ## Changes - `sixel.ts`: add `selectGraphicsFormat()` centralizing the most-capable-first priority (kitty > sixel > ascii; kitty wins when both are advertised, since it transmits full RGBA without palette quantization), and `graphicsCellSize()` which returns the reported cell size or falls back to `DEFAULT_CELL_WIDTH`/`DEFAULT_CELL_HEIGHT` (10×20) when the terminal advertises graphics but reports no geometry. - `dashboard.ts`: `renderCompleteDashboardAsSixel` now selects the format via `selectGraphicsFormat()` and uses `graphicsCellSize()` for geometry. It preserves the terminal's reported pixel width when known and otherwise derives it from the cell width, so a graphics-capable terminal always renders graphics instead of ASCII. The all-or-nothing fallback invariant is preserved: with no graphics format available it still returns `undefined` and the caller renders the full character dashboard. ## Tests - New unit tests for `selectGraphicsFormat` and `graphicsCellSize` in `sixel.test.ts`. - Integration tests updated to mock the new entrypoints; added a regression test that a kitty terminal with no reported geometry renders kitty graphics (not ASCII), and kept the ASCII fallback test for the no-graphics case. - `vitest run test/lib/formatters test/lib/sixel*.test.ts test/lib/kitty-image.test.ts` — 1066 passing. ## Scope note The issue also mentions a heatmap widget (from getsentry#1395) with a custom ASCII renderer. That code is **not present on `main`** in this repo (no `heatmap` references anywhere in the tree), so there was nothing to unify for it here. Once the heatmap widget lands it should render through the shared `chart-core` rasterizer / `sixel-dashboard` compositor like the other widget types, which the compositor already supports. Flagging for a follow-up. Closes getsentry#1506 --- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
joshuawayzwright
pushed a commit
to joshuawayzwright/sentry-mcp
that referenced
this pull request
Nov 16, 2026
…try (getsentry#1507) --- ## What Fixes the dashboard graphics pipeline silently falling back to ASCII on kitty-capable terminals. The dashboard rasterizes the whole grid into one image and encodes it as kitty or sixel (`renderCompleteDashboardAsSixel`). That path required the terminal's character-cell geometry (reported via `CSI 16 t`). Many kitty terminals answer the graphics capability query but never report cell size, so `terminalPixelWidth`/`terminalPixelHeight` returned `undefined` and the dashboard dropped to ASCII — even though the terminal fully supports kitty graphics. ## Changes - `sixel.ts`: add `selectGraphicsFormat()` centralizing the most-capable-first priority (kitty > sixel > ascii; kitty wins when both are advertised, since it transmits full RGBA without palette quantization), and `graphicsCellSize()` which returns the reported cell size or falls back to `DEFAULT_CELL_WIDTH`/`DEFAULT_CELL_HEIGHT` (10×20) when the terminal advertises graphics but reports no geometry. - `dashboard.ts`: `renderCompleteDashboardAsSixel` now selects the format via `selectGraphicsFormat()` and uses `graphicsCellSize()` for geometry. It preserves the terminal's reported pixel width when known and otherwise derives it from the cell width, so a graphics-capable terminal always renders graphics instead of ASCII. The all-or-nothing fallback invariant is preserved: with no graphics format available it still returns `undefined` and the caller renders the full character dashboard. ## Tests - New unit tests for `selectGraphicsFormat` and `graphicsCellSize` in `sixel.test.ts`. - Integration tests updated to mock the new entrypoints; added a regression test that a kitty terminal with no reported geometry renders kitty graphics (not ASCII), and kept the ASCII fallback test for the no-graphics case. - `vitest run test/lib/formatters test/lib/sixel*.test.ts test/lib/kitty-image.test.ts` — 1066 passing. ## Scope note The issue also mentions a heatmap widget (from getsentry#1395) with a custom ASCII renderer. That code is **not present on `main`** in this repo (no `heatmap` references anywhere in the tree), so there was nothing to unify for it here. Once the heatmap widget lands it should render through the shared `chart-core` rasterizer / `sixel-dashboard` compositor like the other widget types, which the compositor already supports. Flagging for a follow-up. Closes getsentry#1506 --- Co-authored-by: jared-outpost[bot] <jared-outpost[bot]@users.noreply.github.com>
This branch was previously deployed
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.
Preserve per-request cancellation through the CLI's authenticated fetch. SDK operations pass a
Request; the adapter previously lost its signal, replaced custom abort reasons, and kept waiting or retrying after cancellation.Both fetch forms follow native signal precedence, including an explicit override:
Cancellation stays connected after headers, stops subsequent redirect/retry dispatches, and releases a caller waiting for OAuth refresh without cancelling the shared refresh. Successful mutations still invalidate cache. Existing retry eligibility, timeouts and credential policy are preserved, including Node 20.0–20.2 support.
Validation
2ac86ef) passes a native local-HTTP probe with this adapter: cancellation, client reuse, pagination and HTTP error metadata.ApiErrormapping.actool(25 pending tests total).No SDK upgrade is required. This fixes connected adapter paths; it does not add a signal to every CLI command or interrupt arbitrary upload-stream producers while they are being buffered. No production OAuth testing.
Part of sentry-api-schema#95.
This cancellation fix is independent of the adoption stack: SDK upgrade #1507 → client reuse #1502 → SDK pagination #1508. It can merge separately and be kept when reverting the adoption steps.