Skip to content

fix(launcher): restore protocol proxy startup invariants - #2060

Open
Yuimi-chaya wants to merge 3 commits into
BigPizzaV3:mainfrom
Yuimi-chaya:codex/protocol-proxy-startup-invariants
Open

fix(launcher): restore protocol proxy startup invariants#2060
Yuimi-chaya wants to merge 3 commits into
BigPizzaV3:mainfrom
Yuimi-chaya:codex/protocol-proxy-startup-invariants

Conversation

@Yuimi-chaya

Copy link
Copy Markdown
Contributor

背景

这是从 #2023 独立拆出的 protocol proxy 修复,与 restart 和 Provider Sync 文件事务无依赖。

普通启动不再完整覆盖活动供应商后,单模型路由等功能仍会启动本地 helper,但 live config.toml 的活动 transport endpoint 可能继续指向上游,导致请求绕过本地代理。另一个边界是旧 Launcher 仍持有 fallback lock 时,WouldBlock 会误入精简 activation 路径并跳过启动维护。

改动

  • helper 启动前结构化解析 live TOML,只修复当前活动 transport 所需的本地 proxy endpoint。
  • 覆盖 model routes、Chat Completions、Aggregate、OpenAI session identity、Official Mix 和 no-auth Pure API。
  • 普通无路由 Responses 供应商保持直连,不被强制改写到本地端口。
  • 不恢复完整 profile apply:不改 auth、供应商/模型选择、common/context、插件、catalog 或凭据。
  • stale Launcher recovery 同时覆盖 AddrInUse 与 WouldBlock;真实 App 已运行时仍使用原 activation 路径。
  • 源码契约断言先归一化空白,兼容 Windows CRLF checkout。

验证

拆分前组合版本已在 Windows 11 真人验证单模型路由与无路由 Responses 直连;本拆分分支完成 latest-main 聚焦自动化验证。

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.

1 participant