fix(app): agent fallback colors
This commit is contained in:
@@ -57,6 +57,7 @@ import { Binary } from "@opencode-ai/util/binary"
|
||||
import { retry } from "@opencode-ai/util/retry"
|
||||
import { playSound, soundSrc } from "@/utils/sound"
|
||||
import { Worktree as WorktreeState } from "@/utils/worktree"
|
||||
import { agentColor } from "@/utils/agent"
|
||||
|
||||
import { useDialog } from "@opencode-ai/ui/context/dialog"
|
||||
import { useTheme, type ColorScheme } from "@opencode-ai/ui/theme"
|
||||
@@ -1639,7 +1640,7 @@ export default function Layout(props: ParentProps) {
|
||||
if (!user?.agent) return undefined
|
||||
|
||||
const agent = sessionStore.agent.find((a) => a.name === user.agent)
|
||||
return agent?.color
|
||||
return agentColor(user.agent, agent?.color)
|
||||
})
|
||||
|
||||
const hoverMessages = createMemo(() =>
|
||||
|
||||
Reference in New Issue
Block a user