- Make sure the daemon is running:
cd hld && go run . - Make sure the UI is running:
cd humanlayer-wui && bun run dev - Ensure you have slash commands in
.claude/commands/directory
- Navigate to an existing draft:
/sessions/draft?id=XXX - Click in the editor
- Type
/ - Expected: Slash commands dropdown should appear with available commands
- Verify: Console shows no errors about missing session context
- Press 'c' to create new draft (or navigate to
/sessions/draft) - Start typing in the editor to trigger draft creation
- Type
/ - Expected: Slash commands dropdown should appear immediately after draft creation
- Verify: Commands are fetched and displayed
- In a draft session, type
@ - Expected: File search dropdown should appear
- Verify: Files from the working directory are searchable
- Create draft A, verify slash commands work
- Navigate to draft B
- Expected: Slash commands work in draft B
- Go back to draft A
- Expected: Slash commands still work in draft A
- Launch a draft to make it active
- Navigate to the active session
- Type
/ - Expected: Slash commands still work in active sessions
- Verify: No regression in existing functionality
- No errors about
activeSessionDetailbeing null - No errors about missing session ID
- Network tab shows GET requests to
/slash-commandsendpoint when typing/
- All 5 test cases pass
- No console errors
- Slash commands work identically in draft and active sessions