Skip to content

Codex Desktop approval notification opens blank/error route for ambient suggestion command #19876

Open

Description

@Fitech

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

26.422.30944

What subscription do you have?

Enterprise

What platform is your computer?

MacOS / Darwin 25.4.0 arm64 arm

What issue are you seeing?

Codex Desktop repeatedly shows macOS desktop notifications asking for approval to run a command. Clicking the notification opens a blank Codex view with a brief plain-text error that flashes too quickly to read. Approving or denying does not resolve it; restarting Codex causes it to happen again immediately.

This appears to come from background ambient suggestion tasks rather than a visible conversation. The approval notification targets a hidden/stale/inaccessible task route, so the click-through opens an error route instead of the relevant approval UI.

Observed logs:
error Conversation state not found conversationId=
[desktop-notifications] show approval conversationId= kind=commandExecution requestId=1
[desktop-notifications] notification click open notificationId=approval-2

Sentry breadcrumbs showed repeated 403s:
GET https://chatgpt.com/backend-api/wham/tasks/ -> 403
GET https://chatgpt.com/backend-api/wham/tasks//turns -> 403

Background task prompt seen in logs:
Generate 0 to 3 ambient suggestions for this local project...

Example requested commands:
pwd
rg --files | sed ... | head -n 200
git log --oneline --decorate -n 15

Expected:
Clicking an approval notification should open the relevant approval UI, or Codex should avoid showing desktop approval notifications for background/ambient tasks whose conversation/task is not accessible in the app.

Privacy:
Local usernames, project paths, task IDs, conversation IDs, and request IDs have been redacted.

What steps can reproduce the bug?

I just open the app and the notifications start coming in.

What is the expected behavior?

I shouldn't get random notifications for approval that don't go anywhere.

Additional information

No response

Activity

  1. added
    app
    on Apr 27, 2026
  2. added
    bug
    tool-calls
    session
    on Apr 27, 2026
  3. os369510 commented on Jun 10, 2026

    @os369510

    I’m seeing the same class of issue on Linux/Sway with Mako notifications.

    Environment:

    • Codex Desktop package: openai-codex-desktop 26.519.41501-1
    • app-server: 0.137.0
    • runtime bundle seen in logs: 26.601.10930
    • Platform: Linux 7.0.11-arch1-1 x86_64
    • Notification center: Mako under Sway

    Observed notification:

    • Codex -> Command approval -> Approval required

    But clicking/opening did not show an actionable approval.

    Relevant log pattern:

    • Conversation state not found conversationId=...
    • [desktop-notifications] show approval ... kind=commandExecution requestId=...
    • [desktop-notifications] forward show kind=permission notificationId=approval-local-...
    • [desktop-notifications] show notification ... kind=permission

    I also saw repeated:

    • [ambient-suggestions-background-refresh] Failed to refresh ambient suggestions ... trigger=background

    In one reproduction, background/heartbeat automation log-inspection commands caused several approval notifications (approval-local-10 through approval-local-13) tied to a hidden/background conversation. The commands were read-only (find/rg over Codex logs), and there was no visible approval surface by the time I opened Codex.

    Expected behavior:

    • Do not send an OS “Approval required” notification unless human action is actually still required and the target thread/approval can be opened.
    • If the request is auto-reviewed/resolved quickly, suppress or dismiss the OS notification.
    • If the thread/conversation cannot be resolved, do not show a desktop approval notification, or show a clearly non-actionable diagnostic instead.
    • Include command/cwd/source context in the notification or in the click-through target.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsessiontool-calls

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions