Skip to content

[Bug]: Cmd+Enter in the citation comment box sends the message but leaves it in the composer #33414

Closed

Description

@Srijan-D

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. In any thread with an assistant reply, type some text in the composer (e.g. check it again ).
  2. Select some assistant text and click Cite. The citation chip is inserted and the "Add an optional comment..." box opens.
  3. Leave the comment empty and press Cmd+Enter in the comment box (save and send).

Expected behavior

The message is sent and the composer clears, the same as sending any other way.

Actual behavior

The message is sent and a turn starts, but the composer still holds the same text and citation chip. It stays there after the turn ends. Sending it again would post a duplicate.

Only the Cmd+Enter save-and-send path does this. In the same session, on the same build:

How it was sent Sent? Composer cleared?
Cmd+Enter in the empty comment box yes no
Enter (Save) in the comment box, then the send button yes yes
Send button clicked while the empty comment box is open yes yes

In the code, the comment box's save-and-send (onSaveAndSend in ComposerPromptEditorTiptap.tsx) saves the comment into the citation node and then calls submitComposer right away (submitCitationAndSend in ChatComposer.tsx). Something on that path restores the old prompt after the send clears it. I haven't found the exact step.

Impact

Minor bug or occasional failure

Version or commit

Reproduced on main @ 6647b0a (dev build). First seen in the T3 Code desktop app.

Environment

macOS 15.1. Reproduced in an isolated dev build (vp run dev, the dev home folder) with the Replay (dev) provider, so it doesn't depend on the provider. First seen with Claude (claude-opus-5-5).

Screenshots, recordings, or supporting files

Image
Screen.Recording.2026-11-09.at.20.57.47.mov

Workaround

Press Enter (Save) in the comment box first, then send from the composer. Or clear the composer by hand after sending.


Investigated and drafted by Claude Code (claude-opus-5-5) running inside T3 Code.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions