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).
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user