Skip to content

Codex Desktop pet tray omits active threads and shows inconsistent thread status #24302

Open

Description

@gritsev

Environment

  • Codex Desktop: 26.519.41501
  • Platform: macOS
  • Pet: BSOD
  • Observed: 2026-05-24 around 06:26-06:32 UTC / 10:26-10:32 Asia/Dubai

Expected

The pet tray should reflect the same active/recent in-flight threads as Codex Desktop's local thread/session state, and statuses should be consistent across comparable threads.

Actual

The pet tray showed only two thread cards:

  • Thread A: current diagnostics thread
  • Thread C: a routing task thread

But local Codex state showed three fresh, non-archived, non-final threads:

  • Thread A: current diagnostics thread, updated 06:31:58 UTC, visible in pet
  • Thread B: profile-menu task thread, updated 06:31:56 UTC, missing from pet
  • Thread C: routing task thread, updated 06:31:39 UTC, visible in pet

Thread B was missing from the pet tray even though it was updated at almost the same time as Thread C.

At the screenshot time window, Thread B and Thread C had very similar session state:

  • latest assistant phase: commentary
  • latest event: token_count
  • no final_answer
  • no task_complete

So the pet tray appears to apply inconsistent filtering: one unfinished/recent thread is shown, another similar unfinished/recent thread is hidden.

Local evidence

~/.codex/state_5.sqlite showed the three newest non-archived threads updated within ~20 seconds of each other.

~/.codex/sessions/2026/05/24/*.jsonl showed:

  • completed older thread: final_answer / task_complete, correctly absent from pet
  • Thread C: commentary / token_count, visible in pet
  • Thread B: commentary / token_count, missing from pet
  • Thread A: visible in pet

Desktop logs also showed the missing Thread B conversation was created and registered as a browser sidebar thread:

  • created at 06:16:03 UTC
  • registered at 06:16:03 UTC
  • continued receiving route/session events around 06:30-06:32 UTC

Why this matters

The pet becomes unreliable as a "what is still running / waiting / ready" surface. In this case it hid a likely active/recent non-final thread while showing another thread with comparable local state.

Related but not identical

This does not look like the external CLI case: the affected threads are local Codex Desktop/App threads, and the mismatch is between the pet tray and local Codex thread/session state.

Activity

  1. added
    bug
    app
    session
    on May 24, 2026
  2. yevon commented on May 25, 2026

    @yevon

    I was just about to talk about this, the pets only sow the messages if the chat is new, but it never shows follow-up messages.

  3. fbdesignpro commented on May 27, 2026

    @fbdesignpro

    Yeah synchronization of the pet with what's going on is lost pretty quickly, making the whole feature useless until this is fixed!

  4. objective-bot commented on Jul 11, 2026

    @objective-bot

    I can reproduce this deterministically in desktop build 26.707.41301 on macOS 26.3 (Darwin 25.3.0 arm64).

    Deterministic trigger

    1. Wake the floating pet.
    2. Start a local task and confirm it appears as Running in the pet activity tray.
    3. Let the task continue for more than 180 seconds without an event that advances the conversation's updatedAt timestamp (for example, a long quiet command/tool operation).
    4. The task disappears from the pet tray even though its status remains running and the task is still working.
    5. A later progress event that advances updatedAt can make it reappear temporarily.

    Root cause observed in the installed renderer

    The session-to-notification filter computes an expiry for every non-idle status. For running, the expiry is hard-coded to:

    updatedAtMs + 180 * 1e3

    Once Date.now() reaches that value, the notification is omitted without first checking whether the session still has status === "running". The tray may refetch session data, but a quiet task retains the old updatedAtMs, so refetching does not prevent expiry.

    This explains why synchronization is "lost pretty quickly": the tray is treating a live running state as a stale notification.

    Expected fix

    Running sessions should remain visible until their status changes. At the expiry switch, the minimal behavior would be equivalent to:

    case "running":
      return null; // no expiry while the session is still running

    TTL behavior can remain for terminal/unread states such as failed or review. This would also match the documented pet status semantics: Running — A task is actively working.

  5. LogicLeapLtd commented on Jul 14, 2026

    @LogicLeapLtd

    Confirmed this is still present in Codex Desktop 26.707.72221 (build 5307) on macOS 26.5.2 (25F84, Apple Silicon).

    Observed behavior: the pet activity tray tracks only a subset of currently active local chats; long-running/quiet chats disappear even though their tasks are still active in Codex.

    Fresh bundle check on this build shows the same live-session expiry described above is still shipped:

    case "running":
      return updatedAtMs + 180 * 1e3;

    The notification filter then removes the session when Date.now() reaches that timestamp without first checking that the session is still running. The overlay is also built from a recent-conversations view rather than an explicit reconciled inventory of all non-idle threads.

    This is therefore not a spritesheet/custom-pet packaging problem. A durable fix should keep every live running/waiting session present until its actual status changes and reconcile the tray against the complete active-thread set after subscriptions/refetches.

  6. abuinitski commented on Jul 15, 2026

    @abuinitski

    Pets are actually a very strong codex feature for me - helps with context switching, especially while working with tasks in parallel, keeping track of what's currently active for me and what's done is essential while I distract for something else, waiting for Codex to finish current scope. Helps maintaining that gentle context awareness, and task switching is suddenly no that painful.

    However, it only works when it's consistent in what it shows. Currently, it's completely not. So thumbs up for fixing please!

  7. EunHyeokJung commented on Jul 19, 2026

    @EunHyeokJung

    I can reproduce this on macOS with Codex Desktop 26.715.31925.

    I often have multiple tasks actively running at the same time, but the Pet activity tray shows only a subset of them. The missing tasks are still running normally in the main Codex UI, so the Pet cannot currently be relied on to monitor parallel tasks.

    This appears consistent with the active-thread synchronization and expiry behavior described in this issue.

  8. fbdesignpro commented on Jul 19, 2026

    @fbdesignpro

    Yup, things still just "disappear" when tasks are in flight (tried to identify if it was when windows were switching or after a certain time but didn't find anything yet).

    Unfortunately defeats the purpose of having it at all which is a shame!

  9. EunHyeokJung commented on Aug 17, 2026

    @EunHyeokJung

    Hi, @etraut-openai

    Hope you don't mind the direct ping.
    I noticed you've helped triage Codex App/Pets issues before, so I was hoping you might be able to point this to the right person.

    #24302 has been open since May and is still reproducible on recent Codex Desktop builds. The discussion has also narrowed down at least one concrete cause: live running sessions can expire from the Pet activity tray after 180 seconds based on updatedAt, even though the task itself is still running.

    Would you mind taking a look, or letting us know if this is already being tracked internally?
    The Pet tray is genuinely useful for keeping track of multiple parallel tasks, but this bug makes it difficult to rely on for that purpose.

    Totally understand if you're not the right owner. Even pointer to the right team or engineer would be much appreciated.

    Thanks!

  10. darioluanne770968-prog commented on Sep 7, 2026

    @darioluanne770968-prog

    Adding a specific Show Pets / Hide Pets ordering case on a recent macOS build.

    Environment

    • Codex desktop app: 26.901.41600 (build 7982)
    • macOS: 26.6.2 (build 25G83), Apple Silicon
    • These version details were checked locally.

    Steps to reproduce

    1. Keep Pets hidden using Hide Pets.
    2. Create two normal tasks in the Codex desktop app and send a message in each, so both tasks are actively running.
    3. While both tasks are still running, click Show Pets in the bottom-left menu.
    4. Check the pet activity tray.
    5. With Pets now visible, start a third task and compare the tray.

    Actual behavior

    The tasks that were already running before clicking Show Pets are missing from the pet activity tray. A new task started after Pets is shown appears normally.

    As a comparison, when Pets is shown first and tasks are then started one after another, those tasks appear in the tray as expected.

    Expected behavior

    Showing Pets should immediately populate the activity tray with the tasks that are currently running, regardless of whether they started before or after the overlay was shown.

    Impact and workaround

    I use Pets to monitor multiple tasks while working in other applications. Opening Pets midway through ongoing work gives an incomplete view of what is running.

    The working order is to show Pets before starting tasks.

    Relationship to this issue

    This adds a specific activation-order trigger to the missing-active-task reports above. The problem is visible when the overlay is opened, rather than a task first appearing and later disappearing during a quiet operation. The root cause is unconfirmed; please check whether existing running-task state is reconciled correctly when the overlay is shown.

    Prepared with Codex assistance from my observed behavior.

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

    appbugpetssession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions