Skip to content

opencode web - thinks it is in root (/) path #6336

@plirof

Description

@plirof

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

  1. Navigate to your project folder eg /opt/myproject
  2. Run command opencode
  3. opencode terminal correctly shows project path as /opt/myproject
  4. Open WebUI (control-p)
  5. 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions