Skip to content

[BUG] opencode web: Error: The response redirected too many times #7622

@e792a8

Description

@e792a8

Description

When running opencode web, the web interface displays the following error:

{"name":"UnknownError","data":{"message":"Error: The response redirected too many times. For more information, pass `verbose: true` in the second argument to fetch()"}}

This error appears to occur when connecting to OpenCode server from the web interface.

Steps to Reproduce

  1. Run opencode web
  2. Open the web interface in browser
  3. The error is displayed on the page

OpenCode Version

1.0.152

Environment

  • OS: Linux
  • Browser: Chrome (based on error format similar to JSON error responses)
  • Command: opencode web

Context

This appears to be a redirect loop occurring between the web client and OpenCode server. The error message suggests using verbose: true for debugging, but this is not a standard JavaScript fetch() option - it appears to be a custom OpenCode feature that may not be documented.

Related Issues

Notes

The error persists even after the fix mentioned in #6277, suggesting either:

  1. The fix was not backported or regressed
  2. This is a different underlying issue causing similar symptoms
  3. The redirect loop detection logic needs improvement or better error messaging

The verbose: true suggestion in the error message indicates there may be additional debugging options available, but users are not aware of them. If such options exist, they should be documented.

Metadata

Metadata

Assignees

Labels

webRelates 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