Skip to content

fix(windows): replace stale Hermes SOUL.md instead of guarding on Container - #3489

Open
patil2001 wants to merge 1 commit into
Osmantic:mainfrom
patil2001:fix/hermes-soul-refresh-odscli
Open

fix(windows): replace stale Hermes SOUL.md instead of guarding on Container#3489
patil2001 wants to merge 1 commit into
Osmantic:mainfrom
patil2001:fix/hermes-soul-refresh-odscli

Conversation

@patil2001

Copy link
Copy Markdown
Contributor

Summary

Invoke-HermesSoulRefresh in the ods CLI guarded its stale-file cleanup with Test-Path -LiteralPath $output -PathType Container. $output is a file (data/persona/SOUL.md), so the Container check was always false — an existing SOUL.md was never removed and the fallback render was skipped. The stale template therefore persisted across refreshes.

Fix

Check -PathType Leaf and remove the stale file before re-rendering.

Verification

  • Test-Path -LiteralPath $output -PathType Leaf is the correct test for a file path.
  • Fallback render path now runs when the existing SOUL.md is present.

Closes #3334

…tainer

Invoke-HermesSoulRefresh checked -PathType Container on a file path, so an
existing SOUL.md (a Leaf) was never removed and the fallback never regenerated.
Test for Leaf and remove the stale file before re-rendering.

Closes Osmantic#3334
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant