fix(omo): prevent duplicate Orca-mirrored agent roles - #151
Closed
glen-tl wants to merge 3 commits into
Closed
Conversation
Contributor
|
Thanks for the PR! Changes to LazyCodex land through oh-my-openagent — could you open this against omo-codex over there instead? PRs in this repository can't be merged. If you're working with a coding agent, prompt it like this:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dist/cli.jsbehavior in sync with the TypeScript sourceRoot cause
Orca mirrors
[agents.<name>]entries into its runtimeCODEX_HOME/config.toml, pointing at another runtime's agent file. LazyCodex's bootstrap filtered the config update but still copied the same bundled TOML into the activeCODEX_HOME/agents/directory. Codex then auto-discovered both paths and reported duplicate agent roles.Validation
node --test plugins/omo/test/bootstrap-*.test.mjs: 51 passednode --check plugins/omo/components/bootstrap/dist/cli.js: passednode components/bootstrap/scripts/build.mjs: exit 0; this sparse checkout emits pre-existing unresolved sibling-import warnings and retains the existing bundled distFixes #150
Related: #149
Summary by cubic
Prevents duplicate agent roles when Orca mirrors agents into
config.toml. We now skip staging mirrored roles, remove only previously managed copies, and preserve user files.*.tomlwhenconfig.tomlalready points to a foreign runtime path..installed-agents.jsonto safely prune only managed duplicates.plugins/omo/components/bootstrap/dist/cli.jsin sync with the TypeScript source and add tests for idempotent runs and user-file preservation.Written for commit 5651d0e. Summary will update on new commits.