fix(ui): lead with extension description, shorten HTTP/SSE transport label (#9653)

Signed-off-by: Jeremy Dawes <jeremy@jezweb.net>
Signed-off-by: Douwe M Osinga <douwe@sidewalklabs.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Douwe M Osinga <douwe@sidewalklabs.com>
This commit is contained in:
Jeremy Dawes
2026-06-17 02:59:59 +08:00
committed by GitHub
parent ec453a3926
commit e0492d1e51
@@ -154,9 +154,9 @@ export function getSubtitle(config: ExtensionConfig) {
}
case 'sse':
case 'streamable_http': {
const prefix = `${config.type.toUpperCase().replace('_', ' ')} extension`;
const label = config.type === 'sse' ? 'SSE' : 'HTTP';
return {
description: `${prefix}${config.description ? ': ' + config.description : ''}`,
description: config.description ? `${label}: ${config.description}` : `${label} extension`,
command: config.uri || null,
};
}