From ba05ca4c4e91f250f4cb06f7481235ad957b94f2 Mon Sep 17 00:00:00 2001 From: DarkCaster Date: Wed, 1 Jan 2025 05:52:21 +0300 Subject: [PATCH] fixup! op_implement: stage2, stage3: when validating list of file to be processed at stage4 - try to add ocasionally missing files to message history to prevent possible corruption --- op_implement/stage3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op_implement/stage3.go b/op_implement/stage3.go index 3ae4f89..a76f677 100644 --- a/op_implement/stage3.go +++ b/op_implement/stage3.go @@ -198,7 +198,7 @@ func Stage3(projectRootDir string, file, found = utils.CaseInsensitiveFileSearch(file, allFileNames) if found { llm.AppendFileToMessage(messageWithTargetFiles, projectRootDir, file, cfg.StringArray(config.K_FilenameTags), logger) - targetFilesToModify = append(targetFilesToModify, file) + otherFilesToModify = append(otherFilesToModify, file) logger.Warnln("File exist in the project but was not requested previously, adding it to avoid corruption", file) } else { otherFilesToModify = append(otherFilesToModify, file)