Skip to content

feat: slash commands across all surfaces (#60) - #69

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-60-slash-commands
Jun 11, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-60-slash-commands

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

Implements the plan posted on #60 after the audit. Built-ins /reset (+/new), /status, /skills, /help (+/commands) in openclaw's registry shapes — host-handled, zero tokens, intercepted once in startChannels (Nostr/Telegram) and once in chat.send (webchat/TUI). commands.list now serves real openclaw-shaped entries (advances #46 — the openclaw TUI can render them). The skill bridge: user-invocable: true frontmatter is now preserved and such skills surface as /, force-injecting their body with args (partial #47 finding 5). /reset clears the channel session map; on the webchat path each message is its own session today so it acks honestly. Unknown commands answer '/help' guidance instead of reaching the agent. Also hardens the flaky NIP-04 wrong-key test that reddened CI on the v0.0.14 merge (unauthenticated CBC: assert garbage-or-throw, never plaintext). Tests 146/146.

Host-handled commands in openclaw's registry shapes: /reset (both
session mechanisms: channel session map; webchat acks — each message
is its own session today), /status, /skills, /help (+ /new and
/commands aliases). Intercepted once in startChannels and once in
chat.send; commands.list now returns real openclaw-shaped entries.
The skill bridge: user-invocable: true skills (frontmatter now
preserved) surface as /<name> and force-inject their body with args.
Unknown slash commands answer politely instead of confusing the
agent.
@melvincarvalho
melvincarvalho merged commit 43e117d into gh-pages Jun 11, 2026
@melvincarvalho
melvincarvalho deleted the issue-60-slash-commands branch June 11, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant