feat(core,cli): prioritize summary for topics (#24608) (#24609)

This commit is contained in:
Abhijit Balaji
2026-04-03 12:26:38 -04:00
committed by A.K.M. Adib
parent f86adbbccf
commit a75d461458
3 changed files with 42 additions and 45 deletions
@@ -26,19 +26,20 @@ export const isTopicTool = (name: string): boolean =>
export const TopicMessage: React.FC<TopicMessageProps> = ({ args }) => {
const rawTitle = args?.[TOPIC_PARAM_TITLE];
const title = typeof rawTitle === 'string' ? rawTitle : undefined;
const rawIntent =
args?.[TOPIC_PARAM_STRATEGIC_INTENT] || args?.[TOPIC_PARAM_SUMMARY];
const intent = typeof rawIntent === 'string' ? rawIntent : undefined;
const rawDescription =
args?.[TOPIC_PARAM_SUMMARY] || args?.[TOPIC_PARAM_STRATEGIC_INTENT];
const description =
typeof rawDescription === 'string' ? rawDescription : undefined;
return (
<Box flexDirection="row" marginLeft={2} flexWrap="wrap">
<Text color={theme.text.primary} bold wrap="truncate-end">
{title || 'Topic'}
{intent && <Text>: </Text>}
{description && <Text>: </Text>}
</Text>
{intent && (
{description && (
<Text color={theme.text.secondary} wrap="wrap">
{intent}
{description}
</Text>
)}
</Box>