The open source coding agent.
TypeScript
fix: remove grok msg
Adam246010822309
diff --git a/packages/tui/internal/tui/tui.go b/packages/tui/internal/tui/tui.goindex 69d0233158d..932c57ad60f 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.Rendermuted := styles.NewStyle().Foreground(t.TextMuted()).Background(t.Background()).Render- highlight := styles.NewStyle().Foreground(t.Accent()).Background(t.Background()).Renderopen := `█▀▀█ █▀▀█ █▀▀ █▀▀▄@@ -989,9 +988,9 @@ func (a Model) home() (string, int, int) {)// Use limit of 4 for vscode, 6 for others- limit := 4+ limit := 6if 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.Sessionif 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.Sessionif 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")