Skip to content

feat(tui): copy assistant responses - #49601

Open
mfn wants to merge 1 commit into
anomalyco:devfrom
mfn:mfn/assistant-copy-menu
Open

mfn wants to merge 1 commit into
anomalyco:devfrom
mfn:mfn/assistant-copy-menu

Conversation

@mfn

@mfn mfn commented Sep 17, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #41609

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Right-clicking an assistant response opens a Message Actions dialog with a Copy action.

Copy uses the response's underlying text parts, preserving raw Markdown instead of the rendered terminal layout. Existing terminal text selection takes precedence.

How did you verify your code works?

  • Push hook: bun run lint and repository-wide typecheck
  • Manually copied older assistant responses and raw Markdown
  • Verified right-click does not open the dialog while terminal text is selected

Screenshots / recordings

Manual verification completed locally, here's a video demonstrating the raw markdown copy into vim session:

Screen.Recording.2026-09-17.at.20.07.29_term.mp4

ps: human proof, mixing up things like "view" and "few" 🤦🏼 :)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@mfn mfn mentioned this pull request Sep 17, 2026
1 task done
@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:10
@mfn
mfn force-pushed the mfn/assistant-copy-menu branch from 44034a2 to 473d892 Compare October 17, 2026 19:29
@mfn
mfn force-pushed the mfn/assistant-copy-menu branch from 473d892 to 29b8b37 Compare October 18, 2026 17:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Copy message as raw markdown

1 participant