mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user