Skip to content

Conversation

@Megatherium
Copy link

  1. By trimming the return value of tmux split-window we ensure that no newline gets added to self.pane_id which always has the potential for weird behaviour

  2. We're basically "doubly killing" the opencode pane now by first retrieving his PID. Should tmux kill-pane somehow fail an immediate kill should do the trick.

  3. By moving the autocmd from VimLeave to VimLeavePre the command actually fires in case of a e.g. :q!

Description

When having an opencode instance running and you quit out with :q! (before you quit the opencode instance via e.g. Ctrl+c), you are left with an orphaned process that at the same time prevents the spawning of OC instances in ANY nvim instance (with the message "Response decode error: Not Found; Vim:E474: Unidentified byte: Not Found"

Related Issue(s)

#118

1. By trimming the return value of `tmux split-window` we ensure that no
newline gets added to self.pane_id which always has the potential for
weird behaviour

2. We're basically "doubly killing" the opencode pane now by first
retrieving his PID. Should `tmux kill-pane` somehow fail an immediate
`kill` should do the trick.

3. By moving the autocmd from VimLeave to VimLeavePre the command
actually fires in case of a e.g. :q!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant