Skip to content

Convert pasted thread links into composer pills - #4851

Merged
brsbl merged 3 commits into
mainfrom
bb/convert-thread-links-to-ids-thr_xeaa8vnrt2
Oct 4, 2026
Merged

brsbl merged 3 commits into
mainfrom
bb/convert-thread-links-to-ids-thr_xeaa8vnrt2

Conversation

@brsbl

@brsbl brsbl commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The shared composer treated pasted thread URLs as ordinary text instead of resolving them into existing thread mentions.

What changed

  • Bare same-origin thread URLs become title pills; Undo restores the original URLs.
  • Code, quotes, authored links, foreign URLs, and query/fragment destinations remain literal; paste without formatting bypasses conversion.
  • One editor-owned collection tracks pending pastes, using Tiptap change ranges. Deadline, cancellation, and undo behavior are preserved.
  • CLI and Plugin Guide document the existing equivalent mention representation.

How you verified

  • Post-merge CI: all 30 checks passed on b192472f410a.

  • Remote CI passed at 08261de44e, including builds, typechecks, lint, bundle budgets, and Linux/Windows tests.

  • Chrome for Testing 151: conversion, two-step undo/redo, mixed HTML protection, plain-paste bypass, and restored drafts.

  • Side-chat composer: paste, undo/redo, and reload restored the thread pill at 08261de44e.

  • Queued-message editor: paste, undo/redo, save, and reopen preserved the thread mention at 08261de44e.

  • Slop Cop at 08261de44e: security and performance clear; architecture and correctness share one P2 follow-up below. No P0/P1.

The 19 lifecycle, 14 parser, and 156 shared-composer tests pass remotely. Clipboard payloads use browser ClipboardEvents; native clipboard shortcut dispatch was unavailable. Real keyboard-handler regression tests cover Cmd/Ctrl+Shift+V. User QA passed the new-thread and follow-up composers; the user authorized merge after side-chat/queue QA and green CI.

P2 follow-up: mixed HTML pasted immediately after an existing word can shift clipboard protection indexes and convert a code URL. Preserve paste-relative occurrence identity or skip when contextual filtering changes correspondence. See paste filtering.

Screenshots use identical fixture data and route at 2× density. Before: 75308f4076; after: 08261de44e.

Composer Before After
Wide, 1440 × 900 Before: raw pasted thread URL After: pasted thread title pill
Compact, 390 × 844 Before: raw URL wraps in compact composer After: title pill in compact composer

Additional QA evidence at 08261de44e, Chrome for Testing 151, 1440 × 900 CSS pixels at 2×:

Side-chat composer after paste and redo Queued-message editor after saving and reopening
Side chat: pasted thread title pill Queued-message editor: persisted thread title pill

BB-Thread: Convert thread links to IDs

AGENT GENERATED

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@brsbl brsbl changed the title Turn pasted thread URLs into composer pills Convert pasted thread links into composer pills Oct 4, 2026
@brsbl
brsbl merged commit b192472 into main Oct 4, 2026
34 checks passed
@brsbl
brsbl deleted the bb/convert-thread-links-to-ids-thr_xeaa8vnrt2 branch October 4, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant