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

Aperta
#64,234 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, rust
Ambito
backend, desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
136k
Fork
21.6k
Merge medio
1m
PR unite (30g)
997

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openai/codex

Tutte le issue di openai/codex

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.