summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-09-19 09:59:47 -0500
committerAdam <[email protected]>2025-09-19 09:59:47 -0500
commit24601082230971717ed6224fc36462426ce43b7b (patch)
treef565b80ea94175c9fde8fc25634f84c7577e00b6 /packages
parent84e8eea52e11e3d16d407c13b9a7d41d6ff6a56f (diff)
downloadopencode-24601082230971717ed6224fc36462426ce43b7b.tar.gz
opencode-24601082230971717ed6224fc36462426ce43b7b.zip
fix: remove grok msg
Diffstat (limited to 'packages')
-rw-r--r--packages/tui/internal/tui/tui.go51
1 files changed, 32 insertions, 19 deletions
diff --git a/packages/tui/internal/tui/tui.go b/packages/tui/internal/tui/tui.go
index 69d023315..932c57ad6 100644
--- a/packages/tui/internal/tui/tui.go
+++ b/packages/tui/internal/tui/tui.go
@@ -954,7 +954,6 @@ func (a Model) home() (string, int, int) {
baseStyle := styles.NewStyle().Foreground(t.Text()).Background(t.Background())
base := baseStyle.Render
muted := styles.NewStyle().Foreground(t.TextMuted()).Background(t.Background()).Render
- highlight := styles.NewStyle().Foreground(t.Accent()).Background(t.Background()).Render
open := `
█▀▀█ █▀▀█ █▀▀ █▀▀▄
@@ -989,9 +988,9 @@ func (a Model) home() (string, int, int) {
)
// Use limit of 4 for vscode, 6 for others
- limit := 4
+ limit := 6
if util.IsVSCode() {
- limit = 2
+ limit = 4
}
showVscode := util.IsVSCode()
@@ -1008,14 +1007,6 @@ func (a Model) home() (string, int, int) {
styles.WhitespaceStyle(t.Background()),
)
- grok := highlight("Grok Code is free for a limited time")
- grok = lipgloss.PlaceHorizontal(
- effectiveWidth,
- lipgloss.Center,
- grok,
- styles.WhitespaceStyle(t.Background()),
- )
-
lines := []string{}
lines = append(lines, "")
lines = append(lines, logoAndVersion)
@@ -1023,8 +1014,6 @@ func (a Model) home() (string, int, int) {
lines = append(lines, cmds)
lines = append(lines, "")
lines = append(lines, "")
- lines = append(lines, grok)
- lines = append(lines, "")
mainHeight := lipgloss.Height(strings.Join(lines, "\n"))
@@ -1219,7 +1208,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
if a.app.Session.ID == "" {
return a, nil
}
- response, err := a.app.Client.Session.Share(context.Background(), a.app.Session.ID, opencode.SessionShareParams{})
+ response, err := a.app.Client.Session.Share(
+ context.Background(),
+ a.app.Session.ID,
+ opencode.SessionShareParams{},
+ )
if err != nil {
slog.Error("Failed to share session", "error", err)
return a, toast.NewErrorToast("Failed to share session")
@@ -1231,7 +1224,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
if a.app.Session.ID == "" {
return a, nil
}
- _, err := a.app.Client.Session.Unshare(context.Background(), a.app.Session.ID, opencode.SessionUnshareParams{})
+ _, err := a.app.Client.Session.Unshare(
+ context.Background(),
+ a.app.Session.ID,
+ opencode.SessionUnshareParams{},
+ )
if err != nil {
slog.Error("Failed to unshare session", "error", err)
return a, toast.NewErrorToast("Failed to unshare session")
@@ -1259,7 +1256,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
var parentSession *opencode.Session
if a.app.Session.ParentID != "" {
parentSessionID = a.app.Session.ParentID
- session, err := a.app.Client.Session.Get(context.Background(), parentSessionID, opencode.SessionGetParams{})
+ session, err := a.app.Client.Session.Get(
+ context.Background(),
+ parentSessionID,
+ opencode.SessionGetParams{},
+ )
if err != nil {
slog.Error("Failed to get parent session", "error", err)
return toast.NewErrorToast("Failed to get parent session")
@@ -1269,7 +1270,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
parentSession = a.app.Session
}
- children, err := a.app.Client.Session.Children(context.Background(), parentSessionID, opencode.SessionChildrenParams{})
+ children, err := a.app.Client.Session.Children(
+ context.Background(),
+ parentSessionID,
+ opencode.SessionChildrenParams{},
+ )
if err != nil {
slog.Error("Failed to get session children", "error", err)
return toast.NewErrorToast("Failed to get session children")
@@ -1317,7 +1322,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
var parentSession *opencode.Session
if a.app.Session.ParentID != "" {
parentSessionID = a.app.Session.ParentID
- session, err := a.app.Client.Session.Get(context.Background(), parentSessionID, opencode.SessionGetParams{})
+ session, err := a.app.Client.Session.Get(
+ context.Background(),
+ parentSessionID,
+ opencode.SessionGetParams{},
+ )
if err != nil {
slog.Error("Failed to get parent session", "error", err)
return toast.NewErrorToast("Failed to get parent session")
@@ -1327,7 +1336,11 @@ func (a Model) executeCommand(command commands.Command) (tea.Model, tea.Cmd) {
parentSession = a.app.Session
}
- children, err := a.app.Client.Session.Children(context.Background(), parentSessionID, opencode.SessionChildrenParams{})
+ children, err := a.app.Client.Session.Children(
+ context.Background(),
+ parentSessionID,
+ opencode.SessionChildrenParams{},
+ )
if err != nil {
slog.Error("Failed to get session children", "error", err)
return toast.NewErrorToast("Failed to get session children")