Skip to content

update-agent-context scripts fail to refresh 'Last updated' date from template #1834

@mango766

Description

@mango766

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:

Last updated: 2025-03-01

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions