From 42fc6227f6b95a09636cdd5e9fe2692b3869c8f3 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Tue, 28 Jul 2026 04:03:48 -0500 Subject: [PATCH] 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. --- .../src/app/session/hooks/use-prompt-actions/slash.ts | 3 +-- ui-tui/src/__tests__/createSlashHandler.test.ts | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/slash.ts b/apps/desktop/src/app/session/hooks/use-prompt-actions/slash.ts index ccbdac0c4086..ad30e30cae67 100644 --- a/apps/desktop/src/app/session/hooks/use-prompt-actions/slash.ts +++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/slash.ts @@ -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' diff --git a/ui-tui/src/__tests__/createSlashHandler.test.ts b/ui-tui/src/__tests__/createSlashHandler.test.ts index b5949362add8..d4c8f6c44cec 100644 --- a/ui-tui/src/__tests__/createSlashHandler.test.ts +++ b/ui-tui/src/__tests__/createSlashHandler.test.ts @@ -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({})