Skip to content

fix: replace dead-end @latest selector error hint with actionable alternative (CLI-1ET)#865

Merged
BYK merged 4 commits intomainfrom
byk/fix-selector-error-hint
Apr 28, 2026
Merged

fix: replace dead-end @latest selector error hint with actionable alternative (CLI-1ET)#865
BYK merged 4 commits intomainfrom
byk/fix-selector-error-hint

Conversation

@BYK
Copy link
Copy Markdown
Member

@BYK BYK commented Apr 28, 2026

Summary

  • Fixes CLI-1ET: When @latest / @most_frequent selectors find no unresolved issues, the error's "Try:" hint previously echoed back the exact same failing command — a dead-end. Now it points to sentry issue list <org>/ -q "is:resolved" so users can see their resolved issues instead.
  • Adds a third suggestion line explaining the -q "is:resolved" escape hatch.

Before:

Selector '@latest' no unresolved issues found.

Try:
  sentry issue view fluentry/@latest    ← dead-end

Or:
  - No unresolved issues found in org 'fluentry'.
  - The most recent issue selector only matches unresolved issues.

After:

Selector '@latest' no unresolved issues found.

Try:
  sentry issue list fluentry/ -q "is:resolved"

Or:
  - No unresolved issues found in org 'fluentry'.
  - The most recent issue selector only matches unresolved issues.
  - Use -q "is:resolved" to see resolved issues instead.

Closes CLI-1ET

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://cli.sentry.dev/_preview/pr-865/

Built to branch gh-pages at 2026-04-28 22:04 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Codecov Results 📊

6213 passed | Total: 6213 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 12988 uncovered lines.
✅ Project coverage is 75.91%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    75.91%    75.91%        —%
==========================================
  Files          293       293         —
  Lines        53930     53925        -5
  Branches         0         0         —
==========================================
+ Hits         40941     40937        -4
- Misses       12989     12988        -1
- Partials         0         0         —

Generated by Codecov Action

Comment thread src/commands/issue/utils.ts Outdated
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a976369. Configure here.

Comment thread src/commands/issue/utils.ts Outdated
@BYK BYK merged commit 59faea7 into main Apr 28, 2026
26 checks passed
@BYK BYK deleted the byk/fix-selector-error-hint branch April 28, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant