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

オープン
#64,234 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
macos, rust
領域
backend, desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
136k
フォーク
21.6k
平均マージ
1分
マージ済み PR(30日)
997

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openai/codex のほかの issue

openai/codex の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。