anomalyco / anomalyco/opencode

tui: UnsupportedContentType crash

Open
#50,004 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Summary

The OpenCode TUI crashed with an UnsupportedContentType error during normal operation.

Environment

  • opencode version: 2.0.10
  • OS: Linux 6.8.0-139-generic (x86_64)
  • Terminal: Orca 1.4.199 (TERM=xterm-256color, COLORTERM=truecolor)
  • Shell: /bin/bash
  • Install/channel: latest release
  • Active plugins: gentle-logo.tsx (TUI plugin)

Reproduction

  1. Run opencode in the TUI
  2. TUI crashes with UnsupportedContentType

Expected Behavior

TUI operates normally without crashing.

Actual Behavior

TUI crashes with the following error:

ClientError: UnsupportedContentType
    at S (/$bunfs/root/chunk-ar61a8at.js:13:25549)
    at async <anonymous> (/$bunfs/root/chunk-ar61a8at.js:2:912)
    at processTicksAndRejections (native:7:39)

Additional Context

  • The crash occurred during normal TUI usage.
  • Prior to this session, two TUI plugins (opencode-subagent-statusline and a literal <PORTABLE_PATH> placeholder) were failing with NpmInstallFailedError due to peer dependency conflicts with @opencode/plugin@2.0.10. Those entries have since been removed from config.
  • The UnsupportedContentType error may be related to the TUI receiving an unexpected response content type from the background service or an API call.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash while running opencode in the TUI with the reported Linux, terminal, shell, version, and plugin context. Trace the TUI or background-service request that produces UnsupportedContentType; done means normal TUI operation without the crash, with a regression test if an existing test location is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.