Skip to content

[Bug]: Cancelling a new citation leaves it in the composer #10379

Description

@Neel2107

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 (reproduced in the desktop app)

Steps to reproduce

  1. Open a thread containing an assistant response.
  2. Select some text in the response and click Cite.
  3. In the citation comment popover, click Cancel or press Esc.
  4. Check the chat composer.

Expected behavior

Cancelling a new citation should dismiss the popover and remove that citation from the composer, preserving any existing draft text and previously saved citations. Cancelling comment edits on an already saved citation should keep that citation and its original comment.

Actual behavior

The popover closes, but the newly selected citation remains in the composer. The user has to remove it manually even though they cancelled the action.

Impact

Minor bug or occasional failure

Version or commit

Reproduced on main at 223ff4490 before the local fix.

Environment

macOS, local T3 Code desktop development build (Electron 43.4.1). Originally observed in T3 Code Nightly.

Workaround

Click the citation chip's remove button in the composer after cancelling.

Activity

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions