fix(ci): sort desktop imports and stub skill display in TUI test

Eslint wants @hermes/shared before react, and the slash handler only
passes a display override when command.dispatch includes one.
This commit is contained in:
Brooklyn Nicholson 2026-07-28 04:03:48 -05:00
parent e682a9c0a7
commit 42fc6227f6
2 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,5 @@
import { type MutableRefObject, useCallback, useRef } from 'react'
import { skillInvocationText } from '@hermes/shared'
import { type MutableRefObject, useCallback, useRef } from 'react'
import { getProfiles } from '@/hermes'
import type { Translations } from '@/i18n'

View file

@ -825,7 +825,12 @@ describe('createSlashHandler', () => {
}
if (method === 'command.dispatch') {
return Promise.resolve({ type: 'skill', message: skillMessage, name: 'hermes-agent-dev' })
return Promise.resolve({
type: 'skill',
message: skillMessage,
name: 'hermes-agent-dev',
display: '/hermes-agent-dev'
})
}
return Promise.resolve({})