Skip to content

bug(desktop): /goal with newline returns empty slash command #41323

Closed

Description

@Songraf

Bug Description

When typing the /goal slash command with a multi-line description (using Enter to insert a newline) in Hermes Desktop, the app returns an empty slash command error instead of processing the goal. The same command works correctly in the CLI and in Telegram.

Steps to Reproduce

  1. Open Hermes Desktop (connected to a remote gateway).
  2. In the chat composer type:
    /goal Write a Python script
    that prints Hello World
    
    (press Enter after “script” to create a newline).
  3. Send the message.
  4. Observe the response: empty slash command.

Expected Behavior

The /goal command should handle multi-line strings in the description and successfully set the goal, identical to the behavior observed in the CLI and Telegram gateway.

Actual Behavior

Desktop sends empty slash command and ignores the goal text after the newline.

Environment

  • Hermes Agent version: 0.16.0 (Docker)
  • Hermes Desktop version: latest (connected to remote backend)
  • Operating System: Windows 11
  • Connection mode: Remote gateway (HERMES_DESKTOP_REMOTE_URL)

Debug Report (optional)

You can generate a debug report with:

hermes debug share

and attach the generated link here.

Related Issues

  • No known open issues match this behavior (searched GitHub with multiple keywords, see below).

Search performed (to avoid duplicates)

site:github.com/NousResearch/hermes-agent/issues /goal newline
site:github.com/NousResearch/hermes-agent/issues /goal desktop
site:github.com/NousResearch/hermes-agent/issues empty slash command
site:github.com/NousResearch/hermes-agent/issues /goal bug

No matching open or closed issues were found.

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    on Jun 7, 2026
  2. SoftologyPro commented on Jun 9, 2026

    @SoftologyPro

    Agreed, please add support for multi-line /goal in the UI the same as the CLI supports.
    A workaround is to convert your multi-line goal into a single line, but it would be nice for the UI to behave like the CLI.

  3. Zixim commented on Jun 26, 2026

    @Zixim

    /plan has the exact same bug

  4. yogafire1 commented on Jun 27, 2026

    @yogafire1

    happens to me too on /learn command

  5. added
    comp/desktopElectron desktop app (apps/desktop/*)
    comp/dashboardWeb dashboard / control panel UI (dashboard/, landing)
    P2Medium — degraded but workaround exists
    and removed
    P3Low — cosmetic, nice to have
    on Jun 27, 2026
  6. alt-glitch commented on Jun 27, 2026

    @alt-glitch

    This was generated by AI during triage.

    This is the canonical thread for the multi-line slash-command parse bug in Hermes Desktop/Web (newline in /goal//plan//learn args -> 'empty slash command', args silently dropped). Open fix PRs targeting this: #41522 and #45606 (both add a dotAll/newline-matching regex in chat-runtime.ts + slashExec.ts). Related closed work: #41384 (consolidated into #41522), #43476, #48848. Not a duplicate — keeping this open as the cluster anchor.

  7. added a commit that references this issue on Jul 2, 2026
    63354ed
  8. added a commit that references this issue on Jul 2, 2026
    fb44b51
  9. 4 remaining items

  10. added a commit that references this issue on Jul 5, 2026
    78bab09
  11. added 2 commits that reference this issue on Jul 8, 2026
    a07b8de
    858b4b9
  12. added 2 commits that reference this issue on Jul 13, 2026
    d9978a7
    389e367
  13. added 2 commits that reference this issue on Jul 21, 2026
    ed7d827
    ca6b97f
  14. added 2 commits that reference this issue on Aug 7, 2026
    7cd5677
    a7c037c
  15. added 2 commits that reference this issue on Sep 3, 2026
    968d9bb
    b52df65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/dashboardWeb dashboard / control panel UI (dashboard/, landing)comp/desktopElectron desktop app (apps/desktop/*)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions