Terminal operation error #4589

Closed
opened 2026-02-16 17:44:42 -05:00 by yindo · 14 comments
Owner

Originally created by @cherish-ltt on GitHub (Jan 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

[14:25:59] [LOG] 'bootstrapping'
[14:25:59] [LOG] 'resolveSystemTheme'
[14:25:59] [LOG] '{"type":"home"}'
[14:25:59] [LOG] [
      '#000000', '#990000',
      '#00a600', '#999900',
      '#0000b3', '#b300b3',
      '#00a6b3', '#bfbfbf',
      '#666666', '#e60000',
      '#00d900', '#e6e600',
      '#0000ff', '#e600e6',
      '#00e6e6', '#e6e6e6'
    ]
[14:26:10] [LOG] 'navigate' { type: 'session', sessionID: 'ses_4596a8fcfffey3rirfC5Th0ZtT' }
[14:26:10] [LOG] '{"type":"session","sessionID":"ses_4596a8fcfffey3rirfC5Th0ZtT"}'
[14:26:10] [ERROR] Error: Unexpected end of JSON input
    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)

macos26.2 arm m1pro

Originally created by @cherish-ltt on GitHub (Jan 10, 2026). Originally assigned to: @rekram1-node on GitHub. ``` [14:25:59] [LOG] 'bootstrapping' [14:25:59] [LOG] 'resolveSystemTheme' [14:25:59] [LOG] '{"type":"home"}' [14:25:59] [LOG] [ '#000000', '#990000', '#00a600', '#999900', '#0000b3', '#b300b3', '#00a6b3', '#bfbfbf', '#666666', '#e60000', '#00d900', '#e6e600', '#0000ff', '#e600e6', '#00e6e6', '#e6e6e6' ] [14:26:10] [LOG] 'navigate' { type: 'session', sessionID: 'ses_4596a8fcfffey3rirfC5Th0ZtT' } [14:26:10] [LOG] '{"type":"session","sessionID":"ses_4596a8fcfffey3rirfC5Th0ZtT"}' [14:26:10] [ERROR] Error: Unexpected end of JSON input 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) ``` macos26.2 arm m1pro
yindo closed this issue 2026-02-16 17:44:42 -05:00
Author
Owner

@cherish-ltt commented on GitHub (Jan 10, 2026):

opencode version: v1.1.11
macos terminal (But it was installed https://starship.rs/ Beautify)
The opencode command can open the interface normally, but when sending it after entering the prompt word, an error message will appear indicating that all content has been copied

@cherish-ltt commented on GitHub (Jan 10, 2026): opencode version: v1.1.11 macos terminal (But it was installed `https://starship.rs/` Beautify) The `opencode` command can open the interface normally, but when sending it after entering the prompt word, an error message will appear indicating that all content has been copied
Author
Owner

@cherish-ltt commented on GitHub (Jan 10, 2026):

It can run in the beta version of the app, but often enters prompt words to send, and the agent does not start working. So I tried to use CLI, but got an error message

@cherish-ltt commented on GitHub (Jan 10, 2026): It can run in the beta version of the app, but often enters prompt words to send, and the agent does not start working. So I tried to use CLI, but got an error message
Author
Owner

@paulp-o commented on GitHub (Jan 10, 2026):

I have this issue too (and same mac!)

@paulp-o commented on GitHub (Jan 10, 2026): I have this issue too (and same mac!)
Author
Owner

@paulp-o commented on GitHub (Jan 10, 2026):

@cherish-ltt , I can confirm that one of my custom plugin (my own) caused that issue, when I disable it, it's fixed. I'll have to look into what part of the plugin is causing that issue

@paulp-o commented on GitHub (Jan 10, 2026): @cherish-ltt , I can confirm that one of my custom plugin (my own) caused that issue, when I disable it, it's fixed. I'll have to look into what part of the plugin is causing that issue
Author
Owner

@cherish-ltt commented on GitHub (Jan 10, 2026):

@paulp-o Have you found a solution

@cherish-ltt commented on GitHub (Jan 10, 2026): @paulp-o Have you found a solution
Author
Owner

@paulp-o commented on GitHub (Jan 10, 2026):

@cherish-ltt do you have a plugin installed?

@paulp-o commented on GitHub (Jan 10, 2026): @cherish-ltt do you have a plugin installed?
Author
Owner

@cherish-ltt commented on GitHub (Jan 10, 2026):

I used claude before and had many skills. My terminal also installed the starship beautification tool

♚丶十年戎马征沙场
@.***

@cherish-ltt commented on GitHub (Jan 10, 2026): I used claude before and had many skills. My terminal also installed the starship beautification tool ♚丶十年戎马征沙场 ***@***.***
Author
Owner

@paulp-o commented on GitHub (Jan 10, 2026):

I want to make sure that Claude skills had nothing to do with the issue in my side. Instead, it was the plugin that I made for my workflow.

My plugin was sending corrupted JSON-RPC stream to OpenCode. After fixing this, the issue is now resolved.

@paulp-o commented on GitHub (Jan 10, 2026): I want to make sure that Claude skills had nothing to do with the issue in my side. Instead, it was the plugin that I made for my workflow. My plugin was sending corrupted JSON-RPC stream to OpenCode. After fixing this, the issue is now resolved.
Author
Owner

@ThewindMom commented on GitHub (Jan 10, 2026):

Same here, a malformed skill fle was causing opencode to crash during startup/initialization, which then cascaded into weird states. Because OpenCode initially reads .claude . This can be more gracefully skipped, i will add that try catch block.

@ThewindMom commented on GitHub (Jan 10, 2026): Same here, a malformed skill fle was causing opencode to crash during startup/initialization, which then cascaded into weird states. Because OpenCode initially reads .claude . This can be more gracefully skipped, i will add that try catch block.
Author
Owner

@cherish-ltt commented on GitHub (Jan 10, 2026):

@ThewindMom ,Thank you very much. How should I fix the skill.md file before compiling the new version

@cherish-ltt commented on GitHub (Jan 10, 2026): @ThewindMom ,Thank you very much. How should I fix the `skill.md` file before compiling the new version
Author
Owner

@ThewindMom commented on GitHub (Jan 11, 2026):

With the new version you dont need to as it automatically parses it right. If you want to use this current version which does not have it merged then you would need to set e.g. a "..." if the description or whatsoever contains special characters , e.g. a ":"

@ThewindMom commented on GitHub (Jan 11, 2026): With the new version you dont need to as it automatically parses it right. If you want to use this current version which does not have it merged then you would need to set e.g. a "..." if the description or whatsoever contains special characters , e.g. a ":"
Author
Owner

@cherish-ltt commented on GitHub (Jan 11, 2026):

@ThewindMom I tried the following, but still got an error. I saw that the latest v1.1.2 has not been merged yet.

---
name: "code-simplifier",
description: "code-simplifier..."
---

Should it be changed to

---
name":"code-simplifier,
description":"code-simplifier...
---
@cherish-ltt commented on GitHub (Jan 11, 2026): @ThewindMom I tried the following, but still got an error. I saw that the latest v1.1.2 has not been merged yet. ``` --- name: "code-simplifier", description: "code-simplifier..." --- ``` Should it be changed to ``` --- name":"code-simplifier, description":"code-simplifier... --- ```
Author
Owner

@ThewindMom commented on GitHub (Jan 11, 2026):

Its just that somewhere there is a special character and that needs to be deleted. Atleast that was the case for me.

@ThewindMom commented on GitHub (Jan 11, 2026): Its just that somewhere there is a special character and that needs to be deleted. Atleast that was the case for me.
Author
Owner

@lshariprasad commented on GitHub (Jan 11, 2026):

  1. Disable Claude skills temporarily:
  • Move ~/.claude/ folder contents to backup
  • Or rename skill .md files
  • Restart OpenCode CLI
  1. Fix skill YAML frontmatter:

name: "code-simplifier"
description: "Simplifies code..."

  • Add quotes around values with : or special chars
  • Use ... for descriptions with colons
  1. Wait for update:
  • PR #7684 adds try-catch for malformed skills
  • Update to next OpenCode version after v1.1.12

Test with opencode command after fixes.

Then it's Work 😄

@lshariprasad commented on GitHub (Jan 11, 2026): 1. Disable Claude skills temporarily: - Move `~/.claude/` folder contents to backup - Or rename skill `.md` files - Restart OpenCode CLI 2. Fix skill YAML frontmatter: name: "code-simplifier" description: "Simplifies code..." - Add quotes around values with `:` or special chars - Use `...` for descriptions with colons 3. Wait for update: - PR #7684 adds try-catch for malformed skills - Update to next OpenCode version after v1.1.12 Test with `opencode` command after fixes. Then it's Work 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4589