diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/tui/components/chat/sidebar.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |
