Skip to content

feat(cli): add feedback spam command - #1372

Merged
betegon merged 1 commit into
mainfrom
bt/cli-feedback-spam
Oct 2, 2026
Merged

betegon merged 1 commit into
mainfrom
bt/cli-feedback-spam

Conversation

@betegon

@betegon betegon commented Oct 2, 2026

Copy link
Copy Markdown
Member

Adds sentry feedback spam <feedback> to move User Feedback to the spam mailbox, completing the core Feedback triage workflow. Reuses the existing Feedback category guard and issue status updater with the same {status: "ignored"} payload as the Feedback UI. Reads bypass the response cache before selecting the target, and output supports standard --json/--fields.

Documents and tests the existing feedback unresolve command as the way to return spam to the unresolved inbox. Includes command docs, generated agent references, and shared status-command regression coverage.

Typecheck, lint, CLI policy checks, native build, docs build, and all 24 Feedback E2Es pass, including against the built binary. The CLI suite passes 10,193 tests with one existing macOS failure in the unchanged musl installer test. No live Feedback was modified during validation.

Closes #1368.

@betegon
betegon marked this pull request as ready for review October 2, 2026 15:03
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 2, 2026
@betegon
betegon merged commit 9358775 into main Oct 2, 2026
24 checks passed
@betegon
betegon deleted the bt/cli-feedback-spam branch October 2, 2026 15:24
mr-danya pushed a commit to mr-danya/sentry-mcp that referenced this pull request Oct 6, 2026
mr-danya pushed a commit to mr-danya/sentry-mcp that referenced this pull request Oct 6, 2026
mr-danya pushed a commit to mr-danya/sentry-mcp that referenced this pull request Oct 6, 2026
MathurAditya724 added a commit that referenced this pull request Oct 26, 2026
Local discovers capturing and saved sessions from a daemon's plain
loopback stream address. The searchable picker keeps feeds isolated,
refreshes as runs start or expire, and restores the selected capture
after reload. Local commands print a viewer link using the actual bound
port.

The viewer now supports investigation beyond raw payload inspection:

- **Capture controls:** session/project context, capture state,
connectivity, last received time and save deadline. Clear view, delete
captured events, stop capture and disconnect have distinct scopes.
Receiver switching probes the replacement before changing the feed;
failed attempts preserve the current capture. Onboarding provides a
copyable Local run command.
- **Errors and feedback:** exception causes, captured source context and
frame variables, breadcrumbs, request/context data, tags and modules.
Absolute local source paths have VS Code links, and Copy for AI produces
a Markdown summary. Modern feedback and legacy user reports link to
their associated captured error.
- **AI inspection:** standard GenAI and Vercel AI fields from embedded
and standalone spans show model/provider, token usage, system
instructions, messages, responses and tool arguments/results. Child AI
steps stay connected to the interaction. Spans identified only by
operation or origin remain visible when content was not captured.
- **Performance insights:** queries and resources group exact
operation/description pairs, sort by executions/duration/size, and open
individual executions in their trace. Web Vitals compares captured
measurements by page and visit, with explicit units and thresholds.
- **Profiles and diagnostics:** legacy profiles and continuous chunks
provide thread selection, inclusive/self function summaries, trace links
and interactive flame, treemap and sunburst views. Timing and
visualization limits are explicit. SDK inventory discovers
name/version/platform metadata independently of client reports.
Attachments preserve item headers and binary bytes, with
text/JSON/raster-image/video previews and downloads; captured HTML and
code remain inert. Download Blob URLs retain original MIME types only
for allowlisted raster/video media.
- **Investigation controls:** severity/logger facets, sorting and
configurable event metadata; trace search, only-matches, branch collapse
and adjustable tree width. Explicit event navigation reconciles active
facets. Session-wide Cmd/Ctrl+K search stays independent of the view
filter, resizable panes stack on narrow screens, and settings separates
appearance from capture history capacity.

For development, `pnpm --filter local sample` posts nine bundled,
sanitized example envelopes through the real receiver. It also replays a
custom file or recursive fixture directory, including Spotlight's
corpus, with endpoint selection, gzip/Brotli, intervals and repeated
passes. Byte-counted fixtures preserve their original bytes on Windows
checkouts. See the [viewer and replay
guide](https://github.com/getsentry/toolkit/blob/fbdbea3ec22b395de43c21910124e3ed68d55b0a/apps/local/README.md).

Discovery uses a separate capability restricted to loopback and trusted
hosted Local origins; it grants neither ingestion nor CLI control.
Scoped retention updates require the session stream capability. Hosted
viewers cannot delete receiver data or stop captures, and remote HTTPS
streams remain read-only. Older receivers connect without discovery;
restarting an older daemon to upgrade clears its in-memory telemetry.

The span-v2 handling from [Spotlight
#1372](getsentry/spotlight#1372) is adapted to
Toolkit's viewer model, including container validation, typed HTTP
attributes and late segment naming. Existing `/live` and `/sdks` routes
remain compatible, and original envelopes remain inspectable.

Validation: all 322 viewer tests pass, including HTTP/SSE replay,
analysis drill-down, binary attachments, filtered navigation, a
150,000-sample profile and Windows checkout regressions. Root typecheck
and lint pass. The Local workflow exercises viewer integration and
npm/native process E2E on Linux, macOS and Windows. The full local suite
still encounters the known macOS musl-installer and DerivedData-scan
failures; the unrelated issue-link cache race is unchanged.

The screenshots below show the capture/session flows:

| Location | Screenshot |
| --- | --- |
| Local › Capture onboarding | ![Capture-first
onboarding](https://github.com/user-attachments/assets/06ea9d44-09c5-458d-96f1-05c2fb7ff2c3)
|
| Local › Session picker, capturing and saved | ![Capturing and saved
session
picker](https://github.com/user-attachments/assets/1dd23262-3840-4cdb-bf58-3b3529ffeeff)
|
| Local › Events, request inspector | ![Request inspector and capture
context](https://github.com/user-attachments/assets/0da54608-63f7-4391-ab88-5712a912e4ae)
|
| Local › Logs, structured details | ![Structured log
inspection](https://github.com/user-attachments/assets/fc666fea-e461-437b-b828-9475110b88f5)
|
| Local › Traces, selected span | ![Selected span
inspector](https://github.com/user-attachments/assets/b0d6c91d-3315-4aa8-abe0-ccd4c508e0dc)
|
| Local › Traces, narrow viewport | ![Mobile trace
waterfall](https://github.com/user-attachments/assets/a7e74b58-a1d4-4e36-a1a9-12258967f553)
|
| Local › Saved capture, empty traces | ![Saved capture empty state and
deadline](https://github.com/user-attachments/assets/15a3ad4f-f3c7-477e-8f6b-2cc379c32d70)
|
| Local › Search this session, explicit view filter | ![Session search
with explicit view
filter](https://github.com/user-attachments/assets/14d5fa35-539f-4191-98c7-b1695879fc49)
|
| Local › Switch receiver | ![Switch receiver preserves the current
feed](https://github.com/user-attachments/assets/ca5e233b-1a3f-4e2c-9eac-2b21b2202eff)
|
| Local › Capture actions, delete confirmation | ![Confirmed deletion
scope on
mobile](https://github.com/user-attachments/assets/65dd81a1-7e20-42ba-b0f2-ae803b0bf0c5)
|
| Local › Settings, narrow viewport | ![Appearance and capture-scoped
capacity](https://github.com/user-attachments/assets/d6a0ebf2-edf3-4839-93a2-51744739ebb9)
|

---------

Co-authored-by: GPT-6 Codex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complete core CLI User Feedback triage commands

1 participant