@@ -26,7 +26,7 @@ func (h *generateCommandHandler) CreateContextFromPrompt() (*PromptPexContext, e
2626 }
2727
2828 runID := fmt .Sprintf ("run_%d" , time .Now ().Unix ())
29- context := & PromptPexContext {
29+ promptContext := & PromptPexContext {
3030 // Unique identifier for the run
3131 RunID : runID ,
3232 // The prompt content and metadata
@@ -50,21 +50,21 @@ func (h *generateCommandHandler) CreateContextFromPrompt() (*PromptPexContext, e
5050 } else {
5151 sessionInfo = fmt .Sprintf ("reloading session file at %s" , * h .sessionFile )
5252 // Check if prompt hashes match
53- if existingContext .PromptHash != context .PromptHash {
53+ if existingContext .PromptHash != promptContext .PromptHash {
5454 return nil , fmt .Errorf ("prompt changed unable to reuse session file" )
5555 }
5656
5757 // Merge existing context data
5858 if existingContext != nil {
59- context = mergeContexts (existingContext , context )
59+ promptContext = mergeContexts (existingContext , promptContext )
6060 }
6161 }
6262 }
6363
64- h .WriteToParagraph (RenderMessagesToString (context .Prompt .Messages ))
64+ h .WriteToParagraph (RenderMessagesToString (promptContext .Prompt .Messages ))
6565 h .WriteEndBox (sessionInfo )
6666
67- return context , nil
67+ return promptContext , nil
6868}
6969
7070// loadContextFromFile loads a PromptPexContext from a JSON file
0 commit comments