Skip to content

Regression in 0.47.1: copying an inline code span from the timeline includes the backticks #6484

Closed

Description

@polevaultweb

Summary

Regression in 0.47.1: before this update, copying an inline code span gave the bare text. Since 0.47.1 the timeline copy handler writes Markdown to text/plain (see #6376). Agents often put a command on its own line as inline code, e.g. "so run:" followed by `valet restart nginx`. Selecting and copying that line keeps the backticks, so pasting it into a terminal fails. When the selection is all inside one code span, I'd expect just the visible text.

Versions and environment

  • bb desktop 0.47.1, macOS 15.4 (worked as expected before updating to 0.47.1)
  • claude-code provider

Steps to reproduce

  1. Get an assistant message where a paragraph is nothing but an inline code span, e.g.

    **Your step:** nginx needs sudo to reload, so run:
    
    `valet restart nginx`
    
  2. In the timeline, select the valet restart nginx line.

  3. Copy (Cmd+C) and paste it into a terminal.

Expected vs actual

Actual (text/plain):

`valet restart nginx`

Expected:

valet restart nginx

What you ruled out

Suggestion

When the whole selection sits inside a single inline code span (or a code block), copy the raw text with no Markdown around it. A selection that mixes prose and code can still be copied as Markdown. Another option is a "Copy as plain text" entry in the selection menu.

Suggested priority

Medium. It hits anyone copying commands out of agent replies. Workaround: delete the backticks by hand after pasting.

AGENT GENERATED

Activity

  1. added theissue type on Oct 28, 2026
  2. added
    ui
    on Oct 28, 2026
  3. changed the title [-]Copying an inline code span from the timeline includes the backticks[/-] [+]Regression in 0.48.0: copying an inline code span from the timeline includes the backticks[/+] on Oct 28, 2026
  4. changed the title [-]Regression in 0.48.0: copying an inline code span from the timeline includes the backticks[/-] [+]Regression in 0.47.1: copying an inline code span from the timeline includes the backticks[/+] on Oct 28, 2026
  5. polevaultweb commented on Oct 28, 2026

    @polevaultweb
    Author

    Still reproduces on bb desktop 0.48.0 (macOS 15.4): copying a line that is only an inline code span still includes the backticks.

  6. added
    confirmed-repro
    on Oct 28, 2026
  7. bb-slop-cop commented on Oct 28, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Medium · Effort Low · labels: ui, confirmed-repro.
    • Reproduction report: REPRODUCED, root-cause confidence high. Repeated in two clean trusted-main checkouts at the document copy-event boundary (Linux/jsdom; native macOS not directly tested).
    • Root cause: Only selections inside code blocks bypass Markdown serialization; inline-code-only selections acquire backticks.
    • Fix: Ready PR #6487 preserves raw code-only copies and keeps Markdown for mixed selections and Add to chat. 132 changed text lines across five files.
    • Verification: Four focused cases fail before the fix; all 119 relevant tests pass afterward, along with app lint, typecheck, and build. Rechecked after rebasing onto latest trusted main.

    AGENT GENERATED

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