opencode upgrade fails with curl showing headers and --remote-header-name cannot be combined #7626

Open
opened 2026-02-16 18:07:46 -05:00 by yindo · 3 comments
Owner

Originally created by @jakoch on GitHub (Jan 26, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

> opencode upgrade

                                   ▄     
  █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
  █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

┌  Upgrade
│
●  Using method: curl
│
●  From 1.1.34 → 1.1.36
│
■  Upgrade failed
│
■  curl: showing headers and --remote-header-name cannot be combined
│  curl: try 'curl --help' or 'curl --manual' for more information
│
│
└  Done

Plugins

No response

OpenCode version

1.1.34

Steps to reproduce

  1. download opencode 1.1.34
  2. run opencode upgrade
  3. enjoy

Screenshot and/or share link

No response

Operating System

Debian 13

Terminal

zsh, xterm-256color

Originally created by @jakoch on GitHub (Jan 26, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ``` > opencode upgrade ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ● Using method: curl │ ● From 1.1.34 → 1.1.36 │ ■ Upgrade failed │ ■ curl: showing headers and --remote-header-name cannot be combined │ curl: try 'curl --help' or 'curl --manual' for more information │ │ └ Done ``` ### Plugins _No response_ ### OpenCode version 1.1.34 ### Steps to reproduce 1. download opencode 1.1.34 2. run `opencode upgrade` 3. enjoy ### Screenshot and/or share link _No response_ ### Operating System Debian 13 ### Terminal zsh, xterm-256color
yindo added the bug label 2026-02-16 18:07:46 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 26, 2026):

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

  • #9934: 命令行执行opencode upgrade升级遇到问题 - Same curl-based upgrade failure with different error message, suggests common root cause in the curl upgrade mechanism

Feel free to ignore if this doesn't address your specific case.

@github-actions[bot] commented on GitHub (Jan 26, 2026): This issue might be a duplicate of existing issues. Please check: - #9934: 命令行执行opencode upgrade升级遇到问题 - Same curl-based upgrade failure with different error message, suggests common root cause in the curl upgrade mechanism Feel free to ignore if this doesn't address your specific case.
Author
Owner

@cravenceiling commented on GitHub (Jan 26, 2026):

What is the output if you run curl -sI -o /dev/null -w "%{http_code}" "https://github.com/anomalyco/opencode/releases/tag/v1.1.36"?

Also, do you have a ~/.curlrc file with something like remote-header-name or something adding the -J flag by default to curl?

@cravenceiling commented on GitHub (Jan 26, 2026): What is the output if you run `curl -sI -o /dev/null -w "%{http_code}" "https://github.com/anomalyco/opencode/releases/tag/v1.1.36"`? Also, do you have a `~/.curlrc` file with something like `remote-header-name` or something adding the `-J` flag by default to curl?
Author
Owner

@jakoch commented on GitHub (Jan 26, 2026):

curl -sI -o /dev/null -w "%{http_code}" "https://github.com/anomalyco/opencode/releases/tag/v1.1.36"
curl: showing headers and --remote-header-name cannot be combined
curl: try 'curl --help' or 'curl --manual' for more information

Yes, i have a ~/.curlrc with

# Use the header-provided filename.
remote-header-name

I guess that's the setting to blame then, right... --head (-I) clashes with --remote-header-name.

@jakoch commented on GitHub (Jan 26, 2026): ``` curl -sI -o /dev/null -w "%{http_code}" "https://github.com/anomalyco/opencode/releases/tag/v1.1.36" curl: showing headers and --remote-header-name cannot be combined curl: try 'curl --help' or 'curl --manual' for more information ``` Yes, i have a ` ~/.curlrc` with ``` # Use the header-provided filename. remote-header-name ``` I guess that's the setting to blame then, right... `--head (-I)` clashes with `--remote-header-name`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7626