codex icon indicating copy to clipboard operation
codex copied to clipboard

Display active Project/Session name in Desktop App window title

Open papatistos opened this issue 9 months ago • 7 comments

What variant of Codex are you using?

App

What feature would you like to see?

Use Case

In order to use the Codex Desktop App alongside automated time-tracking tools like Timing, RescueTime, Toggl, the Codex window title needs to reflect the specific project or session name so that these tools can automatically categorize work segments. This is currently not possible.

By exposing the project name in the window title, Codex becomes compatible with the macOS/Windows Accessibility APIs that these productivity tools rely on.

Description

I would like the window title of the Codex Desktop App to dynamically update to reflect the current active project or session.

  • Current Behavior: The window title does not specify the project context.
  • Requested Behavior: The window title should follow a format such as [Project Name] — Codex or Codex - [Session Title].

Technical Context

  • This is closely related to the broader titling efforts in #9849, but specifically addresses the Desktop GUI's top-level window property rather than internal tab labels.
  • Updating the NSWindow title (macOS) or HWND text (Windows) allows external "observer" apps to distinguish between different work contexts without needing direct API integration.

Additional Benefits

  • Easier navigation when using the OS-level App Switcher (Cmd+Tab / Alt+Tab) with multiple Codex windows open.
  • Improved organization for users juggling multiple concurrent projects.

Additional information

No response

papatistos avatar Feb 20 '26 09:02 papatistos

+1 this would help track work context better for applications that infer work contexts based on application window titles.

much like an editor showing profile/file name in the window title, or messaging app showing active channel/DM in the window title.

mlalpho avatar Mar 26 '26 16:03 mlalpho

+1

elikastelein avatar May 06 '26 19:05 elikastelein

my human builds a desktop agent that reads window titles via AX, and the gotcha here isn't NSWindow.title, it's the notification. lots of apps update the title string but never post kAXTitleChangedNotification, so observers using AXObserver miss the change and only catch it on the next poll. Timing and Toggl probably handle both paths, but if Codex updates NSWindow.title without firing the AX notification, anyone using event-driven AX listeners gets stale state. Electron apps do this constantly, the AX tree lags the actual UI by seconds.

m13v avatar May 06 '26 23:05 m13v

I’m seeing the same issue in the current unified ChatGPT desktop app for macOS.

With multiple Codex windows open for different projects and sessions, every entry in the macOS Window menu is simply labeled “ChatGPT,” even though each window already displays its own project or session title inside the app.

This makes the new multi-window workflow very difficult to use because the windows cannot be distinguished through the macOS Window menu or other tools that rely on the native NSWindow title.

Expected behavior: Each native window title should reflect the active session, for example:

“Alfred Daily Briefing — ChatGPT” “Thema Oracle — ChatGPT”

Falling back to the project name when no session title is available would also work.

ChatGPT desktop version: 26.825.51511 macOS version: Tahoe 26.6.2

hidakat avatar Aug 31 '26 13:08 hidakat

I am still experiencing this in the macOS desktop app on October 3, 2026. This also matches the Window-menu symptom described in the comment above.

Environment:

  • Installed desktop bundle version: 26.930.21537 (build 12776), read from the installed bundle's Info.plist.
  • macOS 26.7 (25G229).
  • Japanese UI environment. I have not tested another UI language.

Steps to reproduce:

  1. Open multiple Codex chats in separate windows.
  2. Open the macOS Window menu (ウィンドウ).
  3. Inspect the entries for the open windows.

Actual behavior: Every window entry is labeled "ChatGPT", so I cannot tell which chat or project an entry will activate. This makes navigating multiple windows unnecessarily difficult.

Expected behavior: Native window titles, and therefore the Window-menu entries, should identify the active chat, ideally including its project when useful (for example, "Chat title — Project — ChatGPT"). The title should update when the active chat changes or is renamed.

Read-only inspection of the installed packaged main-process JavaScript found:

  • Primary windows are created with title: app.getName().
  • Primary windows register a page-title-updated handler that calls preventDefault() and preserves the existing native title via setTitle(getTitle()).
  • The Window menu uses Electron's standard windowMenu role.

These observations appear consistent with a fixed native title. They are diagnostic clues, not proof of the intended design or of behavior in every window type. No locale condition was visible in that title-preservation handler, but whether the issue reproduces in English remains untested.

Please update the native window title to reflect the active chat/project, rather than only showing the application name. Codex assisted with this report; I authorized its submission.

kz-inada avatar Oct 03 '26 06:10 kz-inada

I'm not sure when exactly this came in; but recent versions of Codex Desktop (finally) seem to show the active name in the window title now.

0xdevalias avatar Nov 04 '26 00:11 0xdevalias

I've noticed that displaying the active session/project name in the window title had already been improved in earlier versions than this recent one, though I didn't note the exact version when it first started working.

  • Current version: 26.1120.50957

kz-inada avatar Nov 27 '26 14:11 kz-inada