feat(issue): batch view and explain commands - #1609
Conversation
Agents currently loop `issue view` per ID. Match `event view` with space-separated/newline IDs and a JSON array only for multi-id calls, without changing the shared single-id positional used by explain/plan/resolve. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
I'd say it should open all up to a limit and the limit can be bypassed with |
I'd also make this support multiple issues |
Open multiple issue pages with a five-tab safety cap, and allow an explicit --force override without repurposing the shared -f/--fresh convention. Add batch root-cause analysis while preserving every single-issue output shape. Extract issue rendering and share bounded batch orchestration to keep the command implementations focused. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed both points from @BYK:
The cleanup also fixed the CI trace nullability error, extracted issue formatting from the command, and centralized issue-batch orchestration. |
Resolve the issue utility import conflict by preserving both main's shared issue URL parsing types and the PR's variadic batch argument helper. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5cd800a. Configure here.
Only report per-item warnings when a batch has at least one successful result. For total failure, rethrow the primary error directly so stderr contains one formatted error instead of a warning plus the same error. Co-authored-by: Cursor <cursoragent@cursor.com>

Summary
sentry issue viewandsentry issue explainnow accept space- or newline-separated issue IDs with bounded parallel work and deterministic batch output.Single-issue contracts do not change:
view --jsonremains a flat issue object, whileexplain --jsonremains an array of root causes. Multi-issue view returns an array of those issue objects; multi-issue explain returns labeled envelopes (issue,org,issueId,rootCauses). Partial failures warn on stderr without changing the JSON shape, and all-failed batches rethrow the primary error.issue view --webopens every requested issue up to a five-tab safety cap.--forcebypasses the cap.-fremains the repository-wide--freshalias instead of acquiring a second meaning.The shared single-issue positional remains unchanged for
plan,resolve,unresolve,archive, andevents; batch commands use a separate variadic positional.issue list --expandremains out of scope for 1b.Validation
TZ=UTC pnpm exec vitest run test/lib test/commands test/types test/script— 9,819 passed, 17 skippedpnpm run typecheckpnpm run lintpnpm run check:fragments— valid; existing unrelatedproguard uploadcoverage warning onlyorigin/main