Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): send cited messages with Cmd+Enter #9307

Mergedextoci(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/9307/headmerged by juliusmarminge View on GitHub

Summary

The citation comment box could save a citation into the composer, but could not submit the resulting message. Cmd/Ctrl+Enter now saves the citation and sends the full composer message.

Verification

  • Web typecheck
  • Targeted lint and formatting
  • 65 targeted composer tests
  • Actual interaction test through the browser

No visual changes; this is keyboard behavior only.

Generated with GPT-5.6 in T3 Code.


Note

Low Risk Keyboard-only composer UX change that delegates sending to the existing submitComposer path; no auth, API, or data-model changes.

Overview Citation comment popovers in the composer could persist a comment on the chip but had no way to send the message afterward. Cmd/Ctrl+Enter now saves the comment and submits the full composer; plain Enter still saves without sending, and Shift+Enter still inserts a newline.

The flow adds optional onSubmitAndSend / onSaveAndSend hooks from AssistantCitationCommentEditor through AssistantCitationChip, ComposerCitationCommentContext, and ComposerPromptEditor into ChatComposer, where submitCitationAndSend reuses composerSubmissionIntentForEnter (modifier + non-draft rules) and calls submitComposer. The chip popover only closes when save or save-and-send callbacks return success.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 914daffdeab5a3d752b33265e760e2e41a20e2aa. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

[!NOTE]

Add Cmd+Enter send action to citation comments in web composer

  • Adds an onSubmitAndSend callback to AssistantCitationCommentEditor triggered by Cmd/Ctrl+Enter (without Shift); plain Enter still saves the comment without sending.
  • Threads the callback through ComposerPromptEditor and the citation node context so citation editors inside the composer receive the send action.
  • Implements submitCitationAndSend in ChatComposer to compute the submission intent and invoke submitComposer.
  • Behavioral Change: AssistantCitationChip popover now stays open if the onSaveAndSend callback reports failure, instead of closing immediately after save.
Macroscope summarized 914daff.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. Approvability

      Verdict: Approved at facf96b

      Macroscope's review found this PR approvable — This is a contained keyboard-behavior bug fix that threads citation comments into the existing composer submission path. Plain save behavior remains unchanged, while an explicit Cmd/Ctrl+Enter now saves the citation and sends the composed message.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. juliusmarminge merged this77e35c5

    4. juliusmarminge closed this

Sign in to join this conversation.