fix: use opencode skills as source of truth
This commit is contained in:
@@ -6,6 +6,7 @@ import { ScrollableOverlay } from '@/components/ui/ScrollableOverlay';
|
||||
interface SkillInfo {
|
||||
name: string;
|
||||
scope: string;
|
||||
source?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -111,6 +112,7 @@ export const SkillAutocomplete = React.forwardRef<SkillAutocompleteHandle, Skill
|
||||
|
||||
const renderSkill = (skill: SkillInfo, index: number) => {
|
||||
const isProject = skill.scope === 'project';
|
||||
const source = skill.source || 'opencode';
|
||||
return (
|
||||
<div
|
||||
key={`${skill.name}-${skill.scope}`}
|
||||
@@ -135,6 +137,9 @@ export const SkillAutocomplete = React.forwardRef<SkillAutocompleteHandle, Skill
|
||||
)}>
|
||||
{skill.scope}
|
||||
</span>
|
||||
<span className="text-[10px] leading-none uppercase font-bold tracking-tight px-1.5 py-1 rounded border flex-shrink-0 bg-[var(--surface-muted)] text-muted-foreground border-[var(--interactive-border)]/60">
|
||||
{source}
|
||||
</span>
|
||||
</div>
|
||||
{skill.description && (
|
||||
<div className="typography-meta text-muted-foreground mt-0.5 truncate">
|
||||
|
||||
Reference in New Issue
Block a user