Skip to content

Opencode Web: Terminal not working #7578

Closed

Description

@conradkoh

Description

The terminal cannot be typed in for the web UI

Plugins

No response

OpenCode version

1.1.11

Steps to reproduce

  1. Run opencode web
  2. Open terminal in the Web UI
  3. Try to click on it and type - all input goes into the web chat

Screenshot and/or share link

No response

Operating System

Tahoe 26.2

Terminal

iTerm 2

Activity

  1. github-actions commented on Jan 10, 2026

    @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. zbynekwinkler commented on Jan 12, 2026

    @zbynekwinkler

    I can confirm the same behavior on windows with version 1.1.14 (1.1.7 used to work, it found and opened git bash).

  3. zbynekwinkler commented on Jan 12, 2026

    @zbynekwinkler

    In the browser console I see bunch of errors while the last one says

    Error: Failed to load ghostty-vt.wasm.
    

    There are some 404 and some cors errors as well. This is on Edge on Windows.

  4. ddandyy74 commented on May 6, 2026

    @ddandyy74

    I can confirm this issue still exists in v1.14.39 (latest release as of May 6, 2026).

    Environment:

    • OpenCode version: v1.14.39
    • Running as: headless server with HTTP Basic Auth
    • Browser: Chrome on Linux
    • Access: via IP address (not localhost)

    Error in console:

    Connecting to 'data:application/wasm;base64,...' violates the following Content Security Policy directive: "connect-src *". Note that '*' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches self's scheme. The scheme 'data:' must be added explicitly.
    

    Current CSP from server:

    Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; media-src 'self' data:; connect-src *
    

    The issue is that ghostty-web loads the Ghostty WASM module via a data: URL, but connect-src * does not include data: scheme.

    I noticed PR #9186 proposed a fix (load ghostty wasm via asset URL) but it was closed without being merged.

    Is there any plan to address this? The web terminal is completely broken for non-localhost access.

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