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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user