fix(server): load Codex repo-local skills from the agent workspace#402
Open
lldxflwb wants to merge 1 commit intogetpaseo:mainfrom
Open
fix(server): load Codex repo-local skills from the agent workspace#402lldxflwb wants to merge 1 commit intogetpaseo:mainfrom
lldxflwb wants to merge 1 commit intogetpaseo:mainfrom
Conversation
87f6c5b to
aceee8e
Compare
Author
|
Confirmed locally in a direct-connection Paseo setup. I tested this against a patched daemon by creating two separate workspaces, each with a different repo-local Codex skill under Observed behavior after this fix:
This was tested in direct mode against the local daemon, not only through the isolated e2e harness. |
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
Fix Codex skill discovery so repo-local
.codex/skillsare loaded from the agent workspace instead of the daemon process working directory.Closes #401.
Root cause
Paseo launched
codex app-serverwithout setting its process cwd to the Codex session workspace. In practice, Codex app-server discovers repo-local skills from its own process cwd, so skills from the active repo were missing or replaced by skills from the daemon checkout.The existing
skills/listrequest also passedcwdas an array shape that did not affect Codex app-server discovery.Changes
codex app-serverwith the agent session cwdskills/listthe session cwd as a stringskills/listrequest shape.codex/skills/.../SKILL.mdappears for the matching workspaceValidation
npx vitest run src/server/agent/providers/codex-app-server-agent.test.ts src/server/agent/providers/codex-app-server-agent.features.test.tsnpx vitest run src/server/agent/providers/codex-app-server-agent.e2e.test.ts -t "lists repo-local Codex skills from the session workspace"npm run typechecknpm run formatScope
This change is Codex-only. It does not change Claude, OpenCode, or client schemas.