Skip to content
Closed
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
7 changes: 6 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 @@ -1001,7 +1001,12 @@ export function Prompt(props: PromptProps) {
<box flexShrink={0} flexDirection="row" gap={1}>
<box marginLeft={1}>
<Show when={kv.get("animations_enabled", true)} fallback={<text fg={theme.textMuted}>[⋯]</text>}>
<spinner color={spinnerDef().color} frames={spinnerDef().frames} interval={40} />
<Show
when={kv.get("busy_indicator_style", "dynamic") === "static"}
fallback={<spinner color={spinnerDef().color} frames={spinnerDef().frames} interval={40} />}
>
<text fg={theme.info}>[currently busy]</text>
</Show>
</Show>
</box>
<box flexDirection="row" gap={1} flexShrink={0}>
Expand Down
10 changes: 10 additions & 0 deletions packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export function Session() {
const [showScrollbar, setShowScrollbar] = kv.signal("scrollbar_visible", false)
const [diffWrapMode, setDiffWrapMode] = createSignal<"word" | "none">("word")
const [animationsEnabled, setAnimationsEnabled] = kv.signal("animations_enabled", true)
const [busyIndicatorStyle, setBusyIndicatorStyle] = kv.signal<"dynamic" | "static">("busy_indicator_style", "dynamic")

const wide = createMemo(() => dimensions().width > 120)
const sidebarVisible = createMemo(() => {
Expand Down Expand Up @@ -579,6 +580,15 @@ export function Session() {
dialog.clear()
},
},
{
title: busyIndicatorStyle() === "dynamic" ? "Use static busy indicator" : "Use dynamic busy indicator",
value: "session.toggle.busy_style",
category: "Session",
onSelect: (dialog) => {
setBusyIndicatorStyle((prev) => (prev === "dynamic" ? "static" : "dynamic"))
dialog.clear()
},
},
{
title: "Page up",
value: "session.page.up",
Expand Down