From 1f20117b3359f4f7d587f8518dc8dbbcb2def6a3 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 25 Sep 2026 11:26:50 -0500 Subject: [PATCH] fix(desktop): keep /bg's local action spec canonical over the catalog The salvaged /background spec named the alias as canonical; the Python registry's canonical is bg, so the catalog's exec placeholder (and the canonical lookup) missed the local action and would have fallen through to slash.exec. Name the spec /bg with /background as the alias, matching how /btw sits in the local table. Also drops the /journey and /stop exec assertions from the salvage (both contradict main's current routing). --- apps/desktop/src/lib/desktop-slash-commands.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/desktop/src/lib/desktop-slash-commands.ts b/apps/desktop/src/lib/desktop-slash-commands.ts index d8aa091050..844cadcb2e 100644 --- a/apps/desktop/src/lib/desktop-slash-commands.ts +++ b/apps/desktop/src/lib/desktop-slash-commands.ts @@ -267,19 +267,17 @@ const DESKTOP_COMMAND_SPECS: readonly DesktopCommandSpec[] = [ surface: action('btw'), argumentMode: 'text' }, - // /background must be an action (prompt.background RPC — the TUI's path), - // not exec: the slash worker's HermesCLI prints the completion from a - // fire-and-forget thread after process_command already returned, past the - // worker's stdout capture window, so the result never reached the desktop - // conversation that started the task (#97635). + // /bg (alias /background) must be an action (prompt.background RPC — the + // TUI's path), not exec: the slash worker's HermesCLI prints the completion + // from a fire-and-forget thread after process_command already returned, + // past the worker's stdout capture window, so the result never reached the + // desktop conversation that started the task (#97635, #57444). { - name: '/background', + name: '/bg', description: 'Run a prompt in a background session', - aliases: ['/bg'], + aliases: ['/background'], surface: action('background'), argumentMode: 'text' - }, - argumentMode: 'text' }, { name: '/pet',