summaryrefslogtreecommitdiff
path: root/internal/lsp/handlers_init.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/lsp/handlers_init.go')
-rw-r--r--internal/lsp/handlers_init.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/lsp/handlers_init.go b/internal/lsp/handlers_init.go
index ac1d566..ba00333 100644
--- a/internal/lsp/handlers_init.go
+++ b/internal/lsp/handlers_init.go
@@ -6,6 +6,7 @@ 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) {
@@ -29,6 +30,10 @@ func (s *Server) handleInitialize(req Request) {
func (s *Server) handleInitialized() {
logging.Logf("lsp ", "client initialized")
+ // Emit an initial tmux heartbeat with provider/model
+ if s.llmClient != nil {
+ _ = tmx.SetStatus(tmx.FormatLLMStartStatus(s.llmClient.Name(), s.llmClient.DefaultModel()))
+ }
}
func (s *Server) handleShutdown(req Request) {