From 69e0d1c8c6034f92f247a94c92c129d8a0264b8f Mon Sep 17 00:00:00 2001 From: kev1n77 Date: Tue, 8 Sep 2026 22:59:30 +0800 Subject: [PATCH] fix(skills): align discovery, source selection, and picker behavior --- .../ui/src/components/Listbox/Listbox.tsx | 6 +- .../opencode-config-assets-adapter-design.md | 7 + .../technical/tauri-command-map.json | 4 +- src/apps/desktop/AGENTS.md | 2 + src/apps/desktop/src/api/skill_api.rs | 73 +- src/crates/assembly/core/AGENTS.md | 6 + .../tools/implementations/skill_tool.rs | 64 +- .../tools/implementations/skills/mod.rs | 2 +- .../tools/implementations/skills/registry.rs | 619 ++++++++--------- .../skills/registry/discovery.rs | 645 ++++++++++++++++++ .../tools/implementations/skills/types.rs | 2 +- .../execution/agent-runtime/src/prompt.rs | 1 + .../execution/agent-runtime/src/skills/mod.rs | 2 +- .../agent-runtime/src/skills/types.rs | 32 + .../skill_contracts.rs | 18 + .../src/app/scenes/skills/SkillsScene.scss | 10 + .../src/app/scenes/skills/SkillsScene.tsx | 11 +- .../skills/hooks/useInstalledSkills.test.tsx | 16 +- .../scenes/skills/hooks/useInstalledSkills.ts | 14 +- .../components/ChatContextPicker.scss | 32 + .../components/ChatContextPicker.tsx | 23 +- .../ChatContextPickerOverlay.test.tsx | 23 +- .../src/flow_chat/components/ChatInput.tsx | 43 +- .../components/RichTextInput.test.tsx | 14 +- .../flow_chat/components/RichTextInput.tsx | 10 +- .../hooks/useResolvedModeSkills.test.tsx | 6 +- .../flow_chat/hooks/useResolvedModeSkills.ts | 15 +- .../flow_chat/utils/chatInputQuickSkills.ts | 2 +- .../utils/skillPromptReference.test.ts | 17 + .../flow_chat/utils/skillPromptReference.ts | 26 +- .../api/service-api/ConfigAPI.test.ts | 23 + .../api/service-api/ConfigAPI.ts | 35 + .../src/infrastructure/config/types/index.ts | 13 + src/web-ui/src/locales/en-US/flow-chat.json | 2 + .../src/locales/en-US/scenes/skills.json | 4 +- src/web-ui/src/locales/zh-CN/flow-chat.json | 2 + .../src/locales/zh-CN/scenes/skills.json | 4 +- src/web-ui/src/locales/zh-TW/flow-chat.json | 2 + .../src/locales/zh-TW/scenes/skills.json | 4 +- 39 files changed, 1413 insertions(+), 421 deletions(-) create mode 100644 src/crates/assembly/core/src/agentic/tools/implementations/skills/registry/discovery.rs diff --git a/design-system/packages/ui/src/components/Listbox/Listbox.tsx b/design-system/packages/ui/src/components/Listbox/Listbox.tsx index 3732f58337..c9ff848abd 100644 --- a/design-system/packages/ui/src/components/Listbox/Listbox.tsx +++ b/design-system/packages/ui/src/components/Listbox/Listbox.tsx @@ -215,6 +215,7 @@ export const ListboxOption = forwardRef( metadata, selected = false, tabIndex = -1, + title, value, ...props }, ref) { @@ -234,6 +235,7 @@ export const ListboxOption = forwardRef( ref={ref} role="option" tabIndex={tabIndex} + title={title} type="button" > {leading !== undefined && leading !== null && ( @@ -242,7 +244,7 @@ export const ListboxOption = forwardRef( )} - {children} + {children} {description !== undefined && description !== null && ( {description} @@ -250,7 +252,7 @@ export const ListboxOption = forwardRef( )} {metadata !== undefined && metadata !== null && ( - {metadata} + {metadata} )}