t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Privacy: full prompts are copied into hosted HTTPS URLs without a content-disclosure notice

Open lhagenmayer opened this issue 4 weeks ago • 2 comments

Before submitting

  • Searched existing issues for prompt-link/URL/privacy reports; no matching issue was found in the returned results.
  • Related existing discussion: https://github.com/pingdotgg/t3code/discussions/24241. This issue isolates the hosted HTTPS disclosure mechanism for bug triage; the discussion contains broader design proposals.

Area

apps/web; packages/shared

Steps to reproduce

  1. Put only synthetic text, such as Confidential example text, in the composer.
  2. Choose Copy prompt link.
  3. Inspect the copied URL: https://app.t3.codes/new?prompt=Confidential+example+text.
  4. Observe that the prompt is part of the URL query, rather than a content-free reference. The inspected copy handler reports only Prompt link copied.

Expected behavior

Copying a hosted link containing the complete prompt should clearly disclose that fact at the point of copying, so users can make an informed decision before forwarding it. Private prompt handoffs should have a route that avoids placing prompt content in a hosted HTTP query. Public prompt links can remain an explicit sharing option; opening a link must continue to create only a draft, requiring review and Send.

Actual behavior

buildNewThreadLink inserts the prompt into URL.searchParams, and copyPromptLink writes that URL to the clipboard with a generic success toast. The inspected copy path contains no content-disclosure warning.

Impact

A coding prompt may contain confidential project details. Whoever receives the complete URL can decode it. If the HTTPS URL is opened, its query is sent to the destination origin and may also be retained by URL-handling infrastructure such as history, request logging or link previews, depending on configuration. Clipboard copying alone does not establish an HTTP request.

This is a privacy risk, not a claim of a confirmed leak, public access to a private chat, or automatic search-engine indexing. No private prompt, real conversation identifier or sensitive screenshot is included in this report.

Version or commit

Source inspected at d833184115ec823825c2cc6f612443cd3a1c1b2c; desktop Nightly locally inspected as 0.1.7-nightly.20261102.4066.

Environment

macOS desktop. This report is based on source inspection and the serialized link format, not a packet capture or an audit of T3's production logs.

Workaround

Avoid hosted full-prompt links for confidential prompts; use a private communication channel and treat the link itself as containing the prompt.

lhagenmayer avatar Nov 02 '26 16:11 lhagenmayer

Hi! I'd like to work on this issue. I'll investigate the prompt-link generation and copy handler, particularly how the full prompt is embedded in the URL. I'll explore adding a clear privacy disclosure before copying the link and ensure the existing public sharing flow continues to work as expected. I'll share a PR once I have a solution. Thanks!

meutex avatar Nov 02 '26 17:11 meutex

Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.

juliusmarminge avatar Nov 12 '26 06:11 juliusmarminge