Skip to content

Commit 313bd10

Browse files
chore: reload program on each chat message
1 parent a1a3b7f commit 313bd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cli/gptscript.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func (r *GPTScript) Run(cmd *cobra.Command, args []string) (retErr error) {
400400

401401
if prg.IsChat() || r.ForceChat {
402402
return chat.Start(r.NewRunContext(cmd), nil, gptScript, func() (types.Program, error) {
403-
return prg, nil
403+
return r.readProgram(ctx, gptScript, args)
404404
}, os.Environ(), toolInput)
405405
}
406406

0 commit comments

Comments
 (0)