Chat: offer the session's Claude Code skills and slash commands in the palette

The server reads the commands Claude Code's initialize response lists (bundled,
user, project, plugin and claude.ai-synced skills plus CLI commands, with
descriptions and argument hints), drops terminal-only ones, and serves them per
chat over a new chat_commands request without waiting for a CLI start. The
composer palette lists them after the recorded commands; choosing one inserts
"/<name> " and sending passes it to the harness as an ordinary prompt.
Codex, OpenCode and Pi chats reply with an empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 20:53:57 +00:00
parent 4d91720849
commit d1390994cc
24 changed files with 924 additions and 23 deletions
+3
View File
@@ -250,6 +250,9 @@ func handleChat(ctx context.Context, request protocol.Message, broker chatBroker
case protocol.ChatModels:
handleChatModels(ctx, request, broker, write)
return true
case protocol.ChatCommands:
handleChatCommands(ctx, request, broker, write)
return true
case protocol.ChatModelSelect:
handleChatModelSwitch(ctx, request, broker, write)
return true