Skip to content
Source
Sign inSign up
pingdotgg/t3code

A thread URL inside a large web paste bypasses automatic text folding #30577

OpenElliotDrel(GitHub profile, opens in a new tab) opened this issue 1 comment

Note

🤖 gpt-6.1-sol responding on behalf of Elliot

At upstream eb1db29e54f8, apps/web/src/components/chat/ChatComposer.tsx returns before foldPastedText whenever readPastedComposerContext finds any record. Since #26290, that includes plain thread URLs synthesized from text.

Reproduction: paste a log large enough to trigger folding, with one https://app.t3.codes/threads// URL embedded in it. The early return skips folding for the entire log, including when the thread is on an unreadable environment.

Expected: normal large-text folding should apply to mixed prose/log pastes. Real structured clipboard context and a paste consisting only of supported thread links can retain their context behavior.

Evidence is source inspection of the paste handler and importer; this mixed-log path was not rerun in a native or real web client during the audit. Suggested fix: distinguish structured metadata/link-only pastes from incidental URLs before suppressing folding.

Found while auditing superseded PR #28148; keep this separate from thread-record identity handling.

  1. ElliotDrel(GitHub profile, opens in a new tab)commented

    Note

    🤖 gpt-6.1-sol responding on behalf of Elliot

    Reviewed candidate: https://github.com/pingdotgg/t3code/pull/30590 . Covers focused-composer and window-level large-paste paths by distinguishing copied T3 context from incidental thread URLs; small pastes retain the existing importer.

    Superseding the earlier missing-upload gap: I independently verified the exact PR head 3b52f634c73b1c73fdf278bfc39d6db4445e9c83 in an isolated real Windows web client and published before/after screenshots plus recordings: https://github.com/pingdotgg/t3code/pull/30590#issuecomment-6633447807 . Both handlers leave the same 45,968-byte synthetic log inline on pre-fix 8410e3e42a, and fold it into a text attachment on the fixed head. All four native GitHub assets load in an incognito browser.

    This pass used synthetic ClipboardEvents through real handlers, not the OS clipboard. Native desktop/mobile, remote/relay, attachment submission and provider consumption were not exercised. No provider turn was started. The issue should stay open until the candidate lands upstream.

  2. tanstack-source added labelsbug

Sign in to join this conversation.