Skip to content

fix(router): allow tier upgrades despite cache cost - #596

Open
lcp2021211 wants to merge 1 commit into
OpenBMB:mainfrom
lcp2021211:fix/router-cache-upgrade
Open

lcp2021211 wants to merge 1 commit into
OpenBMB:mainfrom
lcp2021211:fix/router-cache-upgrade

Conversation

@lcp2021211

Copy link
Copy Markdown

Summary

  • bypass cache-aware cost comparison when the judge requests a tier upgrade
  • preserve the existing cache-cost comparison for strict tier downgrades
  • add regression coverage for upgrades and both downgrade outcomes

Closes #594

Testing

  • TypeScript build passes on Node.js 22.13.0
  • new cache-aware switching tests: 3 passed
  • router test suite: 20 passed

The full local suite otherwise reported two unrelated EPERM failures because the sandbox cannot listen on 127.0.0.1; three following tests were cancelled.

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.

【BUG】router: cache-aware switching can block judge-requested tier upgrades

1 participant