@@ -10,7 +10,6 @@ import {
1010} from "@opentui/core"
1111import type { CommandContext } from "@opentui/keymap"
1212import { createEffect , createMemo , onMount , createSignal , onCleanup , on , Show , Switch , Match } from "solid-js"
13- import "opentui-spinner/solid"
1413import path from "path"
1514import { fileURLToPath } from "url"
1615import { useLocal } from "../../context/local"
@@ -42,7 +41,6 @@ import type { AssistantMessage, FilePart, UserMessage, Goal } from "@opencode-ai
4241import { Locale } from "../../util/locale"
4342import { errorMessage } from "../../util/error"
4443import { formatDuration } from "../../util/format"
45- import { createColors , createFrames } from "../../ui/spinner"
4644import { useDialog } from "../../ui/dialog"
4745import { DialogProvider as DialogProviderConnect } from "../dialog-provider"
4846import { DialogAlert } from "../../ui/dialog-alert"
@@ -1395,28 +1393,12 @@ export function Prompt(props: PromptProps) {
13951393 return `Ask anything... "${ list ( ) [ store . placeholder % list ( ) . length ] } "`
13961394 } )
13971395
1398- const spinnerDef = createMemo ( ( ) => {
1396+ const spinnerColor = createMemo ( ( ) => {
13991397 const agent =
14001398 status ( ) . type !== "idle"
14011399 ? ( local . agent . list ( ) . find ( ( a ) => a . name === lastUserMessage ( ) ?. agent ) ?? local . agent . current ( ) )
14021400 : local . agent . current ( )
1403- const color = agent ? local . agent . color ( agent . name ) : theme . border
1404- return {
1405- frames : createFrames ( {
1406- color,
1407- style : "blocks" ,
1408- inactiveFactor : 0.6 ,
1409- // enableFading: false,
1410- minAlpha : 0.3 ,
1411- } ) ,
1412- color : createColors ( {
1413- color,
1414- style : "blocks" ,
1415- inactiveFactor : 0.6 ,
1416- // enableFading: false,
1417- minAlpha : 0.3 ,
1418- } ) ,
1419- }
1401+ return agent ? local . agent . color ( agent . name ) : theme . border
14201402 } )
14211403 const maxHeight = createMemo ( ( ) => tuiConfig . prompt ?. max_height ?? Math . max ( 6 , Math . floor ( dimensions ( ) . height / 3 ) ) )
14221404 const moveLabelWidth = createMemo ( ( ) => Math . max ( 12 , Math . min ( 44 , dimensions ( ) . width - 48 ) ) )
@@ -1593,7 +1575,7 @@ export function Prompt(props: PromptProps) {
15931575 < box flexShrink = { 0 } flexDirection = "row" gap = { 1 } >
15941576 < box marginLeft = { 1 } >
15951577 < Show when = { kv . get ( "animations_enabled" , true ) } fallback = { < text fg = { theme . textMuted } > [⋯]</ text > } >
1596- < spinner color = { spinnerDef ( ) . color } frames = { spinnerDef ( ) . frames } interval = { 40 } / >
1578+ < text fg = { spinnerColor ( ) } > ... </ text >
15971579 </ Show >
15981580 </ box >
15991581 < box flexDirection = "row" gap = { 1 } flexShrink = { 0 } >
0 commit comments