Skip to content

Commit c2ce99a

Browse files
fix(tui): remove sidebar product footer Refs #39
1 parent 071092a commit c2ce99a

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

  • packages/tui/src/feature-plugins/sidebar

‎packages/tui/src/feature-plugins/sidebar/footer.tsx‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useTuiPaths } from "../../context/runtime"
66

77
const id = "internal:sidebar-footer"
88

9-
function View(props: { api: TuiPluginApi; sessionID: string }) {
9+
export function SidebarFooter(props: { api: TuiPluginApi; sessionID: string }) {
1010
const paths = useTuiPaths()
1111
const theme = () => props.api.theme.current
1212
const has = createMemo(() =>
@@ -53,7 +53,7 @@ function View(props: { api: TuiPluginApi; sessionID: string }) {
5353
✕
5454
</text>
5555
</box>
56-
<text fg={theme().textMuted}>OpenCode includes free models so you can start immediately.</text>
56+
<text fg={theme().textMuted}>Free models are included so you can start immediately.</text>
5757
<text fg={theme().textMuted}>
5858
Connect from 75+ providers to use other models, including Claude, GPT, Gemini etc
5959
</text>
@@ -68,13 +68,6 @@ function View(props: { api: TuiPluginApi; sessionID: string }) {
6868
<span style={{ fg: theme().textMuted }}>{path().parent}/</span>
6969
<span style={{ fg: theme().text }}>{path().name}</span>
7070
</text>
71-
<text fg={theme().textMuted}>
72-
<span style={{ fg: theme().success }}>•</span> <b>Open</b>
73-
<span style={{ fg: theme().text }}>
74-
<b>Code</b>
75-
</span>{" "}
76-
<span>{props.api.app.version}</span>
77-
</text>
7871
</box>
7972
)
8073
}
@@ -84,7 +77,7 @@ const tui: TuiPlugin = async (api) => {
8477
order: 100,
8578
slots: {
8679
sidebar_footer(_ctx, props) {
87-
return <View api={api} sessionID={props.session_id} />
80+
return <SidebarFooter api={api} sessionID={props.session_id} />
8881
},
8982
},
9083
})

0 commit comments

Comments
 (0)