Hi,
I ran into an issue where the update-agent-context scripts (both bash and PowerShell) don't refresh the "Last updated" timestamp in agent files that were generated from the template.
The template outputs plain text:
But both scripts look for bold Markdown markers:
**Last updated**: 2025-03-01
So the regex never matches and the date is never refreshed on subsequent runs.
This seems to be the same issue as #1823.
Files:
scripts/bash/update-agent-context.sh (line ~479)
scripts/powershell/update-agent-context.ps1 (line ~334)