diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-02 14:43:42 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-02 14:43:42 +0200 |
| commit | bd1e20279725c03c0d7244d1bb4425fe07dac787 (patch) | |
| tree | 29c5ca759542c9ec8a74792e8a9ffe4d52669d31 /internal/lsp/handlers_init.go | |
| parent | 36c332b4a3deef68c93232416c68ec2b74f108fb (diff) | |
lsp: inject StatusSink to decouple core from tmux package (task 407)
Diffstat (limited to 'internal/lsp/handlers_init.go')
| -rw-r--r-- | internal/lsp/handlers_init.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/lsp/handlers_init.go b/internal/lsp/handlers_init.go index 0cecc6c..24789f7 100644 --- a/internal/lsp/handlers_init.go +++ b/internal/lsp/handlers_init.go @@ -4,7 +4,6 @@ package lsp import ( "codeberg.org/snonux/hexai/internal" "codeberg.org/snonux/hexai/internal/logging" - tmx "codeberg.org/snonux/hexai/internal/tmux" ) func (s *Server) handleInitialize(req Request) { @@ -31,7 +30,7 @@ func (s *Server) handleInitialized() { logging.Logf("lsp ", "client initialized") // Emit an initial tmux heartbeat with provider/model if client := s.currentLLMClient(); client != nil { - _ = tmx.SetStatus(tmx.FormatLLMStartStatus(client.Name(), client.DefaultModel())) + s.emitLLMStartStatus(client.Name(), client.DefaultModel()) } } |
