diff --git a/package.json b/package.json
index abef5cf..4cd7997 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@hanzo/build",
- "version": "0.2.135",
+ "version": "0.2.136",
"type": "module",
"license": "Apache-2.0 OR MIT",
"description": "Hanzo Build — say what you want, watch it built, deployed and running. The builder as a component, mounted by the Hanzo app at hanzo.ai.",
diff --git a/src/customize/roles.tsx b/src/customize/roles.tsx
index ef4b429..8e76090 100644
--- a/src/customize/roles.tsx
+++ b/src/customize/roles.tsx
@@ -19,7 +19,7 @@ import { SizableText, XStack, YStack } from '@hanzo/gui'
import { useI18n } from '@hanzo/i18n/react'
import { Check } from '@hanzogui/lucide-icons-2'
import { Button } from '@hanzo/ui'
-import { useEffect, useMemo, useState } from 'react'
+import { Component, useEffect, useMemo, useState, type ReactNode } from 'react'
import { active, brand, tool } from '../api/skills.ts'
import { toggle, type Tool } from '../api/tools.ts'
@@ -35,11 +35,26 @@ interface Notice {
error?: boolean
}
+/** A card that suggests and never gets in the way: one that cannot be drawn leaves the page as it was. */
+class Quiet extends Component<{ children: ReactNode }, { failed: boolean }> {
+ state = { failed: false }
+ static getDerivedStateFromError() {
+ return { failed: true }
+ }
+ render() {
+ return this.state.failed ? null : this.props.children
+ }
+}
+
/** Drawn only where the builder's host and settings are mounted, so a chat drawn without them draws nothing. */
export function Roles({ first = false }: { first?: boolean }) {
const hosted = useHosted()
const state = usePrefs(false)
- return hosted && state ? : null
+ return hosted && state ? (
+
+
+
+ ) : null
}
function Suggest({ first, state }: { first: boolean; state: PrefState }) {