Skip to content

fix: only handle global or instance tab-scoped DirChanged events#291

Merged
sudo-tee merged 1 commit intosudo-tee:mainfrom
disrupted:dirchanged-scope
Feb 21, 2026
Merged

fix: only handle global or instance tab-scoped DirChanged events#291
sudo-tee merged 1 commit intosudo-tee:mainfrom
disrupted:dirchanged-scope

Conversation

@disrupted
Copy link
Contributor

this fixes an issue where the plugin would react to unrelated DirChanged events such as window-scoped (e.g. Neogit :lcd).
I believe we should only react to global cwd changes or if it concerns the tabpage where Opencode is used.

@disrupted disrupted marked this pull request as ready for review February 21, 2026 15:27
@sudo-tee
Copy link
Owner

Thanks. I did t thought of that

Great fix again

@sudo-tee sudo-tee merged commit 793dfa2 into sudo-tee:main Feb 21, 2026
5 checks passed
@disrupted disrupted deleted the dirchanged-scope branch February 21, 2026 18:33
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