Skip to content

[FEATURE]: The WorkSpace settings in OpenCode Web #14656

Closed as not planned
Closed as not planned

Description

@ZYZMZM98

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

It is impossible to set and specify the default WorkSpace to enter through any parameters of OpenCode Web. Currently, there are no configuration items or command-line parameters available for this purpose. At present, one can enter the WorkSpace through the URL (base64 encoded path), but it will not create a new WorkSpace in the left sidebar. Currently, a function that supports setting the WorkSpace in OpenCode Web is urgently needed.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 22, 2026
  2. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    webRelates to opencode on web / desktop
    on Feb 22, 2026
  3. gitrequests commented on Mar 22, 2026

    @gitrequests

    Web mode: project selection screen shows / and hides actual workspace path (Docker)

    Description

    According to the documentation, OpenCode uses the current working directory as the project root when launching in web mode.

    However, when running OpenCode in web mode inside Docker, the UI shows a project selection screen that does not reflect the actual workspace directory.

    Instead, it shows / as a recent project, which is misleading.


    Screenshot

    Image

    Observed behavior in the UI:

    • "Recent projects" shows /
    • No indication of the actual working directory (/home/opencode/workspace)
    • No visible link between the UI and the configured workspace

    Expected behavior

    One of the following:

    • Automatically open the working directory (/home/opencode/workspace) as the active project
    • OR clearly display something like:
    Current workspace: /home/opencode/workspace
    
    • OR list the mounted workspace directory instead of /

    Actual behavior

    • A project selection screen is shown
    • Only / appears under "Recent projects"
    • The actual workspace path is not visible anywhere
    • User must manually guess or re-select the correct directory

    Why this matters

    This creates confusion, especially in containerized environments:

    • The working directory is explicitly set (working_dir)
    • The workspace is mounted and known
    • But the UI behaves as if no project is selected

    This is particularly problematic for:

    • Docker setups
    • Remote environments
    • New users expecting automatic project detection

    Docker setup

    services:
      opencode:
        image: ghcr.io/anomalyco/opencode:latest
        working_dir: /home/opencode/workspace
        volumes:
          - ./opencode:/home/opencode
          - ./workspace:/home/opencode/workspace
        command: ["web", "--hostname", "0.0.0.0", "--port", "4096"]
        environment:
          - HOME=/home/opencode
        ports:
          - "4096:4096"

    Suggested improvements

    • Detect and auto-open the current working directory as the active project
    • Display the current workspace path in the UI
    • Avoid showing / as the default project when a working directory is explicitly set
    • Provide a clear "Open current workspace" option

    Thanks!

  4. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    webRelates to opencode on web / desktop
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions