wip: refactoring tui

This commit is contained in:
adamdottv
2025-06-02 13:33:05 -05:00
parent 2958c6b53c
commit ca87b2806f
6 changed files with 1 additions and 177 deletions

View File

@@ -10,7 +10,6 @@ import (
"github.com/sst/opencode/internal/tui/app"
"github.com/sst/opencode/internal/tui/styles"
"github.com/sst/opencode/internal/tui/theme"
"github.com/sst/opencode/internal/version"
)
type SendMsg struct {
@@ -97,7 +96,7 @@ func logo(width int) string {
versionText := baseStyle.
Foreground(t.TextMuted()).
Render(version.Version)
Render("v0.0.1") // TODO: get version from server
return baseStyle.
Bold(true).

View File

@@ -145,9 +145,6 @@ func formatTokensAndCost(tokens float32, contextWindow float32, cost float32) st
func (m statusCmp) View() string {
t := theme.CurrentTheme()
// modelID := config.Get().Agents[config.AgentPrimary].Model
// model := models.SupportedModels[modelID]
// Initialize the help widget
status := getHelpWidget("")