The open source coding agent.
TypeScript
fix(tui): visual issue with modal selected items in system theme
adamdottv17c8b914df57
diff --git a/packages/tui/internal/components/dialog/session.go b/packages/tui/internal/components/dialog/session.goindex 6ee8d1ccee8..f38f37bf59d 100644--- a/packages/tui/internal/components/dialog/session.go+++ b/packages/tui/internal/components/dialog/session.go@@ -49,14 +49,14 @@ func (s sessionItem) Render(selected bool, width int) string {// Red background for delete confirmationitemStyle = baseStyle.Background(t.Error()).- Foreground(t.Background()).+ Foreground(t.BackgroundElement()).Width(width).PaddingLeft(1)} else {// Normal selectionitemStyle = baseStyle.Background(t.Primary()).- Foreground(t.Background()).+ Foreground(t.BackgroundElement()).Width(width).PaddingLeft(1)}diff --git a/packages/tui/internal/components/list/list.go b/packages/tui/internal/components/list/list.goindex fe03f5c2895..a7ea3458df6 100644--- a/packages/tui/internal/components/list/list.go+++ b/packages/tui/internal/components/list/list.go@@ -181,7 +181,7 @@ func (s StringItem) Render(selected bool, width int) string {if selected {itemStyle = baseStyle.Background(t.Primary()).- Foreground(t.Background()).+ Foreground(t.BackgroundElement()).Width(width).PaddingLeft(1)} else {