Skip to content

Web interface: Attaching files is broken in insecure contexts #11452

Closed

Description

@bjesus

Description

I'm using Opencode web installed on a server of mine inside the home network. When trying to attach a file, I get an error in the console for crypto.randomUUID being undefined, and the file isn't uploaded. crypto.randomUUID is indeed undefined, because running not on "localhost" and over HTTP is considered insecure. However, the rest of opencode works just fine, and this is only about creating a unique ID for the attachment.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Run opencode web
  2. Connect from another computer on the same network
  3. Try to attach a file

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

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

    These issues suggest a broader problem with how the web interface handles file operations and insecure contexts. Feel free to ignore if your specific case requires a different approach.

  2. added a commit that references this issue on Feb 10, 2026
    5428fee
  3. added a commit that references this issue on Feb 10, 2026
    fa5a953
  4. added a commit that references this issue on Feb 15, 2026
    a362270
  5. added a commit that references this issue on Feb 17, 2026
    1d90731
  6. added a commit that references this issue on May 5, 2026
    dd03247
  7. added a commit that references this issue on Jun 14, 2026
    29bbdda
  8. added a commit that references this issue on Jul 31, 2026
    16c51c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions