-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Bug] Remove legacy agents directory during setup/update to prevent duplicate installed skills #1184
Copy link
Copy link
Open
Description
Summary
When OmX runs setup/update, it should detect legacy agents/ install locations and remove or migrate them automatically. Right now old legacy agent directories can survive alongside the current layout, which causes duplicated installed skills/agents to appear.
Problem
Legacy agents directories from older installs are not being cleaned up during setup/update.
Because of that, skill/agent content can be loaded from both the legacy location and the current location, producing duplicate installed entries.
Expected behavior
- setup/update detects legacy
agents/directories - legacy directories are either safely removed or migrated
- resulting install state contains only the canonical/current location
- duplicate installed skills/agents do not appear after upgrade
Actual behavior
- legacy directory can remain after setup/update
- duplicate installed skills/agents appear in the resulting environment
Proposed direction
- add legacy install-path detection during setup/update
- remove legacy
agents/tree when it is clearly superseded by the canonical layout - if destructive removal needs guardrails, log exactly what was removed and/or back it up first
- add regression coverage for upgrade-from-legacy layout
Why this matters
Broken/duplicate skill state makes OmX look unreliable during upgrades and creates confusing runtime behavior.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels