Skip to content

fix(cli): enable file watcher when attaching to external sessions#305

Open
arbrandes wants to merge 1 commit intofolke:mainfrom
arbrandes:split-watch
Open

fix(cli): enable file watcher when attaching to external sessions#305
arbrandes wants to merge 1 commit intofolke:mainfrom
arbrandes:split-watch

Conversation

@arbrandes
Copy link
Copy Markdown

Description

watch.enable() was only called from terminal.lua when a Neovim terminal job started, so external tmux panes (mux.create = "split" or "window") never triggered :checktime on file changes — files edited by the CLI tool wouldn't auto-reload in Neovim. Calling watch.enable() in the shared session attach path makes all backends behave the same; the call is idempotent, so the existing terminal invocation is unaffected.

`watch.enable()` was only called from `terminal.lua` when a Neovim
terminal job started, so external tmux panes (`mux.create = "split"` or
`"window"`) never triggered `:checktime` on file changes. Enable the
watcher in the shared session attach path so all backends benefit.
@github-actions github-actions Bot added the size/s Small PR (<10 lines changed) label Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant