hermes-agent/apps/desktop/src
Brooklyn Nicholson fb44b519d7 fix(desktop): parse multiline slash commands + hand degenerate payloads back
parseSlashCommand used /^(\S+)\s*(.*)$/ where `.` can't cross a newline and
`$` anchors end-of-string, so any slash command whose arg contained a newline
(/goal <multi-line text>, a skill command with a long pasted context) failed
the whole match, parsed as an empty name, and rendered "empty slash command"
while the payload vanished — cleared from the composer and absent from the
Up-arrow history ring, which only derives from sent user messages.

- name now splits on any whitespace ([\s\S]* arg), matching the CLI and the
  gateway's split(maxsplit=1); multiline args flow to slash.exec intact
- the residual empty-name branch (bare "/", "/ text") restores the submitted
  text to the composer draft instead of eating it

Fixes #41323. Fixes #55510.
2026-07-02 11:36:21 -05:00
..
app fix(desktop): parse multiline slash commands + hand degenerate payloads back 2026-07-02 11:36:21 -05:00
components refactor(desktop): split tool fallback-model into a folder with leaf modules 2026-06-30 15:24:33 -05:00
fonts
…
hooks
…
i18n Merge pull request #55331 from xxxigm/fix/desktop-projects-stale-backend 2026-06-30 11:47:04 -05:00
lib fix(desktop): parse multiline slash commands + hand degenerate payloads back 2026-07-02 11:36:21 -05:00
store Merge pull request #55331 from xxxigm/fix/desktop-projects-stale-backend 2026-06-30 11:47:04 -05:00
themes
…
types
…
global.d.ts
…
hermes-profile-scope.test.ts
…
hermes.test.ts
…
hermes.ts fix(desktop): don't false-timeout long prompt.submit turns (MoA, deep reasoning) (#56411) 2026-07-01 06:33:47 -07:00
main.tsx
…
styles.css
…
vite-env.d.ts
…