open editor don't tokenize shell command correctly #7317

Open
opened 2026-02-16 18:06:49 -05:00 by yindo · 1 comment
Owner

Originally created by @nenahp on GitHub (Jan 23, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

VISUAL="nvim --cmd 'let g:flatten_wait=1'" opencode

then run "open editor" in opencode
it didn't open tmpfile correctly

Plugins

no

OpenCode version

1.1.26

Steps to reproduce

.

Screenshot and/or share link

.

Operating System

linux

Terminal

kitty

Originally created by @nenahp on GitHub (Jan 23, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ``` VISUAL="nvim --cmd 'let g:flatten_wait=1'" opencode ``` then run "open editor" in opencode it didn't open tmpfile correctly ### Plugins no ### OpenCode version 1.1.26 ### Steps to reproduce . ### Screenshot and/or share link . ### Operating System linux ### Terminal kitty
yindo added the opentuibug labels 2026-02-16 18:06:49 -05:00
Author
Owner

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

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

  • #7749: /editor command fails when VISUAL contains arguments with spaces/quotes (uses the exact same reproduction case: VISUAL="nvim --cmd 'let g:flatten_wait=1'")
  • #4209: EDITOR=nvim environment variable handling with neovim
  • #6023: /editor opens temp files incorrectly
  • #6917: Shell argument parsing and tokenization issues with quotes and spaces

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

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #7749: /editor command fails when VISUAL contains arguments with spaces/quotes (uses the exact same reproduction case: VISUAL="nvim --cmd 'let g:flatten_wait=1'") - #4209: EDITOR=nvim environment variable handling with neovim - #6023: /editor opens temp files incorrectly - #6917: Shell argument parsing and tokenization issues with quotes and spaces Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7317