diff options
| author | adamdottv <[email protected]> | 2025-05-30 08:29:37 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-30 08:29:37 -0500 |
| commit | 9bf024f8bee8ed94218bb492f42639e411ed752e (patch) | |
| tree | 48755fd42eaa4272f4752ff6cef2f9c98f0a94d6 /internal/tui/components/chat | |
| parent | 189d0e5fb2fc728c639952dd17fef1abdf251c18 (diff) | |
| download | opencode-9bf024f8bee8ed94218bb492f42639e411ed752e.tar.gz opencode-9bf024f8bee8ed94218bb492f42639e411ed752e.zip | |
wip: refactoring tui
Diffstat (limited to 'internal/tui/components/chat')
| -rw-r--r-- | internal/tui/components/chat/sidebar.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/internal/tui/components/chat/sidebar.go b/internal/tui/components/chat/sidebar.go index 4a85784fc..4e77c75b8 100644 --- a/internal/tui/components/chat/sidebar.go +++ b/internal/tui/components/chat/sidebar.go @@ -9,6 +9,7 @@ import ( "github.com/charmbracelet/lipgloss" "github.com/sst/opencode/internal/config" "github.com/sst/opencode/internal/tui/app" + "github.com/sst/opencode/internal/tui/components/qr" "github.com/sst/opencode/internal/tui/state" "github.com/sst/opencode/internal/tui/styles" "github.com/sst/opencode/internal/tui/theme" @@ -52,6 +53,11 @@ func (m *sidebarCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) { func (m *sidebarCmp) View() string { baseStyle := styles.BaseStyle() + qrcode := "" + if m.app.Session.ShareID != nil { + url := "https://dev.opencode.ai/share?id=" + qrcode, _, _ = qr.Generate(url + m.app.Session.Id) + } return baseStyle. Width(m.width). @@ -64,9 +70,7 @@ func (m *sidebarCmp) View() string { " ", m.sessionSection(), " ", - lspsConfigured(m.width), - " ", - m.modifiedFiles(), + qrcode, ), ) } |
