Skip to content

Fix entitlements rendering incorrectly#317857

Merged
lramos15 merged 1 commit into
mainfrom
lramos15/permanent-gazelle
May 21, 2026
Merged

Fix entitlements rendering incorrectly#317857
lramos15 merged 1 commit into
mainfrom
lramos15/permanent-gazelle

Conversation

@lramos15
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 21, 2026 21:32
@lramos15 lramos15 enabled auto-merge (squash) May 21, 2026 21:32
@lramos15 lramos15 self-assigned this May 21, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates chat quota parsing to correctly preserve and surface quota snapshot values that are valid finite numbers but not safe integers, which should address incorrect rendering of entitlement/quota values in the chat UI.

Changes:

  • Loosens validation for entitlement and quotaRemaining in quota snapshots from Number.isSafeInteger to Number.isFinite.
  • Ensures non-integer (fractional) quota values can flow through parsing instead of being dropped as undefined.
Show a summary per file
File Description
src/vs/workbench/services/chat/common/chatEntitlementService.ts Adjusts quota snapshot numeric validation to accept finite non-integer values for entitlement/quota remaining.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/vs/workbench/services/chat/common/chatEntitlementService.ts
@lramos15 lramos15 merged commit 907ffc4 into main May 21, 2026
26 checks passed
@lramos15 lramos15 deleted the lramos15/permanent-gazelle branch May 21, 2026 21:53
@vs-code-engineering vs-code-engineering Bot added this to the 1.122.0 milestone May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants