diff options
| author | Dax Raad <[email protected]> | 2025-05-30 14:40:53 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-30 14:40:59 -0400 |
| commit | e9bad39a7ed224efefe2d21a35a7d27cd25e0879 (patch) | |
| tree | f1ae466b4b6bac86a11f56a2e0cca366a1192685 /internal | |
| parent | 42c7880858ee9bec72f3fb71c7f19512a38b0b8e (diff) | |
| download | opencode-e9bad39a7ed224efefe2d21a35a7d27cd25e0879.tar.gz opencode-e9bad39a7ed224efefe2d21a35a7d27cd25e0879.zip | |
sync
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 { |
