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_utils.go | |
| parent | 36c332b4a3deef68c93232416c68ec2b74f108fb (diff) | |
lsp: inject StatusSink to decouple core from tmux package (task 407)
Diffstat (limited to 'internal/lsp/handlers_utils.go')
| -rw-r--r-- | internal/lsp/handlers_utils.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/lsp/handlers_utils.go b/internal/lsp/handlers_utils.go index adc3b7e..4a5bf4a 100644 --- a/internal/lsp/handlers_utils.go +++ b/internal/lsp/handlers_utils.go @@ -13,7 +13,6 @@ import ( "codeberg.org/snonux/hexai/internal/logging" "codeberg.org/snonux/hexai/internal/stats" "codeberg.org/snonux/hexai/internal/textutil" - tmx "codeberg.org/snonux/hexai/internal/tmux" ) type surfaceKind string @@ -198,8 +197,7 @@ func (s *Server) logLLMStats(model string) { minsWin = 0.001 } scopeRPM := float64(scopeReqs) / minsWin - status := tmx.FormatGlobalStatusColored(snap.Global.Reqs, snap.RPM, snap.Global.Sent, snap.Global.Recv, provider, modelName, scopeRPM, scopeReqs, snap.Window) - _ = tmx.SetStatus(status) + s.emitGlobalStatus(snap.Global.Reqs, snap.RPM, snap.Global.Sent, snap.Global.Recv, provider, modelName, scopeRPM, scopeReqs, snap.Window) } } } |
