From e9bad39a7ed224efefe2d21a35a7d27cd25e0879 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Fri, 30 May 2025 14:40:53 -0400 Subject: sync --- internal/tui/components/chat/sidebar.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal') diff --git a/internal/tui/components/chat/sidebar.go b/internal/tui/components/chat/sidebar.go index a4673d958..d6895a164 100644 --- a/internal/tui/components/chat/sidebar.go +++ b/internal/tui/components/chat/sidebar.go @@ -53,7 +53,10 @@ func (m *sidebarCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { func (m *sidebarCmp) View() string { t := theme.CurrentTheme() baseStyle := styles.BaseStyle() - shareUrl := baseStyle.Foreground(t.TextMuted()).Render("https://dev.opencode.ai/share?id=" + m.app.Session.Id) + shareUrl := "" + if m.app.Session.Share != nil { + shareUrl = baseStyle.Foreground(t.TextMuted()).Render(m.app.Session.Share.Url) + } // qrcode := "" // if m.app.Session.ShareID != nil { -- cgit v1.2.3