summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-07-03 07:09:09 -0500
committeradamdottv <[email protected]>2025-07-03 07:09:09 -0500
commit8825cd38113cfd1ac225b147f52b59d9348ab0aa (patch)
treecff39e453059ff44cf08567f9bf7f49cf1c03985 /packages/tui/internal/components
parent3d9a5d9970b8f4ce56fb706f6cfb8745b61e905d (diff)
downloadopencode-8825cd38113cfd1ac225b147f52b59d9348ab0aa.tar.gz
opencode-8825cd38113cfd1ac225b147f52b59d9348ab0aa.zip
feat(tui): unshare command
Diffstat (limited to 'packages/tui/internal/components')
-rw-r--r--packages/tui/internal/components/chat/messages.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/tui/internal/components/chat/messages.go b/packages/tui/internal/components/chat/messages.go
index a0105ec42..05fa30801 100644
--- a/packages/tui/internal/components/chat/messages.go
+++ b/packages/tui/internal/components/chat/messages.go
@@ -309,9 +309,12 @@ func (m *messagesComponent) header(width int) string {
base := styles.NewStyle().Foreground(t.Text()).Background(t.Background()).Render
muted := styles.NewStyle().Foreground(t.TextMuted()).Background(t.Background()).Render
headerLines := []string{}
- headerLines = append(headerLines, util.ToMarkdown("# "+m.app.Session.Title, width-6, t.Background()))
+ headerLines = append(
+ headerLines,
+ util.ToMarkdown("# "+m.app.Session.Title, width-6, t.Background()),
+ )
if m.app.Session.Share.URL != "" {
- headerLines = append(headerLines, muted(m.app.Session.Share.URL))
+ headerLines = append(headerLines, muted(m.app.Session.Share.URL+" /unshare"))
} else {
headerLines = append(headerLines, base("/share")+muted(" to create a shareable link"))
}