Skip to content

feat(tui): copy assistant responses - #49601

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

mfn wants to merge 1 commit into
anomalyco:v2from
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

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.

1 participant