Skip to content

Repair stale Windows skill junctions during lifecycle commands#9

Merged
gaoguobin merged 1 commit into
mainfrom
codex/fix-windows-skill-link-repair
May 20, 2026
Merged

Repair stale Windows skill junctions during lifecycle commands#9
gaoguobin merged 1 commit into
mainfrom
codex/fix-windows-skill-link-repair

Conversation

@gaoguobin
Copy link
Copy Markdown
Owner

Summary

  • Rebuild stale or wrong-target Windows skill junctions during update.
  • Let install remove stale reparse-point leftovers before creating the expected namespace link.
  • Let uninstall remove broken junctions that Test-Path may miss.

Why

A Windows update can leave ~/.agents/skills/codex-environment-backup pointing at a deleted temporary path. Package install and doctor still pass, but Codex may fail to rescan the skill after restart.

Validation

  • python -m unittest tests.test_docs -v
  • python -m unittest discover -s tests
  • python -m compileall src scripts
  • git diff --check
  • Manual PowerShell simulation of a stale junction repaired to the expected target

@gaoguobin gaoguobin merged commit a918644 into main May 20, 2026
5 checks passed
@gaoguobin gaoguobin deleted the codex/fix-windows-skill-link-repair branch May 20, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant