Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🔧 chore: update @lobehub/ui version and enhance UpdateAgentPromptInspector styling

Innei4674a76e2ef5
diff --git a/package.json b/package.json
index ab808f2c63f..c55279dbaf5 100644
--- a/package.json
+++ b/package.json
@@ -218,7 +218,7 @@
"@lobehub/icons": "^4.1.0",
"@lobehub/market-sdk": "0.29.2",
"@lobehub/tts": "^4.0.2",
- "@lobehub/ui": "4.33.4",
+ "@lobehub/ui": "^4.33.4",
"@modelcontextprotocol/sdk": "^1.25.3",
"@napi-rs/canvas": "^0.1.88",
"@neondatabase/serverless": "^1.0.2",
diff --git a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx
index 12e830201fb..a5d852c255d 100644
--- a/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx
+++ b/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx
@@ -32,6 +32,8 @@ const styles = createStaticStyles(({ css, cssVar: cv }) => ({
display: flex;
gap: 6px;
align-items: center;
+
+ min-width: 0;
`,
}));
@@ -88,7 +90,14 @@ export const UpdateAgentPromptInspector = memo<
{agent && !isSupervisor && (
<>
<Avatar avatar={agent.avatar ?? undefined} size={18} title={agent.title ?? undefined} />
- <span className={styles.agentName}>{agent.title}</span>
+ <Text
+ className={styles.agentName}
+ ellipsis={{
+ tooltipWhenOverflow: true,
+ }}
+ >
+ {agent.title}
+ </Text>
</>
)}
{/* Show length diff when completed */}
@@ -98,6 +107,7 @@ export const UpdateAgentPromptInspector = memo<
code
color={lengthDiff >= 0 ? cssVar.colorSuccess : cssVar.colorError}
fontSize={12}
+ noWrap
>
{lengthDiff >= 0 ? '+' : ''}
{lengthDiff}
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/index.tsx
index 2a20b2aea87..e961b601834 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/index.tsx
@@ -41,7 +41,7 @@ const Inspectors = memo<InspectorProps>(
const args = safeParseJSON(argsStr);
const partialJson = safeParsePartialJSON(argsStr);
return (
- <Flexbox align={'center'} gap={6} horizontal>
+ <Flexbox align={'center'} allowShrink gap={6} horizontal>
<StatusIndicator intervention={intervention} result={result} />
<CustomInspector
apiName={apiName}