Skip to content

Use fs/walk for environment skill discovery - #29842

Merged
jif-oai merged 1 commit into
mainfrom
jif/fs-walk-skills
Jun 24, 2026
Merged

Use fs/walk for environment skill discovery#29842
jif-oai merged 1 commit into
mainfrom
jif/fs-walk-skills

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Stack 2 of 3. Base: #29841. Follow-up: #29844.

What changes

Environment skill discovery currently walks remote filesystems through repeated readDirectory and getMetadata calls. This switches that scan to the bounded fs/walk operation from the base PR.

Before: readDirectory(root) -> getMetadata(...) -> readDirectory(child) -> ...
After:  fs/walk(root, limits) -> filter the result for SKILL.md

This makes environment skill discovery one RPC while preserving traversal warnings and the existing depth and directory limits. The scan also has an explicit entry limit. The follow-up restores directory-symlink traversal.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 04ebef4f7c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/core-skills/src/loader/environment.rs
Comment thread codex-rs/core-skills/src/loader/environment.rs
jif-oai added a commit that referenced this pull request Jun 24, 2026
Stack 1 of 3. Follow-ups: #29842 and #29844.

## What changes

Adds a general bounded `fs/walk` operation to the exec server.

The operation returns file and directory entries plus recoverable
per-path errors. It skips symlinks, preserves the existing filesystem
sandbox routing, and enforces depth, directory, entry, and response-size
limits.

This PR only defines and wires the filesystem operation. It does not
change any callers yet.
Base automatically changed from jif/fs-walk-rpc to main June 24, 2026 15:05
@jif-oai
jif-oai requested a review from a team as a code owner June 24, 2026 15:05
@jif-oai
jif-oai force-pushed the jif/fs-walk-skills branch from 04ebef4 to 62d03ed Compare June 24, 2026 15:18
@jif-oai
jif-oai merged commit 69b76e9 into main Jun 24, 2026
30 checks passed
@jif-oai
jif-oai deleted the jif/fs-walk-skills branch June 24, 2026 15:32
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants