Skip to content

Conversation

@89iuv
Copy link
Contributor

@89iuv 89iuv commented Jun 25, 2025

I found 2 issues related to the output_panel which are hard to explain but i will give it my best.

Issues

  1. Sometimes the output_pannel would get cleared in between executions, sometimes it would just append new results.
  2. After manually clearing the output_pannel, next executions would have their output truncated.

Investigation

  1. This is really random, my only guess is that sometimes the channel is recreated which also clears the buffer and sometimes it is not. Why this is happening I have no idea.
  2. It seems that after the buffer has been cleared, the terminal channel linked to it will not worked correctly anymore.

Solution
The solution for the second issue seems to be: to not reuse the terminal channel when clearing the buffer.
By using this solution where the channel is declared globally (same as panel) i looks like the first issue is also fixed.

Disclaimer
I am not a lua or neovim expert so this is my effort to brute force a solution for this issue.
I am using lazyvim so this may be related to how lazyvim loads the plugin. Also if lazy loading is non deterministic this could explain the first issue, but again this are just assumptions.

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