You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/file/SetupApp.kt
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -936,6 +936,17 @@ object SetupApp {
936
936
if (markerLine ==AGENTS_TEMPLATE_MARKER) {
937
937
returnnull
938
938
}
939
+
if (markerLine !=null) {
940
+
val markerVersion = markerLine
941
+
.removePrefix(AGENTS_TEMPLATE_MARKER_PREFIX)
942
+
.removeSuffix("-->")
943
+
.trim()
944
+
// Template versions are ISO dates, so lexical ordering is chronological. A newer
945
+
// downloaded template is valid even when this older Grill binary cannot recognize it.
946
+
if (markerVersion >AGENTS_TEMPLATE_VERSION) {
947
+
returnnull
948
+
}
949
+
}
939
950
if (markerLine !=null) {
940
951
return"AGENTS.md was generated from an older WurstSetup template ($markerLine). Consider refreshing it from templates/AGENTS.md and re-applying project-local notes."
0 commit comments