Repository navigation
fix: 提示缓存命中率与会话亲和 - #583
Merged
Merged
Conversation
This was referenced Nov 23, 2026
Rebuilt on current main. Migration is 031 (030 is reserved by the pending key aggregation PR). Display reasoning levels stay catalog-driven instead of merging the full gateway set, and local-only audit/vite changes are dropped. Changelog now notes probe quota cost and the priority-order default.
Add account_id to aggregation members end to end: schema migration, store, console API, model pool editor, and matching. Legacy members without account_id keep provider-wide pool behavior.
Expose least-quota-first and most-quota-first for model pools and global routing, with normalized strategy loading and candidate counting aligned to the selected strategy.
guyu233
force-pushed
the
fix/prompt-cache-affinity
branch
from
November 23, 2026 10:37
8262fa6 to
c136d10
Compare
guyu233
force-pushed
the
fix/prompt-cache-affinity
branch
from
November 23, 2026 10:46
c136d10 to
7bc110c
Compare
…ation Release the implicit region latch only on cross-provider routes, preserve the retry budget after the first pick, give each priority tier its own budget, and apply account aliases in the worker path. Provider-scoped Qoder routes keep their region isolation.
Keep aggregate sessions bound to a member, bind streams at the first accepted event, use pool account IDs for binding/cooldown/failover, invalidate stale bindings on failover, and canonicalize provider cache token fields.
guyu233
force-pushed
the
fix/prompt-cache-affinity
branch
from
November 23, 2026 10:53
7bc110c to
8d649ba
Compare
Closed
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.
本 PR
修复缓存命中率低的网关侧原因,目标是健康会话稳定落到同一账号/模型,失败后只付一次冷启动:
routingPool。X-Qoder-Account标签不会覆盖 pool 绑定。依赖
堆叠在 #581(聚合基线) 和 #582(账号路由 failover) 之上;请按顺序合并。
上线门槛
必须所有 required checks 通过后才能合并和上线;任何检查失败都不得上线。
需要全部通过:
go、windows-host、worker、frontend、container、secrets。本地验证
go build ./...通过go test ./internal/gateway通过