codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS][Codex Desktop] Cmd+Shift+Enter append silently drops unconfirmed selection comment

Open abcjhby2871 opened this issue 3 weeks ago • 0 comments

Summary

In the macOS Codex Desktop app, using Cmd+Shift+Enter (⌘⇧↵) to append a message while a selected-text inline comment is still being edited can silently discard the comment text. The selected quote/reference is included, but the actual note typed by the user is missing. No warning is shown.

Correction (November 22, 2026): The earlier version of this issue incorrectly described the affected shortcut as Cmd+Enter and the action as an ordinary send. The affected user's reported workflow is Cmd+Shift+Enter to append a message, with the annotation still unconfirmed (✓ not clicked). Please treat this corrected sequence as the primary reproduction path. Whether plain Cmd+Enter or clicking the on-screen Send button exhibits the same defect has not been verified.

This is a user-reported data-loss problem, not a request to change the keyboard shortcut.

Environment

  • Product: Codex Desktop app
  • Platform: macOS, Apple silicon (arm64)
  • App version/build: not yet verified from About Codex
  • First reported: November 9–10, 2026; shortcut clarified November 22, 2026
  • UI: inline annotation/comment editor attached to selected or quoted text
  • Affected operation: append message via Cmd+Shift+Enter, not a confirmed ordinary-send flow

Steps to reproduce

  1. Open a Codex Desktop conversation and enter a state where a message can be appended to the ongoing task/conversation via Cmd+Shift+Enter.
  2. Select a passage of text and open its inline comment/annotation editor.
  3. Type a non-empty comment, e.g. Please explain why this assumption is valid.
  4. Leave the inline comment editor unconfirmed: do not click the ✓ checkmark.
  5. Press Cmd+Shift+Enter (⌘⇧↵) to append the message.
  6. Inspect the appended/queued message and what Codex subsequently receives.

Actual behavior

  • The selected or quoted text/reference survives the append operation.
  • The unconfirmed comment text is silently omitted.
  • The resulting message can contain only the selected reference, without the question/feedback that the user just wrote.
  • There is no warning that unsaved text will be dropped and no apparent recovery path.

Expected behavior

Appending a message via Cmd+Shift+Enter should preserve both the selected reference and the current text of any non-empty active inline annotation, even if the ✓ checkmark was not clicked first.

Ideally, the append action would commit the active annotation before constructing the outgoing message. At minimum, if auto-commit is not supported, it should block the append or ask for confirmation without discarding the draft. It must not silently discard typed text.

Workaround and suggested regression test

Workaround: Click ✓ to confirm the inline comment before invoking Cmd+Shift+Enter.

A focused regression test should compare the following two paths with the same selected passage and note:

  • A: Type note → click ✓ → Cmd+Shift+Enter to append.
  • B: Type note → leave ✓ unclicked → Cmd+Shift+Enter to append.

Both paths should retain the reference and the full comment text. Also verify that draft text is preserved if an append cannot proceed.

Related issues

  • #52051: Similar loss of an uncommitted response annotation on Ctrl+Enter in a community-packaged Linux desktop build. Same underlying cause is possible but unconfirmed.
  • #46301: Request to preserve annotation drafts independently of focus/confirmation state.

Evidence and limitations

This report reflects the affected user's observations; the filing assistant has not independently reproduced the bug. No app build number, screen recording, or diagnostic logs are attached yet. The exact source of the selection (assistant response, diff, or another text surface) has not been established. Plain Cmd+Enter and the graphical Send button have not been verified as affected. The key reproduction detail is unconfirmed inline note + Cmd+Shift+Enter append → reference retained, note lost.

abcjhby2871 avatar Nov 09 '26 15:11 abcjhby2871