1
0
Fork 0
mirror of https://github.com/imjasonh/cnotes synced 2026-07-18 06:39:02 +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

@ -132,7 +132,7 @@ func processGitCommit(ctx context.Context, input HookInput, bashInput BashToolIn
return fmt.Errorf("could not extract commit hash")
}
// Create notes manager
// Create notes manager and load config
notesManager := notes.NewNotesManager(input.CWD)
cfg := config.LoadNotesConfig(input.CWD)
notesManager.SetNotesRef(cfg.NotesRef)
@ -149,7 +149,7 @@ func processGitCommit(ctx context.Context, input HookInput, bashInput BashToolIn
time.Sleep(100 * time.Millisecond)
// Extract conversation context since the last commit
contextExtractor := conv.NewContextExtractor()
contextExtractor := conv.NewContextExtractor(cfg)
conversationContext, err := contextExtractor.ExtractContextSince(input.TranscriptPath, input.SessionID, previousCommitTime)
if err != nil {
return fmt.Errorf("failed to extract conversation context: %w", err)