Skip to content

opencode serve UI proxy for HTTPAPI: invalid chunked encoding on / and 401 on site.webmanifest when password is set #25697

@OpeOginni

Description

@OpeOginni

Description

  • Two issues affecting the served web UI when running opencode serve, both for the production proxy and a local preview proxy.
  • Issue A: requests to / fail in the browser with net::ERR_INVALID_CHUNKED_ENCODING 200 (OK), so the page never loads.
  • Issue B: with OPENCODE_SERVER_PASSWORD set, the browser fetch for /site.webmanifest and the PWA icons returns 401 Unauthorized, breaking manifest install/render.

Plugins

none

OpenCode version

Latest Dev as of 9f708e7

Steps to reproduce

  1. Run opencode serve (on the latest dev commit), optionally with OPENCODE_SERVER_PASSWORD.
  2. Open the served page through serve (e.g. http://127.0.0.1:4099/).
  3. Issue A: console shows net::ERR_INVALID_CHUNKED_ENCODING 200 (OK) for /.
  4. Issue B: Network tab shows GET /site.webmanifest returning 401 Unauthorized.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

ghostty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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