Codex Desktop: Cmd+1..9 selects the wrong pinned chat after unified sidebar migration

Open
#36,282 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
desktop

Research direction

Start by tracing the thread1..thread9 command registration and dispatcher selection in the unified sidebar and legacy shortcut registrars. Compare the visible unified-sidebar order with the legacy loaded-thread order, including pinned-thread-ids and unified-sidebar-pinned-order-v1 filtering. Done means Cmd+N consistently opens the Nth currently visible chat without losing pins.

Written by the indexing model from the issue text.

Description

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

26.727.40816 (Build 6067)

What subscription do you have?

Not specified

What platform is your computer?

macOS — Darwin 25.5.0 arm64

What issue are you seeing?

In the unified Codex Desktop sidebar, Cmd+1 does not open the first visible pinned chat. It opens the sixth visible pinned chat instead. Other Cmd+number shortcuts are also mapped to the wrong visible positions.

This is not a keyboard-layout or custom-keybinding problem: Cmd+1 is correctly dispatched as the thread1 command, but the command resolves its target from a different thread ordering than the one rendered in the sidebar.

No chats or pins are lost. The bug affects shortcut target selection only.

What steps can reproduce the bug?
  1. Open Codex Desktop in the unified sidebar/project layout.
  2. Pin several chats and arrange them in a visible manual order.
  3. Press Cmd+1.
  4. Observe that Codex opens the sixth visible pinned chat instead of the first.
  5. Press other Cmd+number shortcuts and observe that they also select chats according to a different ordering.

The issue remains reproducible with no custom thread1..thread9 keybindings configured.

What is the expected behavior?

Cmd+N should open the Nth currently visible chat in the sidebar. This matches the behavior proposed in #11832: the shortcut index should follow the currently visible thread-list order.

Additional information

Read-only local inspection found:

  • Cmd+1..9 are correctly registered as thread1..thread9.
  • Desktop state contains two divergent pinned-order sources: pinned-thread-ids and unified-sidebar-pinned-order-v1.
  • The current renderer mounts both the unified-sidebar shortcut registrar and a legacy shortcut registrar.
  • The command dispatcher chooses among multiple active handlers by registration order.
  • Runtime navigation matches the legacy loaded-thread order rather than the visible unified-sidebar order.
  • The unified pinned-order state also contains stale client-new-thread entries, which are filtered differently from the legacy pinned IDs.

Suggested fix direction:

  • When the unified sidebar is enabled, register only the visible-order shortcut handler.
  • Alternatively, make both handlers consume the same visible shortcut target list.
  • Migrate or reconcile the two persisted pinned-order representations.

Feedback ID: no-active-thread-019fb6f6-4dff-7410-b9d5-2ceb57df6d50

Related issues:

  • #11832 — original Cmd+1..9 visible-thread behavior request
  • #35090 — related sidebar ordering/cache problem after pin/unpin, but not the same shortcut regression
Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.