Skip to content

allow overriding web client deployment path / bundle web client with opencode binary. #6352

Closed as not planned

Description

@paperclover

Question

https://github.com/sst/opencode/blob/1658a3ff59b9ebacb95221fab69b4d3cecca08fd/packages/opencode/src/server/server.ts#L2629

this is both a stability and privacy concern.

  • i've had situations where my docker deployment of an opencode server fails to hit this proxy url sometimes. also, if this hosted deployment gets an update that isn't compatible with the current server, it will break.
  • c.req.path includes the project's path, leaking it to the external server. this isn't a big deal for me since i work on projects that are publicly accessible

i found this because i was trying to add a patch to the web interface, with the first question being "how do i run it in dev mode". for contributing, it would be very useful if this url could be overridden to always refer to the local bundle copy.

can that be done? i'd be fine opening a pr to sort that out (additionally making sure that dev mode works; it appears to not work when replacing the URL)

Activity

  1. github-actions commented on Dec 29, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. thdxr commented on Mar 25, 2026

    @thdxr
    Member

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

  3. paperclover commented on Mar 25, 2026

    @paperclover
    Author

    last activity was on feb 26th inside of the linked pr that aims to resolve this. since this issue was not closed i will not open a new one, assuming you just copy pasted on all issues.

    up to date permalink proving relevancy:

    const response = await proxy(`https://app.opencode.ai${path}`, {

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