Conversation
…dex/integration-0.64-kimi
…o codex/integration-0.64-kimi
…dex/integration-0.64-history
…/integration-0.64-history
This reverts commit 2aa7ff5.
This reverts commit 6eec2e2.
Port the remaining upstream 0.63.0 fd2414d conditions: the legacy weekly counters must be reliable, counters are integers (an invalid used falls back to a valid remaining balance), and the replacement window is built from those counters. Translate the upstream KimiRatioPoolTests cases.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Collaborator
Author
|
Validated 2026-10-01 at cf4bac8 (port content) + a6ba165 (feature commit):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port upstream 0.64.1 Kimi CLI region parity (steipete#3712 follow-up, GAP-28):
codexbar usageCLI runs,serve/usageresponses, and dashboard snapshot fetches populateFetchContext.api_regionfrom provider settings via the newpopulate_api_region_from_settingshelper (explicit context values keep precedence; empty/unset regions leave the context untouched).rust/src/cli/fetch_context.rs(declared incli/mod.rs) owns the helper plus unit tests covering: savedinternationalregion populates the context, empty/unset leaves it missing, an explicit caller value wins, andKimiRegion::from_settings("international")selects the api.kimi.ai / www.kimi.ai domains.Validation (at a6ba165 + lint companion cf4bac8, toolchain clippy 1.96):
cargo fmt --all— pass.cargo test --manifest-path rust/Cargo.toml— full suite pass, 0 failed / 1 ignored (includes the four new fetch-context region tests).cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings— pass. The companion commit fixes three pre-existing lint sites (alibabatokenplanmanual_range_contains, kiro + openainonminimal_bool) that clippy 1.96 flags identically onorigin/main; no behavior change.port/micro-0.64.1-kimi-cli-regioncf4bac8. CLI/serve fetch-context wiring only; dashboard frontend untouched — browser-use UI proof not applicable.