Repository navigation
[WS2][WS3] 接通私有登录取消和独立 token 计数 - #24
Merged
Merged
Conversation
added 7 commits
October 19, 2026 21:40
# Conflicts: # Cargo.lock
…to ws2/proxy-completion
This was referenced Oct 19, 2026
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.
在本机私有管理 socket / Windows named pipe 接通登录取消,并将 token 计数独立于模型生成。取消已完成流程会保留账号;已交换、待保存的凭据也会保留以便重试。计数仅走 Messages 非流式操作,旧 adapter / Router 返回 501,OAuth 计数复用凭据刷新逻辑。
前置 #20、共享兼容接口 #23 已合入 main;本分支已合并 main 并调整 base。已审查私有管理入口、取消状态机、计数与生成分流和默认 Unsupported 的兼容行为。真实 mesh 转发和 Coordinated 委托由 #25 补充;四家订阅 adapter 尚未实现原生计数,仍返回 501。
验证:在指定远端 cranibox-validation 容器对合并 main 后的提交运行 fmt 和 cranibox-llm 测试,209 项通过、0 失败、1 项已有环境验收忽略。覆盖管理入口取消、已完成账号与待保存凭据保留、OAuth 计数刷新、禁止生成回退、本地分发防循环。最终头 964a0cf 的 7 项跨平台检查全部成功,已通过普通 merge 合入 main,提交 fd1ed77。
交付及人工验收步骤见 crates/cranibox-llm/tests/IMPLEMENTATION.md。真实厂商账号、Windows 不同用户/远程身份、实际设备与真实浏览器登录仍待人工验收;Claude 真实验证后置。