Skip to content

native: assistant text selection citations (TR-CITE) #92

Closed

Description

@rynfar

Port ledger row TR-CITE: select assistant text, the selection toolbar, citation chips in the composer with an optional comment, and the citation procedure sent with the turn. Web sources: apps/web/src/components/chat/AssistantSelectionToolbar.tsx, AssistantCitationChip.tsx, AssistantCitationCommentEditor.tsx, AssistantCitationSource.tsx, citationProcedure.ts, assistantCitationCommentDismissal.ts, useAssistantCitationTarget.ts, useComposerSelection.ts. Native builds on crates/app/src/selectable_text.rs and the composer context chips (CO-CONTEXT).

Intake 30724e2..a07be97

  • pingdotgg/t3code#29013: Extend citation/modal-return source paths. Settings/Usage return must not replay quote navigation; GPUI has no URL hash but needs equivalent focus/navigation behavior.

Tracking digest #214. Ledger Issue-column audit links incomplete rows to open remaining-work trackers; those are not completion claims.

Activity

  1. added this to the M2 Parity core milestone on Nov 3, 2026
  2. added
    parity
    native:feature
    status:in-progress
    on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Initial TR-CITE slice is ready for review in #96, head b8a983a9068169e1be36358f961702dcf10642e7.

    Shipped: assistant selection Cite toolbar (including inline code and multiline highlighted code), Tab/Enter activation, composer citation chips and optional comments, Enter save / modifier-Enter send / Escape cancel, outside/focus-out dismissal rules, web-compatible UTF-16 selectors and serialized citation links, and bounded source-history reveal. The ledger stays partial.

    Remaining gaps: rich inline composer chips (the textarea still displays serialized links); exact offsets for repeated quote occurrences; source-anchored comment popups and source-disappearance observation; quote-range highlights/pulse and toolbar restoration after scrolling; sent-message citation chip/popovers; cross-environment source navigation; insertion while answering a provider question or editing a queued message.

    All 1,004 native workspace tests passed serially, clippy passed, and theme/parity/conformance checks plus check:changed fork/native passed. Offscreen screenshots are attached to the PR. Verified typed comments, keyboard Cite, Escape removal, and code selection without invoking Copy or dispatching a turn.

  4. added
    status:review
    and removed
    status:in-progress
    on Nov 3, 2026
  5. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    First slice merged in #96 (TR-CITE stays partial): selectable assistant text, the Cite toolbar (mouse and keyboard), composer citation chips with comment editor and dismissal rules, web-compatible citation links/payloads, bounded source-history reveal. Remaining gaps: inline rich chips (the textarea still shows serialized links under the chip row), repeated-quote offsets (ambiguous quotes are refused), source anchors/highlights, sent-message chips, cross-environment navigation, question/queued-edit insertion.

  6. removed
    status:review
    on Nov 3, 2026
  7. rynfar commented on Nov 14, 2026

    @rynfar
    OwnerAuthor

    Closed by PR #367 (merged into native at 3c6e5b82351c3372901e03a60a9136e9963856d4).

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

    native:featureparity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions