opencode web - thinks it is in root (/) path
Description
I have the issue that while opencode recognises the folder that we run (eg we run opencode from folder /opt/myproject) , the web version thinks it is run from root. This behavior exists in all opencode versions -from 1.0.185+
To work in a project from webUi I must always issue the command to opencode (web) chat change to folder /opt/myproject.
Note (this might help): I noticed that when I open opencode web from the terminal ,sometimes for about a split second, it shows the correct folder but it instantly changes to "/".
In the community base appimage of 1.0.185 (https://github.com/pkgforge-dev/opencode-AppImage-Enhanced/releases ) there is the option to "open project" in the lower left panel -right after the connect provider. This would make things easier.
OpenCode version
1.0.185-1.0.207 (all linux versions)
Steps to reproduce
- Navigate to your project folder eg /opt/myproject
- Run command opencode
- opencode terminal correctly shows project path as /opt/myproject
- Open WebUI (control-p)
- Ask WebUI to list files in the current project path. It responds that it is in root (/) folder
The same thing happens if I run command "opencode web".
Screenshot and/or share link
No response
Operating System
Linux Debian Bookworm
Terminal
sakura,xterm