Skip to content

Commit 7631bc2

Browse files
committed
feat(commands): add /doctor and /commands slash commands
Add new slash commands for system health checks (/doctor) and custom command management (/commands), along with the /provider set-account configuration command.
1 parent 49918f1 commit 7631bc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/hooks/use-input-handler.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,10 @@ export function useInputHandler({
537537
const commandSuggestions: CommandSuggestion[] = [
538538
{ command: "/help", description: "Show help information" },
539539
{ command: "/clear", description: "Clear chat history" },
540+
{ command: "/doctor", description: "Check status & connection" },
540541
{ command: "/models", description: "Switch Super Agent Model" },
541542
{ command: "/config", description: "View or edit configuration" },
543+
{ command: "/commands", description: "Manage custom commands" },
542544
{ command: "/provider", description: "Manage AI providers" },
543545
{ command: "/chat save <name>", description: "Save current chat" },
544546
{ command: "/chat load <name>", description: "Load a saved chat" },
@@ -635,9 +637,11 @@ export function useInputHandler({
635637
Built-in Commands:
636638
/clear - Clear chat history
637639
/help - Show this help
640+
/doctor - Check system health & connection
638641
/models - Switch between available models
639642
/config - View current configuration
640643
/provider - List or switch AI providers
644+
/commands - Manage custom slash commands
641645
/exit - Exit application
642646
exit, quit - Exit application
643647
@@ -654,6 +658,7 @@ Config Commands:
654658
/config - View current active configuration
655659
/provider - List configured providers
656660
/provider use <id> - Switch active AI provider
661+
/provider set-account <id> <acc_id> - Set account ID (e.g. workers-ai)
657662
/model set <id> - Set active model for current provider
658663
`,
659664
timestamp: new Date(),

0 commit comments

Comments
 (0)