Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: avoid error when AI usage is zero#19388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 4 commits intomainfromdean/fix-agent-usage-0
Aug 20, 2025

Conversation

deansheather
Copy link
Member

Fixes a bug that prevents the managed AI agent usage from showing in the licenses page of the dashboard when the usage is zero. Adds a story with this case as well.

!usage is true whenusage == 0.

image

ethanndickson reacted with hooray emoji
Fixes a bug that prevents the managed AI agent usage from showing in thelicenses page of the dashboard when the usage is zero.
Comment on lines 41 to 43
constusage=managedAgentFeature.actual??0;
constincluded=managedAgentFeature.soft_limit??0;
constlimit=managedAgentFeature.limit??0;
Copy link
Member

@aslilacaslilacAug 18, 2025
edited
Loading

Choose a reason for hiding this comment

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

not coercing these to0 was intentional. if we get past theenabled check then these need to be some positive integer. (except usage, which can also be 0)

@deansheatherdeansheatherenabled auto-merge (squash)August 20, 2025 07:16
@deansheatherdeansheather merged commit67da780 intomainAug 20, 2025
26 of 27 checks passed
@deansheatherdeansheather deleted the dean/fix-agent-usage-0 branchAugust 20, 2025 07:22
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 20, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@aslilacaslilacaslilac left review comments

@ibetitsmikeibetitsmikeibetitsmike approved these changes

Assignees

@deansheatherdeansheather

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@deansheather@aslilac@ibetitsmike

[8]ページ先頭

©2009-2025 Movatter.jp