Skip to content

Expose instruction sources (AGENTS.md) via app server#17506

Merged
etraut-openai merged 1 commit intomainfrom
etraut/status-agents
Apr 12, 2026
Merged

Expose instruction sources (AGENTS.md) via app server#17506
etraut-openai merged 1 commit intomainfrom
etraut/status-agents

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 12, 2026

Addresses #17498

Problem: The TUI derived /status instruction source paths from the local client environment, which could show stale output or incorrect paths when connected to a remote app server.

Solution: Add an app-server v2 instructionSources snapshot to thread start/resume/fork responses, default it to an empty list when older servers omit it, and render TUI /status from that server-provided session data.

Additional context: The app-server field is intentionally named instructionSources rather than AGENTS.md-specific terminology because the loaded instruction sources can include global instructions, project AGENTS.md files, AGENTS.override.md, user-defined instruction files, and future dynamic sources.

@etraut-openai etraut-openai marked this pull request as ready for review April 12, 2026 04:03
Copy link
Copy Markdown
Contributor

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

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: f16dca39ca

ℹ️ 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/app-server-protocol/src/protocol/v2.rs
@etraut-openai etraut-openai changed the title Expose AGENTS.md status via app server Expose instruction sources (AGENTS.md) via app server Apr 12, 2026
@etraut-openai etraut-openai merged commit 46ab997 into main Apr 12, 2026
28 of 30 checks passed
@etraut-openai etraut-openai deleted the etraut/status-agents branch April 12, 2026 22:50
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 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