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
opencode --port=8080 fails because port statically bound to 4096 #5928
In packages/desktop/src/app.tsx, when location.hostname includes "localhost", the code builds the URL using hardcoded values instead of using relative URLs that would resolve to the actual server origin.
Open http://localhost:8080 in browser
Open DevTools Network tab
Observe API calls going to http://127.0.0.1:4096 instead of port 8080
Both issues describe the same root cause in packages/desktop/src/app.tsx where the code builds the URL using hardcoded values instead of using the actual server origin. Feel free to ignore if your specific case differs.
Activity
github-actions commentedon Dec 22, 2025
This issue might be a duplicate of existing issues. Please check:
Both issues describe the same root cause in
packages/desktop/src/app.tsxwhere the code builds the URL using hardcoded values instead of using the actual server origin. Feel free to ignore if your specific case differs.thdxr commentedon Dec 22, 2025
the issue was
localhostwas treated differently than127.0.0.1. fixed nowgempir commentedon Dec 23, 2025
I think this is still broken? #5949 was reverted
On 1.0.193 I'm still having the issue.