Buffers are still open when i quit kakoune using one session

I’m using one session for everything with kak-lsp -d -s 1 and kak -s 1 -d autostarting with my desktop.

I open a file in a terminal, edit and close with wq. Later i open another file to edit and the previous buffer is still there.

It never closes, i have to close each one with :db

That’s the expected behaviour as the buffers are shared between clients of the same session.

However, if your workflow requires it, you can define a command that closes the current buffer and afterwards the client.