[macOS] New chat without a project opens in a saved project and loads its AGENTS.md

Open
#64,234 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, rust
Domain
backend, desktop

Research direction

Start by tracing the macOS startup flow for creating a chat without a project, then follow how the new chat receives its working directory and project assignment. Compare that path with the related Linux report in #24222. The issue gives no source files or tests; done means reproducing the flow and confirming the chat has no saved project assignment, uses a standalone workspace, and excludes that project's AGENTS.md.

Written by the indexing model from the issue text.

Description

app bug session
What version of the Codex App are you using (From “About Codex” dialog)?

26.1120.50957 (build 30866), read from the installed desktop app bundle

What subscription do you have?

Not recorded

What platform is your computer?

macOS 26.6.2 (Apple Silicon), uname -mprs: Darwin 25.6.0 arm64 arm

What issue are you seeing?

At app startup, I chose to start a new chat without a project and sent an unrelated question. The first turn ran with a saved local project's primary folder as its working directory. Desktop recorded a project assignment for the chat, and the first turn included the repository's AGENTS.md. The answer used project details from that file.

What steps can reproduce the bug?
  1. Have a saved local Codex project with an AGENTS.md in its primary folder.
  2. At app startup, choose to start a new chat without a project.
  3. Send a general question, for example What do you think of PhysCAD vs FreeCAD?
  4. Inspect the first turn's working directory and project instructions.
What is the expected behavior?

The explicit no-project choice should start the first turn in a standalone workspace. The chat should have no assignment to a saved project, and that project's workspace roots and repository-level AGENTS.md should stay outside the chat's context.

Documented behavior

Additional information

In the affected session, the Desktop log showed a new draft on the main screen followed by local chat creation. The session metadata and first-turn record both had the saved project's primary folder as cwd, and pwd returned the same path. Desktop state associated this chat with that project. One occurrence was observed. The exact cause of the incorrect project selection is unconfirmed.

A related Linux report mentions the global New chat control inheriting a project in #24222.

Dominant language
Rust
Stars
136k
Forks
21.6k
Avg merge
1m
Merged PRs (30d)
997

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.