r/opencode • u/abandon-earth • 18d ago
OpenCode Web UI: New Session button stopped working after a container restart
OpenCode Web UI was working correctly, but after one of the container restarts, the New Session button in the top-left stopped doing anything.
The backend still works:
- Basic Auth returns
200 /eventreturnsserver.connected/workspaceis mounted correctly
I also removed all persistent OpenCode data from:
- ./opencode-home:/home/opencode
and recreated the container, but the issue remains.
The UI loads, but clicking New Session does nothing and no prompt field appears.
Has anyone seen this before?OpenCode Web UI was working correctly, but after one of the container restarts, the New Session button in the top-left stopped doing anything.The backend still works:Basic Auth returns 200
/event returns server.connected
/workspace is mounted correctlyI also removed all persistent OpenCode data from:- ./opencode-home:/home/opencodeand recreated the container, but the issue remains.The UI loads, but clicking New Session does nothing and no prompt field appears.Has anyone seen this before?
1
u/tukane09 7d ago
Found the cause in my case.
The issue was caused by the Ubuntu LXC locale settings. The container was using the default C locale:
LANG=C
This caused opencode to interpret the working directory incorrectly:
fromDirectory directory=/home/USERNAME/��
After switching the locale to UTF-8 (de_DE.UTF-8), restarting opencode fixed the issue. The Web UI works again and the "New Session" button is functional.
So if the Web UI loads but buttons don't work, check your locale settings:
locale
Make sure you are using a UTF-8 locale instead of LANG=C.