Skip to content

core: load AGENTS.md from foreign environments#28958

Merged
anp-oai merged 2 commits into
mainfrom
codex/remote-windows-agents-md
Jun 18, 2026
Merged

core: load AGENTS.md from foreign environments#28958
anp-oai merged 2 commits into
mainfrom
codex/remote-windows-agents-md

Conversation

@anp-oai

@anp-oai anp-oai commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Why

Make it possible to load AGENTS.md from remote exec-servers whose OS is different than app-server.

What

  • keep AGENTS.md discovery and provenance as PathUri, with root-aware parent and ancestor traversal
  • expose lifecycle instruction sources as legacy app-server path strings in events while retaining PathUri internally
  • preserve and test mixed POSIX and Windows paths in model context and TUI status output
  • cover remote Windows loading end to end by seeding the Wine prefix through host filesystem APIs
  • fix bug in PathUri's parent() implementation that would erase Windows drive letters

anp-oai added a commit that referenced this pull request Jun 18, 2026
@anp-oai anp-oai force-pushed the codex/remote-windows-agents-md branch from 23910c7 to 73cdd64 Compare June 18, 2026 20:12
@anp-oai anp-oai force-pushed the codex/remote-windows-agents-md branch from 73cdd64 to e1c2fd6 Compare June 18, 2026 20:19
@anp-oai anp-oai marked this pull request as ready for review June 18, 2026 20:33
@anp-oai anp-oai requested a review from a team as a code owner June 18, 2026 20:33
@anp-oai

anp-oai commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: e1c2fd6291

ℹ️ 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".

tracing::warn!(
"Project doc `{}` exceeds remaining budget ({} bytes) - truncating.",
p.display(),
p.inferred_native_path_string(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit for the future: it's cool to use real uris in logs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

will do as a follow-up and note it in the skill for codex

@anp-oai anp-oai merged commit dce6739 into main Jun 18, 2026
31 checks passed
@anp-oai anp-oai deleted the codex/remote-windows-agents-md branch June 18, 2026 22:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants