You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copying timeline text turns auto-linked file paths into [path](file:///…) Markdown links #6376
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
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.
bb renders both code spans as clickable file links.
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.
Verdict: REPRODUCED · Root-cause confidence: high · Label: confirmed-repro.
Root cause: Auto-linking inline-code file paths discards their code provenance, so copying serializes them as links or bare paths rather than code spans.
Evidence: Four regression cases fail on unchanged trusted main in two clean checkouts. After the fix, 131 relevant tests pass; lint, typecheck, formatting, and diff checks pass. Reproduction uses the real renderer and copy handler in jsdom, not a live OS clipboard.
Activity
bb-slop-cop commentedon Oct 27, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui.confirmed-repro.elikastelein commentedon Oct 27, 2026
+1
Preserve inline code when copying generated file links (get-bb#6377)
Copy visible text for code, formatted spans and plain prose selections (