1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-20 04:58:10 +00:00

Add configurable emojis for user and assistant messages

This commit is contained in:
Jason Hall 2025-07-21 14:41:19 -04:00
parent c2927548f9
commit cc4541b256
Failed to extract signature
6 changed files with 52 additions and 12 deletions

View file

@ -14,6 +14,8 @@ type NotesConfig struct {
IncludeToolOutput bool `json:"include_tool_output"` // Whether to include tool output in notes
NotesRef string `json:"notes_ref"` // Git notes reference name
ExcludePatterns []string `json:"exclude_patterns"` // Patterns to exclude from notes
UserEmoji string `json:"user_emoji"` // Emoji to use for user messages
AssistantEmoji string `json:"assistant_emoji"` // Emoji to use for assistant messages
}
// DefaultNotesConfig returns the default configuration
@ -32,6 +34,8 @@ func DefaultNotesConfig() *NotesConfig {
"api_key",
"auth",
},
UserEmoji: "👤",
AssistantEmoji: "🤖",
}
}
@ -62,6 +66,12 @@ func LoadNotesConfig(projectDir string) *NotesConfig {
if config.MaxPrompts <= 0 {
config.MaxPrompts = 2
}
if config.UserEmoji == "" {
config.UserEmoji = "👤"
}
if config.AssistantEmoji == "" {
config.AssistantEmoji = "🤖"
}
return &config
}