summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tui/cmd')
-rw-r--r--packages/tui/cmd/opencode/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/tui/cmd/opencode/main.go b/packages/tui/cmd/opencode/main.go
index d6c4d3b0e..27e797e8b 100644
--- a/packages/tui/cmd/opencode/main.go
+++ b/packages/tui/cmd/opencode/main.go
@@ -5,6 +5,7 @@ import (
"log/slog"
"os"
"path/filepath"
+ "strings"
"sync"
"time"
@@ -51,7 +52,11 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
- app_, err := app.New(ctx, httpClient)
+ version := Version
+ if version != "dev" && !strings.HasPrefix(Version, "v") {
+ version = "v" + Version
+ }
+ app_, err := app.New(ctx, version, httpClient)
if err != nil {
panic(err)
}