Skip to content

Commit ac09711

Browse files
edyedy
authored andcommitted
fix(opencode): replace removed SPINNER_FRAMES with BRAILLE_FRAMES
1 parent 7c2caf4 commit ac09711

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/opencode/src/cli/cmd/run/footer.subagent.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import type { ScrollBoxRenderable } from "@opentui/core"
33
import { useKeyboard } from "@opentui/solid"
44
import { registerOpencodeSpinner } from "@opencode-ai/tui/component/register-spinner"
55
import { Show, createMemo, indexArray } from "solid-js"
6-
import { SPINNER_FRAMES } from "@opencode-ai/tui/component/spinner"
6+
77
import { RunEntryContent, separatorRows } from "./scrollback.writer"
88
import type { FooterSubagentDetail, FooterSubagentTab, RunDiffStyle } from "./types"
99
import type { RunFooterTheme, RunTheme } from "./theme"
1010

1111
registerOpencodeSpinner()
1212

13+
const BRAILLE_FRAMES = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"]
14+
1315
export const SUBAGENT_INSPECTOR_ROWS = 14
1416

1517
function statusColor(theme: RunFooterTheme, status: FooterSubagentTab["status"]) {
@@ -128,7 +130,7 @@ export function RunFooterSubagentBody(props: {
128130
<box width="100%" flexDirection="row" gap={1} paddingBottom={1} flexShrink={0}>
129131
{current().status === "running" ? (
130132
<box flexShrink={0}>
131-
<spinner frames={SPINNER_FRAMES} interval={80} color={statusColor(footer(), current().status)} />
133+
<spinner frames={BRAILLE_FRAMES} interval={80} color={statusColor(footer(), current().status)} />
132134
</box>
133135
) : (
134136
<text fg={statusColor(footer(), current().status)} wrapMode="none" truncate flexShrink={0}>

0 commit comments

Comments
 (0)