Merge claudedo/e39b952576f5469a9a3d821bdc110853
This commit is contained in:
@@ -24,10 +24,21 @@ public sealed class PromptFileRecovery : IHostedService
|
||||
PromptFiles.ReconcileStaleDefaults(_root);
|
||||
|
||||
var orphans = PromptFiles.QuarantineOrphans(_root);
|
||||
if (orphans.Count > 0)
|
||||
_logger.LogWarning("Prompt file recovery: quarantined {Count} orphaned prompt file(s) into _orphans", orphans.Count);
|
||||
else
|
||||
if (orphans.Count == 0)
|
||||
{
|
||||
_logger.LogInformation("Prompt file recovery: no orphaned prompt files found");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
foreach (var orphan_path in orphans)
|
||||
{
|
||||
_logger.LogWarning("Prompt file recovery: quarantined orphaned prompt file {orphan_path}", orphan_path);
|
||||
if (Path.GetFileNameWithoutExtension(orphan_path)
|
||||
.StartsWith("merge-helper-execute", StringComparison.OrdinalIgnoreCase))
|
||||
_logger.LogWarning(
|
||||
"Prompt file recovery: {orphan_path} was a customization of the retired merge-helper-execute.md prompt, which was split into merge-helper-wait.md and merge-helper-merge.md; its content was not migrated to either",
|
||||
orphan_path);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user