Skip to content

Copying timeline text turns auto-linked file paths into [path](file:///…) Markdown links #6376

Closed

Description

@bankir82

Summary

Since 0.47.1 copying a selection from the thread timeline produces Markdown (TimelineSelectionMenu copy handler → selection serializer). That's nice for real links, but file references that bb itself auto-links (inline code that looks like a path) are serialized as Markdown links with a file:// URL, and the label gets Markdown-escaped. The pasted text no longer matches what was on screen or what the agent wrote.

Steps to reproduce

  1. In a project thread, get an assistant message containing an inline code path, e.g.
    **Template** (`templates/my_template.json` → `Template.xml`): added a cell.
  2. bb renders both code spans as clickable file links.
  3. Select the line in the timeline and copy (Ctrl+C).

Actual (text/plain)

**Template** ([templates/my\_template.json](file:///home/me/project/templates/my_template.json) → [Template.xml](file:///home/me/project/Template.xml)): added a cell.

With non-ASCII names the URL is percent-encoded and becomes very long (file:///…/%D0%BF%D1%80_%D0%9F%D0%A4…json).

Expected

The source the agent wrote, i.e. the code span is kept:

**Template** (`templates/my_template.json` → `Template.xml`): added a cell.

Notes

  • 0.46.1 left copy to the browser, so this is a regression for anyone pasting agent output into other tools, chats or docs.
  • In the serializer, A elements are emitted as [label](href) unless data-bare-url is set, and the label goes through Markdown escaping (_ → \_). bb-generated file links (from inline code / file references) probably need to serialize back to their original inline code (or plain path) instead of a Markdown link. Agent-authored Markdown links should still copy as links.
  • The text/html flavor having the file:// href is fine. The issue is only the text/plain Markdown.

bb 0.47.1, Linux server, Chrome desktop browser.

Activity

  1. added theissue type on Oct 27, 2026
  2. added
    ui
    confirmed-repro
    on Oct 27, 2026
  3. bb-slop-cop commented on Oct 27, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    AGENT GENERATED

  4. elikastelein commented on Oct 27, 2026

    @elikastelein

    +1

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

    confirmed-reproui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions