Skip to content

fix(event): Handle issue short ID as second positional arg - #1420

Merged
jared-outpost[bot] merged 2 commits into
mainfrom
seer/fix/event-view-short-id-second-arg
Aug 19, 2026
Merged

fix(event): Handle issue short ID as second positional arg#1420
jared-outpost[bot] merged 2 commits into
mainfrom
seer/fix/event-view-short-id-second-arg

Conversation

@sentry

@sentry sentry Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This PR fixes an issue where sentry event view would fail with a ResolutionError when an issue short ID (e.g., PRODUCTION-RCP-API-A9R) was passed as the second positional argument (e.g., sentry event view <org>/<project> PRODUCTION-RCP-API-A9R).

The root cause was that parsePositionalArgs in packages/cli/src/commands/event/view.ts correctly checked looksLikeIssueShortId(first) for the first argument but lacked a corresponding check for looksLikeIssueShortId(second).

The fix adds this missing check. Now, when an issue short ID is detected as the second argument, parsePositionalArgs returns { eventId: LATEST_EVENT_SENTINEL, targetArg: first, issueShortId: second }, allowing the command to correctly resolve the latest event for that issue, preventing the misleading "is not a valid ID" error.

Fixes CLI-1EJ

@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 19, 2026 7:12am

Request Review

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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 932e569. Configure here.

Comment thread packages/cli/src/commands/event/view.ts
@BYK BYK added the jared Trigger the Jared agent to work on stuff label Aug 19, 2026
@BYK

BYK commented Aug 19, 2026

Copy link
Copy Markdown
Member

Jared, feel free to merge if the patch looks good. If not push fixes you see fit and then merge

When an issue short ID was passed as the second positional arg with an
explicit `org/project` target, resolveIssueShortcut only read the org for
`org-all` targets, so the specified org was dropped and resolution fell
back to auto-detection. Read the org from `explicit` targets too, matching
resolveIssueIdShortcut. Adds a regression test.
@github-actions github-actions Bot added risk: high PR risk score: high and removed risk: medium PR risk score: medium labels Aug 19, 2026
@jared-outpost
jared-outpost Bot enabled auto-merge (squash) August 19, 2026 07:12
@jared-outpost

jared-outpost Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

patch looks good — the bugbot finding was real (explicit org/project target dropped the org for a short-ID second arg), fixed in 030750b with a regression test. enabled squash auto-merge; it'll land once the remaining checks (lint/typecheck, unit tests, codeql, warden) go green.

@jared-outpost
jared-outpost Bot merged commit c84e133 into main Aug 19, 2026
31 checks passed
@jared-outpost
jared-outpost Bot deleted the seer/fix/event-view-short-id-second-arg branch August 19, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jared Trigger the Jared agent to work on stuff risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant