Skip to content

fix(cli): improve missing-context recovery - #1634

Open
betegon wants to merge 3 commits into
mainfrom
fix/cli-context-recovery
Open

betegon wants to merge 3 commits into
mainfrom
fix/cli-context-recovery

Conversation

@betegon

@betegon betegon commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Missing org/project context now offers one copyable issue list retry preserving search and output flags, plus a compact list of other accessible org/project candidates.

For an authenticated, non-interactive run with no org/project context (fictional names below):

sentry issue list --query is:unresolved --period 24h --limit 5 --sort date --json

Before — organization-only guidance; the agent must discover a project and reconstruct its command. Abbreviated example:

Specify one of your organizations:
  example-org
  another-org
List a project: sentry project list <org>/

After — one complete retry example and the other discovered projects, without repeating the command and flags. Abbreviated example:

Or:
  - Retry example:
    sentry issue list 'example-org/web' --limit 5 --sort date --period '24h' --query='is:unresolved' --json
  - Other available projects: example-org/api, another-org/worker
  - List projects: sentry project list 'example-org/'
  - List projects: sentry project list 'another-org/'

Discovery samples up to three projects in each of three organizations, respects configured org scope, and does not save defaults. Navigation keywords become explicit --cursor first retries; raw API cursors are preserved.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 23, 2026 8:16pm UTC

Request Review

Comment thread packages/cli/src/commands/issue/list.ts
@betegon
betegon marked this pull request as ready for review October 23, 2026 16:22
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 23, 2026
@betegon
betegon force-pushed the fix/cli-context-recovery branch from 36dbc3b to 389124a Compare October 23, 2026 20:16

This branch was previously deployed

1 inactive deployment
Preview — 389124a9 Deployed Oct 23, 2026 by vercel[bot]
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.

1 participant