Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export type PromptProps = {
workspaceID?: string
visible?: boolean
disabled?: boolean
showUsage?: boolean
onSubmit?: () => void
ref?: (ref: PromptRef | undefined) => void
hint?: JSX.Element
Expand Down Expand Up @@ -1221,7 +1222,7 @@ export function Prompt(props: PromptProps) {
<Switch>
<Match when={store.mode === "normal"}>
<Switch>
<Match when={usage()}>
<Match when={props.showUsage !== false && usage()}>
{(item) => (
<text fg={theme.textMuted} wrapMode="none">
{[item().context, item().cost].filter(Boolean).join(" · ")}
Expand Down
1 change: 1 addition & 0 deletions packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,7 @@ export function Session() {
visible={visible()}
ref={bind}
disabled={disabled()}
showUsage={!sidebarVisible()}
onSubmit={() => {
toBottom()
}}
Expand Down