Repository navigation
fix(cli): honor configured organizations for short IDs - #1418
Merged
Merged
Conversation
Resolve full short IDs in the configured organization and refresh incomplete cached organization inventories once on a miss. Co-Authored-By: GPT-6 <noreply@openai.com>
Leave skill version regeneration to the dedicated PR while keeping the issue-specific documentation example. Co-Authored-By: GPT-6 <noreply@openai.com>
betegon
force-pushed
the
bt/cli-shortid-org-context
branch
from
October 5, 2026 19:51
4f9f128 to
61f2ace
Compare
Return the organization with each lookup result so collection no longer depends on parallel array indices. Co-Authored-By: GPT-6 <noreply@openai.com>
betegon
marked this pull request as ready for review
October 5, 2026 20:13
Reuse upstream organization discovery and credential-scoped caching instead of the superseded reload transport option.
Restore the MCP client test exactly to main. Skip the formatting hook for this restoration so it does not reintroduce changes outside the CLI fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bare issue short IDs can report “not found” when the cached organization list omits an accessible organization, even when that organization is configured as the default.
Before
With
team-orgmissing from the cached organization list:The bare short ID searches cached organizations without applying the configured organization.
After
sentry cli defaults org team-org sentry issue view FRONT-ABC # Resolves directly in team-orgShort IDs use the existing environment →
.sentryclirc→ persistent-default precedence. A configured organization remains authoritative: a 404 does not fall through to another organization. Project aliases retain their associated organization.Without configured context, a cached lookup miss refreshes the organization list once through the existing discovery path, including its HTTP cache bypass and credential validation, then searches newly discovered organizations. Ambiguous matches still require an explicit organization. This does not assume that refreshing can repair an organization omitted by the API itself.
Includes regression coverage, command help, documentation, and the issue-specific generated example.
Validation
TZ=UTC: 10,468 passed, 17 skipped, 1 failed. The remaining Linux/musl installer test fails on macOS because it does not mock the OS; it is unchanged by this PR.