“切换 Codex 时覆盖 OpenCode 登录信息” 功能失效

Author: ruoshuixxCreated Oct 1, 2026Updated Oct 1, 2026

Windows 上,旧版 OpenCode(V1) 的账号凭据文件通常在:

C:\Users\\xxx.local\share\opencode\auth.json 但 OpenCode V2(2.0.20),登录凭据已改为保存在数据库中,通常是:

C:\Users\\xxx.local\share\opencode\opencode.db

导致覆盖失效