Skip to content

Conversation

@sanggggg
Copy link
Collaborator

Summary

Add support for parsing and displaying XML command blocks from Claude Code JSONL files (e.g., /clear, /help, /model commands).

Changes

  • Add SlashCommand variant to MessageType enum with SlashCommandData struct
  • Add regex parsing in claude_code.rs for XML command blocks:
    • <command-name>, <command-message>, <command-args>, <local-command-stdout>
  • Add database migration 017 to include slash_command in CHECK constraint
  • Add yellow/amber styling in TUI for slash command messages
  • Add SlashCommandMessage component in React GUI with Terminal icon
  • Add 8 unit tests for slash command parsing and MessageType serialization
  • Fix clippy large_enum_variant warning by boxing MessageGroup fields

Test Plan

  • All existing tests pass (cargo t)
  • New slash command tests pass
  • Clippy passes with -D warnings
  • SQLx prepared queries updated
  • React code formatted with Biome

🤖 Generated with Claude Code

Add support for parsing and displaying XML command blocks from Claude Code
JSONL files (e.g., /clear, /help, /model commands).

Changes:
- Add SlashCommand variant to MessageType enum
- Add SlashCommandData struct with command_name, message, args, stdout fields
- Add regex parsing in claude_code.rs for XML command blocks
- Add database migration 017 for slash_command message type
- Add yellow/amber styling in TUI for slash command messages
- Add SlashCommandMessage component in React GUI
- Add unit tests for slash command parsing
- Fix clippy large_enum_variant warning by boxing MessageGroup fields

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@sanggggg sanggggg force-pushed the feat/slash-command-message-type branch from 90d51fa to 8211ace Compare December 26, 2025 05:00
@sanggggg sanggggg merged commit 5bda79d into main Dec 26, 2025
5 checks passed
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.

2 participants