Crashes on connecting Openrouter Provider #4482

Open
opened 2026-02-16 17:44:19 -05:00 by yindo · 2 comments
Owner

Originally created by @ARIFALIDAWOOD on GitHub (Jan 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Setup

  • Windows 11 Pro Native
  • Warp Terminal CLI

Issue

  • Crashes on trying to connect openrouter provider

First move to background (also I found no way to bring it back to foreground: Warp Terminal CLI) and then crashes

Image

Plugins

oh-my-opencode@3.0.0-beta.1

OpenCode version

1.1.18

Steps to reproduce

  1. Update to the latest 1.1.18
  2. Make sure you're on windows 11 pro native (npm global)
  3. Make sure you're using Warp Terminal CLI
  4. Try connecting openrouter provider key

Screenshot and/or share link

opencode
SyntaxError: Unexpected end of JSON input
    at <parse> (:0)
    at json (unknown)
    at <anonymous> (../sdk/js/src/v2/gen/client/client.gen.ts:167:33)
    at processTicksAndRejections (native:7:39)

Operating System

Windows 11 Pro

Terminal

Warp Terminal CLI

Originally created by @ARIFALIDAWOOD on GitHub (Jan 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ### Setup - Windows 11 Pro Native - Warp Terminal CLI ### Issue - Crashes on trying to connect openrouter provider > First move to background (also I found no way to bring it back to foreground: Warp Terminal CLI) and then crashes <img width="1274" height="369" alt="Image" src="https://github.com/user-attachments/assets/ae94e5c5-9d6b-4c14-962d-916b9f7ab2fb" /> ### Plugins oh-my-opencode@3.0.0-beta.1 ### OpenCode version 1.1.18 ### Steps to reproduce 1. Update to the latest 1.1.18 2. Make sure you're on windows 11 pro native (npm global) 3. Make sure you're using Warp Terminal CLI 4. Try connecting openrouter provider key ### Screenshot and/or share link ``` opencode SyntaxError: Unexpected end of JSON input at <parse> (:0) at json (unknown) at <anonymous> (../sdk/js/src/v2/gen/client/client.gen.ts:167:33) at processTicksAndRejections (native:7:39) ``` ### Operating System Windows 11 Pro ### Terminal Warp Terminal CLI
yindo added the windowsbug labels 2026-02-16 17:44:19 -05:00
Author
Owner

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

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

  • #7311: [FEATURE]: Make OC TUI work on Warp Terminal with command similar to /setup-terminal on Claude Code - reports issues with Warp Terminal CLI where OpenCode TUI goes to background and cannot be brought back to foreground, and suggests a need for terminal-specific setup commands

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #7311: [FEATURE]: Make OC TUI work on Warp Terminal with command similar to /setup-terminal on Claude Code - reports issues with Warp Terminal CLI where OpenCode TUI goes to background and cannot be brought back to foreground, and suggests a need for terminal-specific setup commands Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 9, 2026):

@ARIFALIDAWOOD can u show me output of:

opencode run hello --print-logs

@rekram1-node commented on GitHub (Jan 9, 2026): @ARIFALIDAWOOD can u show me output of: opencode run hello --print-logs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4482