Skip to content

Conversation

@roaga
Copy link
Member

@roaga roaga commented Dec 16, 2025

Closes AIML-2107

@roaga roaga requested a review from a team as a code owner December 16, 2025 21:08
@linear
Copy link

linear bot commented Dec 16, 2025

@roaga roaga requested a review from aliu39 December 16, 2025 21:08
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 16, 2025
if (slug) {
projectSlugs.push(slug);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Sentinel value for "All Projects" selection not handled

When users select "All Projects", selection.projects contains [-1] (the ALL_ACCESS_PROJECTS sentinel value). The code enters the block because selection.projects.length > 0 is true, but the Map lookup for -1 returns undefined since no actual project has that ID. This results in an empty projectSlugs array, so no project information is added to the snapshot—even though the project selector is visible and the user has meaningfully selected "All Projects". Other parts of the codebase explicitly check for this -1 sentinel value.

Fix in Cursor Fix in Web

Copy link
Member

@aliu39 aliu39 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@roaga roaga merged commit 09fef69 into master Dec 16, 2025
50 checks passed
@roaga roaga deleted the explorer/selected-project-slugs branch December 16, 2025 21:31
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants