Skip to content

Fix Droid zero usage ratio#864

Merged
steipete merged 1 commit intosteipete:mainfrom
proxynico:fix-factory-zero-usage-ratio
May 8, 2026
Merged

Fix Droid zero usage ratio#864
steipete merged 1 commit intosteipete:mainfrom
proxynico:fix-factory-zero-usage-ratio

Conversation

@proxynico
Copy link
Copy Markdown
Contributor

Summary

  • fall back to token/allowance math when Factory returns usedRatio=0 with non-zero usage
  • add a regression test matching the observed Droid API payload

Validation

  • swift test --filter FactoryStatusSnapshotTests
  • ./Scripts/compile_and_run.sh --test --wait (tests passed; command timed out during later packaging metadata)
  • ./Scripts/compile_and_run.sh --wait

@steipete steipete merged commit 824c47e into steipete:main May 8, 2026
1 check passed
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.

2 participants