openai / openai/codex

Codex Desktop: “Add to chat” does not focus the composer after attaching selected response text

Open
#39,338 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

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

ChatGPT/Codex Desktop 26.810.52044 (build 6662)

What subscription do you have?

Not specified.

What platform is your computer?
  • macOS 26.5.2 (25F84)
  • Darwin 25.5.0
  • Apple Silicon / arm64
What issue are you seeing?

When I select text inside an assistant response and click Add to chat, the selected passage is correctly attached to the composer as a reference, but the composer does not receive keyboard focus.

There is no active caret in the message box, so I cannot immediately type the follow-up question. I must click the composer manually every time before typing.

This makes the selected-text workflow unnecessarily interruptive: Add to chat performs the attachment action but does not complete the expected transition into writing the follow-up.

What steps can reproduce the bug?
  1. Open a conversation in ChatGPT/Codex Desktop.
  2. Select a sentence or passage inside an assistant response.
  3. Click Add to chat in the selection action.
  4. Confirm that the selected passage appears as a reference in the composer.
  5. Without clicking anywhere else, begin typing.
  6. Observe that the composer is not focused and the typed text does not enter the message box.
  7. Click the composer manually.
  8. Typing now works normally.

The behavior is reproducible every time in the version listed above.

What is the expected behavior?

After Add to chat attaches the selected passage, the app should automatically:

  1. focus the message composer;
  2. place the text caret in the input field; and
  3. allow the user to immediately type the follow-up question.

This would make the interaction a continuous flow: select text → add it to the chat → type the question.

Actual behavior

The selected passage is attached successfully, but focus remains outside the composer. An additional manual click is required before typing.

Additional information

This appears distinct from:

  • #25321, which reports intermittent composer focus/caret loss on macOS without this deterministic trigger; and
  • #22677, which requests richer per-selection follow-up comments.

This report is specifically about focus not transferring to the composer immediately after the existing Add to chat action succeeds.

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.

Research direction

Start at the desktop conversation UI entry point for the existing “Add to chat” selection action and reproduce the workflow on macOS. Verify that the selected passage still attaches and that the composer receives focus with a caret immediately afterward; completion means typing works without an extra click.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.