Skip to content

feat(enterprise): 接入毕昇企业登录、模型恢复与视觉用量展示 - #483

Merged
zgqgit merged 10 commits into
dataelement:feat/bisheng-gateway-authfrom
SuperstructureJH:codex/bisheng-gateway-enterprise
Sep 20, 2026
Merged

zgqgit merged 10 commits into
dataelement:feat/bisheng-gateway-authfrom
SuperstructureJH:codex/bisheng-gateway-enterprise

Conversation

@SuperstructureJH

Copy link
Copy Markdown
Contributor

feat/bisheng-gateway-auth 当前从 V0.9.1@9b2d2cf1 建立,企业接入代码仍待合入。本 PR 汇总已提交的企业功能,面向该分支重新交付。

企业接入后,用户可通过毕昇完成浏览器授权,获取获授权模型与用量,并通过主进程代理调用模型。凭据由主进程保管;模型授权失效时恢复可用模型。账号页按下发的图片能力展示视觉标识,Token 用量采用中文“万”单位,文案跟随产品语言。

来源与范围

验证

  • 全量测试:137 个文件 / 1,157 项通过。
  • 类型检查、生产构建、diff 检查与工作流目标分支配置检查通过。
  • 锁文件及全部依赖差异文件与已验证的 feat(enterprise): 展示视觉模型标识并精简 Token 用量 #480 工作树一致,在独立工作树中复用对应依赖并重新验证。
  • 真实企业登录、原生 Desktop 唤起、系统钥匙串、真实模型图片问答及新安装包验收:NOT_RUN

fairy and others added 10 commits September 17, 2026 16:07
…tokens into Harness

Keep market 1.45.1, migration protocol 6, and safe-mode inspect-only; chat goes through a main-process SSE proxy.

Co-authored-by: Cursor <cursoragent@cursor.com>
Windows checkout turns the YAML into CRLF, so the inject assertion must not depend on LF-only line endings.

Co-authored-by: Cursor <cursoragent@cursor.com>
commitSession publishes connected before models sync, so assertions must wait for modelsAvailable. Also match the desktop patch without depending on LF-only regex groups.

Co-authored-by: Cursor <cursoragent@cursor.com>
modelsAvailable flips true before GET /usage finishes, so the PKCE test must wait for bisheng:42 used tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep phase as refreshing after commitSession so settings keep polling until syncCatalog finishes usage, avoiding the empty first-load model usage state.

Co-authored-by: Cursor <cursoragent@cursor.com>
…r on settings reads

Existing sessions missed the enterprise catalog after login because revision waited on usage and the idle adapter poll was too slow.

Co-authored-by: Cursor <cursoragent@cursor.com>
…t errors

The enterprise settings page ignored Settings -> General language changes, and desktop-owned chat failures stayed English. Register the settings copy with the locale service and localize known adapter fallbacks without rewriting platform messages.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zgqgit
zgqgit merged commit deef441 into dataelement:feat/bisheng-gateway-auth Sep 20, 2026
6 checks 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