fix(agent): sync skills into persistent Codex threads - #63744
Closed
FPSUnleashed wants to merge 1 commit into
Closed
fix(agent): sync skills into persistent Codex threads#63744FPSUnleashed wants to merge 1 commit into
FPSUnleashed wants to merge 1 commit into
Conversation
Register Hermes skill roots with Codex App Server, force metadata reloads between turns, and attach newly created or modified skills as native turn inputs. Preserve pending changes across transient RPC failures and confine discovered skill paths to configured roots.
tonydwb
reviewed
Jul 13, 2026
tonydwb
left a comment
There was a problem hiding this comment.
Code Review Summary\n\nVerdict: COMMENT\n\nSwitched to comment-only mode due to 422 on API. Original intention: APPROVE. Original reason: Looks good: low surface area, no obvious issues\n\n---\nReviewed by Hermes Agent
1 task
Author
|
Superseded by #63798, which carries the persistent-skill synchronization together with the complete Codex App Server context, tool, and clarification bridge. |
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.
What does this PR do?
Fixes the
codex_app_serverruntime so persistent Codex threads can discover and use skills from the active Hermes home, including skills created or modified between turns.Hermes already manages its own skill tree, but Codex App Server requires explicit extra-root registration. A forced
skills/listrefresh updates server metadata, yet does not guarantee that a persistent thread receives newly available skills as native turn inputs. This patch registers the Hermes skill root and attaches only new or changed skills to the nextturn/start.The change is limited to the opt-in
codex_app_serverpath. It does not modify the normal Hermes agent loop, other providers, memory, UI, or Codex itself.Related Issue
No issue found. I searched open and closed issues/PRs for
skills/extraRoots/set, Codex App Server skill roots, and persistent skill discovery. Nearby PRs about project-local discovery and local skill inspection address different paths.Type of Change
Changes Made
get_hermes_home() / "skills"intoCodexAppServerSessionas an extra skill root.skills/extraRoots/setafterthread/startand retry transient registration failures on later turns.skills/listreloads before turns and attach newly created or modified skills as nativeSkillUserInputentries.turn/startis accepted, preserving pending skills after transient turn failures.HERMES_HOMEwiring.How to Test
codex_app_server.$HERMES_HOME/skillsbetween two turns and verify that the next Codexturn/startcontains a native skill input and follows the skill.Local targeted result after rebasing onto current
main:Live smoke test on Ubuntu 24.04 also created a skill between turns, confirmed the native skill input in the Codex rollout, and returned the expected nonce.
Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests pass — targeted canonical tests pass; full validation is delegated to CI because the managed worker venv does not contain every dev extraDocumentation & Housekeeping
cli-config.yaml.example: N/A; no config keys added or changedCONTRIBUTING.md/AGENTS.md: N/A; existing runtime architecture is preservedDevelopment note
The implementation was AI-assisted, then exercised through targeted regression tests, two independent logic/security reviews, and a live persistent-thread smoke test. The PR contains the code and reproducible tests needed to review the behavior directly.