Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

trunk-merge/pr-3831/b5885f15-52e1-4534-a7ef-92522bf309eb - #3938

Closed
trunk-io[bot] wants to merge 5 commits into
mainfrom
trunk-merge/pr-3831/b5885f15-52e1-4534-a7ef-92522bf309eb
Closed

trunk-merge/pr-3831/b5885f15-52e1-4534-a7ef-92522bf309eb#3938
trunk-io[bot] wants to merge 5 commits into
mainfrom
trunk-merge/pr-3831/b5885f15-52e1-4534-a7ef-92522bf309eb

Conversation

@trunk-io

@trunk-io trunk-io Bot commented Jul 29, 2026

Copy link
Copy Markdown
Trunk Merge Pull Request Banner

This pull request was created and is being managed by Trunk Merge.

This pull request is based on the main branch at SHA 5297f7f29c2860e495a055e711572b5066216556.

See more details here.

When CI completes, this pull request will be closed automatically.

Pull Requests Being Tested

This pull request is testing the changes from pull request 3831.

adamleithp and others added 5 commits July 29, 2026 09:49
Every message row carried a hover copy button plus 36px of reserved
right padding for it. Drop both. In its place:

- Each completed turn's hover footer gains a "Copy turn" button beside
  its timestamp, copying that turn as plain text (prompt + agent prose;
  tools and thoughts left out). The windowed body carries the same text
  on the row that already carries the turn timestamp.
- User messages get the same button in their own footer.
- Right-clicking any user or agent message offers "Copy message".

Both buttons are quill Button + Tooltip, muted-foreground in every
state, and confirm with an anchored quill toast ("Copied!") fired off
the copied flag -- so a rejected clipboard write never claims success.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYPVPkN4Lm3gygchrpcoqr
The per-message context menu sits inside SessionView's own menu and
wins the event, so right-clicking a message was the one spot in the
session where "Show raw logs" went missing. Carry the toggle (reading
the same sessionViewStore state) alongside "Copy message".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BYPVPkN4Lm3gygchrpcoqr
…u copy

Two review fixes:

groupIntoTurns emits the user message as a standalone row, so the turn
footer's copy carried the agent's prose without the prompt it answers.
Each AgentTurn now records the user-initiated row that opened it, and
both bodies pass it ahead of the turn's items to buildTurnCopyText.

The context-menu "Copy message" wrote to the clipboard synchronously
from the closing menu, which rejects in Electron while focus is being
restored — silently leaving the clipboard's previous contents. It now
goes through the deferred copyFromContextMenu helper (same as
SessionView's outer menu) and surfaces both outcomes as toasts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q2H7r8hPC6pFCDrnYkMSRD
@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit e7a170c.

@trunk-io trunk-io Bot closed this Jul 29, 2026
@trunk-io
trunk-io Bot deleted the trunk-merge/pr-3831/b5885f15-52e1-4534-a7ef-92522bf309eb branch July 29, 2026 12:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants