Skip to content

Delete buffers after the window has closed#263

Merged
ravitemer merged 3 commits intoravitemer:mainfrom
slg95:cleanup_confirmation_buffers
Jan 15, 2026
Merged

Delete buffers after the window has closed#263
ravitemer merged 3 commits intoravitemer:mainfrom
slg95:cleanup_confirmation_buffers

Conversation

@slg95
Copy link
Copy Markdown
Contributor

@slg95 slg95 commented Jan 5, 2026

Description

After a long session of AI assisted activities, I noticed quite a few hidden buffers still open from MCPHub for all of the confirmation windows. Not a huge performance problem, but it makes it clutters the hidden buffers menus and makes it harder to find the actual hidden buffers I might be looking for. Since these buffers are not used again, it's a bit of a memory leak to not clean them up.

Checklist

  • I've read the contributing guidelines and have adhered to them in this PR
  • I've updated the README and/or relevant docs pages
  • I've run make test to ensure all tests pass
  • I've run make format to format the code
  • I've run make docs to update the vimdoc pages

slg95 added 3 commits January 5, 2026 10:22
THe confirmation buffers are unlisted, but never deleted.
These buffers configured with "bufhidden" "wipe", which should clean
them up after the buffer is hidden anyway. This is just an extra check
to be sure they are cleaned up.
@ravitemer ravitemer merged commit 01b2b04 into ravitemer:main Jan 15, 2026
5 checks passed
@ravitemer
Copy link
Copy Markdown
Owner

Thanks for fixing this!

lattenwald pushed a commit to lattenwald/mcphub.nvim that referenced this pull request Jan 18, 2026
* fix: Delete confirmation window buffers after closing.

THe confirmation buffers are unlisted, but never deleted.

* fix: Delete auth popup window buffers after closing.

* Explicitly delete multiline_input buffers after closing.

These buffers configured with "bufhidden" "wipe", which should clean
them up after the buffer is hidden anyway. This is just an extra check
to be sure they are cleaned up.
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.

2 participants