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
{{ message }}
Repository navigation
[BUG]: Client fails TLS connection for Xiaomi Token Plan while terminal works #26006
Xiaomi Token Plan (Singapore) works correctly when used from the terminal, but the OpenCode desktop/client UI cannot connect to the same API endpoint.
What happened:
The Xiaomi Token Plan (Singapore) provider/configuration can be used normally in the terminal.
With the same provider/configuration in the OpenCode client, API requests fail.
The client shows an error similar to:
Cannot connect to API: Client network socket disconnected before secure TLS conn...
This looks like a client-side networking or TLS handling issue because the same API access works outside the client.
Expected behavior:
The OpenCode client should use the same working network/API configuration as the terminal.
If the terminal can connect to Xiaomi Token Plan (Singapore), the client should also be able to establish the TLS connection and send API requests successfully.
Steps to reproduce:
Configure Xiaomi Token Plan (Singapore) as the API provider/model source.
Verify that it works normally from the terminal.
Open the OpenCode client with the same configuration.
Send a request from the client.
The client fails with Cannot connect to API: Client network socket disconnected before secure TLS conn....
Activity
github-actions commentedon May 6, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct (e.g., specific to the Xiaomi Token Plan endpoint or a different root cause), please add details clarifying how it differs.
github-actions commentedon Jul 8, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.