Skip to content

bug: Terminal buffers are not detected when sending a prompt. #222

@Calin125

Description

@Calin125

Did you check docs and existing issues?

  • I have read all the sidekick.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of sidekick.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.12

Operating system/version

MacOS Mojave

Describe the bug

When sending a prompt, some buffers such as terminal buffers are not listed/available to be sent to a sidekick instance. It would be good to be able to send terminal logs and outputs alongside a prompt.

Image

Steps To Reproduce

  1. Open a terminal buffer.
  2. Send a prompt and select buffers to send with the prompt.

Expected Behavior

Should send the last terminal output limited to.a certain number of characters to avoid overloading the context window alongside the prompt.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/sidekick.nvim", opts = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions