Skip to content

Opencode Desktop error with nushell as default shell #8716

@fraluc06

Description

@fraluc06

Description

When I start the desktop version of Opencode, I receive this message: Error: Failed to spawn OpenCode Server. Logs:
[STDERR] Error: nu::parser::parse_mismatch
[STDERR]
[STDERR] x Parse mismatch during operation.
[STDERR] ,-[source:1:58]
[STDERR] 1 | "/Applications/OpenCode.app/Contents/MacOS/opencode-cli" serve --port 53854
[STDERR] : ^^|^^
[STDERR] : -- expected operator [STDERR] ----
[STDERR]

zu@tauri://localhost/assets/index-D-5zzoZR.js:2:11977
@tauri://localhost/assets/index-D-5zzoZR.js:2:4664

This issue wasadded I think after 1.1.20 (or near that version). Prior to that, even with nushell as default shell, the desktop app worked fine

Plugins

No response

OpenCode version

1.1.21

Steps to reproduce

  1. Set nushell as default shell
  2. Reboot device
  3. Open Opencode Desktop

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates 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