Skip to content

/status shows Agents.md: <none> even when AGENTS.md exists and appears to be loaded #17498

@yuebozhang

Description

@yuebozhang

Summary

/status shows Agents.md: <none> even when AGENTS.md exists and appears to be loaded.

Environment

  • Codex CLI v0.120.0
  • macOS Darwin 25.4.0 arm64
  • Model: gpt-5.4
  • Collaboration mode: Default

Description

In my session, /status consistently showed:

Agents.md: <none>

However:

  • The current working directory was a project root containing a root-level AGENTS.md
  • I also added another AGENTS.md at the workspace root to rule out a workspace-root mismatch
  • The assistant still appeared to read and follow the project AGENTS.md

This makes it look like the issue is in the status display logic, or in a mismatch between status path resolution and actual AGENTS loading behavior.

Steps to Reproduce

  1. Open Codex CLI in a project directory that contains a root-level AGENTS.md
  2. Confirm the file exists and is readable
  3. Run /status
  4. Observe that Agents.md is shown as <none>

Observed Behavior

  • /status shows Agents.md: <none>
  • AGENTS.md exists at the active project root
  • Another AGENTS.md also exists at the workspace root
  • The assistant still appears to follow the project instructions

Expected Behavior

  • If AGENTS.md is found and loaded for the active project or workspace, /status should show that file instead of <none>
  • If /status is intentionally checking a different directory than the session cwd, it should clearly indicate which directory it checked

Why This Is Confusing

It is hard to tell whether:

  • AGENTS.md was not discovered
  • AGENTS.md was discovered but not displayed
  • the status panel is stale
  • the status panel is using different path resolution logic than the actual instruction loader

Privacy / Redaction

This report is redacted and does not include:

  • private note contents
  • tokens or credentials
  • identifiable local paths
  • repository names unrelated to reproducing the bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions