You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
OpenCode Free stopped answering once an API key was entered. The gateway admits the free tier only on the credential the product supplies, so a key typed into the OpenCode Free card replaced it and every free model returned 401 Invalid API key. Switching models did not help — the free routes share one credential — and there was no way to clear the key from the app. The credential now arrives from the launch environment, which outranks the stored one: the key field on that card is read-only, and an install that already holds a typed key starts answering again on upgrade with nothing to clean up. (#1641)
Under the hood
Refreshed the OpenCode Zen client identity to the current desktop release, so the app keeps the free-tier quota pool it is entitled to. (#1640)
The desktop smoke test now sends a real free-model turn, so a broken free route fails CI instead of shipping. (#1637)
中文版本
修复
填过 API Key 之后 OpenCode Free 全部失效。 网关只认产品自己提供的那个凭据才放行免费额度,所以在 OpenCode Free 卡片里填的 Key 会把它顶掉,六个免费模型全部返回 401 API 密钥无效。换模型没用——这些免费路由共用同一个凭据——而且应用里没有任何地方能把填进去的 Key 清掉。现在这个凭据改由启动环境提供,优先级高于存储层:该卡片的密钥输入框变为只读;已经填过 Key 的安装升级后会自动恢复,不需要手动清理任何东西。(#1641)
内部改动
将 OpenCode Zen 的客户端身份刷新到当前桌面版本,保证应用继续使用它应得的免费额度池。(#1640)
桌面冒烟测试现在会真实发起一轮免费模型对话,免费路由坏掉会在 CI 阶段失败,而不是发出去之后才发现。(#1637)