Skip to content

Commit c1d0708

Browse files
committed
fix(cli): enable file watch for external sessions to ensure buffer reload
1 parent c2bdf8c commit c1d0708

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/sidekick/cli/session/init.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,12 @@ function M.attach(session)
191191
session:start()
192192
end
193193
M._attached[session.id] = session
194+
195+
-- Enable watch for any attached session (not just terminal)
196+
if Config.cli.watch then
197+
require("sidekick.cli.watch").enable()
198+
end
199+
194200
Util.emit("SidekickCliAttach", { id = session.id })
195201
return session
196202
end

0 commit comments

Comments
 (0)