Skip to content

fix(session-diff): wipe unnamed buffer on tab creation - #563

Merged
sudo-tee merged 1 commit into
mainfrom
fix/562-session-diff-no-name-buffer
Nov 5, 2026
Merged

sudo-tee merged 1 commit into
mainfrom
fix/562-session-diff-no-name-buffer

Conversation

@sudo-tee

@sudo-tee sudo-tee commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Closes #562

Opening the session diff view left a leaked [No Name] buffer on each open. tabnew in M.open (lua/opencode/ui/session_diff.lua) creates a blank buffer that was replaced by the scratch list buffer via nvim_win_set_buf but never wiped, so it lingered as a listed buffer and accumulated across opens.

Set vim.bo.bufhidden = 'wipe' on the tabnew buffer before replacement so it is wiped when hidden.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

🏗️ Architecture check

Checks that require() calls between modules follow the layer rules in scripts/dependency-topology/topology.jsonc (entry → dispatch → services/UI → server/protocols; shared helpers usable everywhere).

Compared origin/main → HEAD.

Before After Δ
Imports breaking layer rules 0 0 +0
Import loops 0 0 +0
Modules in largest loop 0 0 +0
Modules without a layer 0 0 +0

Imports between modules: +0 / -0

✅ No new problems

Run locally: make topology-check

@sudo-tee
sudo-tee merged commit 0dbd52d into main Nov 5, 2026
16 checks passed
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.

leaked [No Name] buffer in session diff

1 participant