You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Bug: Project alias collisions when multiple orgs have same project slug #48
The buildProjectAliasMap function in src/commands/issue/list.ts generates aliases that collide when multiple organizations have projects with the same slug. This causes the entries dictionary to lose one of the projects, making its issues inaccessible via alias shortcuts.
Root Cause
The alias generation logic (lines 141-170) only considers project slugs when computing unique prefixes, ignoring the organization. The entries dictionary is keyed by alias alone, so when two projects from different orgs generate the same alias, the second overwrites the first.
// Line 142: Collects only project slugs, ignoring orgconstprojectSlugs=results.map((r)=>r.target.project);// Lines 166-169: entries keyed by alias - collisions overwriteentries[alias]={orgSlug: result.target.org,
projectSlug,};
Reproduction
Set up a monorepo with two Sentry DSNs from different organizations, where both projects have the same slug (e.g., org1:dashboard and org2:dashboard)
Run sentry issue list
Both projects' issues appear with the same alias prefix (e.g., d-A3, d-B7)
Run sentry issue get d-A3 (an issue from org1)
The CLI looks up alias d → returns org2's project → fails to find the issue or returns wrong data
Expected Behavior
Each project should have a unique alias, even when slugs collide across organizations. For example:
org1:dashboard → o1-d
org2:dashboard → o2-d
Severity
Medium - This is an edge case requiring multi-org monorepos with identical project slugs. Workaround: use explicit --org and --project flags.
Activity
betegon commentedon Jan 23, 2026
so this is very unlikely to happen.
fix(issue): handle cross-org project slug collisions in alias generation
fix(issue): handle cross-org project slug collisions in alias generation