Skip to content

Conversation

@jiogallardy
Copy link

Problem

Running happy /help or any slash command didn't work. Commands weren't being interpreted by Claude.

Root Cause

Claude CLI expects: claude [options] [prompt] — the prompt must come last.

Happy was building args like this:

claude --append-system-prompt "..." /help --settings "..."

The /help was placed before --settings, so Claude didn't recognize it as the prompt.

Fix

Moved claudeArgs to be added after all flags:

claude --append-system-prompt "..." --settings "..." /help

Now /help is at the end, Claude parses it as the prompt, and interprets / as a slash command.

Changes

  • src/claude/claudeLocal.ts — reordered when claudeArgs gets pushed to the args array (6 lines moved, no logic change)

Testing

happy /help
happy /compact
happy /doctor

Slash commands like /help weren't working because the prompt wasn't at the end of the
   CLI args where Claude expects it.
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