Skip to content

Fix message copy action in Command Center - #3854

Closed
dmarticus wants to merge 1 commit into
mainfrom
posthog-code/fix-command-center-message-copy
Closed

Fix message copy action in Command Center#3854
dmarticus wants to merge 1 commit into
mainfrom
posthog-code/fix-command-center-message-copy

Conversation

@dmarticus

@dmarticus dmarticus commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Problem

The assistant-message copy action is positioned outside the message bounds and gets clipped in compact Command Center conversations.

Why: People should have the same copy affordance whether they view a task standalone or in the Command Center.

Changes

Keep the hover copy action inside the assistant message rail and reserve enough space to prevent it from covering message content. Add a regression test for the placement and clipboard behavior.

How did you test this?

  • pnpm --filter @posthog/shared build
  • pnpm --filter @posthog/ui exec vitest run src/features/sessions/components/session-update/AgentMessage.test.tsx
  • pnpm exec biome check packages/ui/src/features/sessions/components/session-update/AgentMessage.tsx packages/ui/src/features/sessions/components/session-update/AgentMessage.test.tsx

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 11e8a530-136e-44e6-af1f-3eb6a0ee49c0
@trunk-io

trunk-io Bot commented Jul 27, 2026

Copy link
Copy Markdown

🚫 This pull request was removed from the merge queue because it was closed by @dmarticus. See more details here.

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 1e8a5bd.

@dmarticus

Copy link
Copy Markdown
Contributor Author

ah, looks like someone caught this. closing it.

@dmarticus dmarticus closed this Jul 28, 2026
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