feat: Add dynamic slash commands from Claude with UI improvements
- Load available commands from Claude at session start (control_initialized event) - Display commands in autocomplete dropdown with search in name and description - Group commands into "UI Commands" and "Claude Commands" sections - Shorten display names by removing common prefixes (taches-cc-resources:, claude-mem:) - Blacklist TUI-only commands (vim, terminal-setup, ide, etc.) - Add max-height with scrollbar for long command lists - Implement auto-scroll to keep selected command visible during keyboard navigation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
backend/public/assets/index-hrmZ3Zk6.css
Normal file
1
backend/public/assets/index-hrmZ3Zk6.css
Normal file
File diff suppressed because one or more lines are too long
@@ -5,8 +5,8 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/claude.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Claude Web UI</title>
|
||||
<script type="module" crossorigin src="/assets/index-DmNT3Myo.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-4MVeF-MR.css">
|
||||
<script type="module" crossorigin src="/assets/index-CEBB4MNK.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-hrmZ3Zk6.css">
|
||||
</head>
|
||||
<body class="bg-dark-950 text-dark-100">
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -806,6 +806,7 @@ wss.on('connection', async (ws, req) => {
|
||||
if (pending.type === 'initialize') {
|
||||
isInitialized = true;
|
||||
console.log(`[${sessionId}] Control protocol initialized`);
|
||||
console.log(`[${sessionId}] Available commands:`, JSON.stringify(response.response?.commands, null, 2));
|
||||
// Send available commands/models to frontend
|
||||
sendToClient('control_initialized', {
|
||||
commands: response.response?.commands,
|
||||
|
||||
Reference in New Issue
Block a user