fix(claude): separate skills from slash commands (#1293)

* fix(claude): separate skills from slash commands

* fix(claude): make native skills ready before use

* fix(claude): keep skill commands before attachments

* fix(claude): align skill catalog with launch args

* fix(claude): include launch plugin skills

* fix(claude): use native loaded skill list

* refactor(claude): remove obsolete metadata callback

* fix(claude): wait for skill catalog before draining messages

* fix(claude): cancel deferred startup messages

* fix(claude): bound skill catalog startup probe
This commit is contained in:
SSU-WEI HUANG
2026-08-02 08:49:14 +08:00
committed by GitHub
parent 4683b0cb47
commit 82da539d32
12 changed files with 312 additions and 42 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ export function useSkills(
if (!api || !sessionId) {
throw new Error('Session unavailable')
}
return await api.getSkills(sessionId)
const response = await api.getSkills(sessionId)
if (!response.success) {
throw new Error(response.error ?? 'Failed to load skills')
}
return response
},
enabled: Boolean(api && sessionId),
staleTime: 30_000,