feat: 为 project 级 skill 添加黄色 [local] 标签区分显示

在斜杠命令列表和 SkillsMenu 中,对 projectSettings/localSettings
来源的 skill 显示黄色 [local] 标签,方便区分项目级和用户级技能。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-06 14:11:01 +08:00
parent ca630488c6
commit dd2bd12626
3 changed files with 37 additions and 2 deletions

View File

@@ -163,7 +163,11 @@ const SuggestionItemRow = memo(function SuggestionItemRow({
<Text color={textColor} dimColor={shouldDim}>
{paddedDisplayText}
</Text>
{tagText ? <Text dimColor>{tagText}</Text> : null}
{tagText ? (
<Text color={item.tag === 'local' ? 'yellow' : undefined} dimColor={item.tag !== 'local'}>
{tagText}
</Text>
) : null}
<Text
color={isSelected ? 'suggestion' : undefined}
dimColor={!isSelected}