Skip to content

feat(inbox): clarify agent-session actions and gate them on personal GitHub#2615

Draft
Twixes wants to merge 1 commit into
mainfrom
posthog-code/clarify-inbox-agent-actions
Draft

feat(inbox): clarify agent-session actions and gate them on personal GitHub#2615
Twixes wants to merge 1 commit into
mainfrom
posthog-code/clarify-inbox-agent-actions

Conversation

@Twixes

@Twixes Twixes commented Jun 11, 2026

Copy link
Copy Markdown
Member

Problem

In the inbox, the "Discuss" / "Ask about this report…" copy doesn't make it clear that the button starts an agent session (people read it as leaving a note for other humans). On top of that, these actions author commits as the user, so they need a personal GitHub integration — but when one is missing the user only finds out via a toast after clicking. The pull request detail was also missing the "copy sharing link" button that the report detail has.

Changes

  • Clearer agent copy: "Discuss" → "Discuss with agent", and the question placeholder "Ask about this report…" → "Ask PostHog about this report…".
  • Gate on personal GitHub: when the user has no personal GitHub integration, the Discuss and Create PR buttons are disabled with a disabledReason ("…you need to connect GitHub to your account for agent sessions"), and a "Connect personal GitHub for agent sessions" link button appears to the left of Dismiss (linking to GitHub settings). This replaces the need for the old "Connect a GitHub integration to start a discussion" message in the common case.
  • Copy link on PRs: added the missing copy-sharing-link button to the pull request detail, matching the report detail.

How did you test this?

  • pnpm --filter @posthog/ui typecheck — passes.
  • biome check on the changed files — clean.
  • pnpm --filter @posthog/ui test (inbox suite) — 697 passing.

Automatic notifications

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

Created with PostHog Code from a Slack thread

…GitHub

Make the inbox report/PR detail actions clearer that they start an agent
session, and require a personal GitHub integration before they can run.

- Rename "Discuss" to "Discuss with agent" and the question placeholder to
  "Ask PostHog about this report…".
- Disable Discuss / Create PR with a "connect GitHub to your account"
  disabledReason when the user has no personal GitHub integration, and show a
  "Connect personal GitHub for agent sessions" link to the left of Dismiss.
- Add the missing "copy sharing link" button to the pull request detail.

Generated-By: PostHog Code
Task-Id: a030ae39-2898-4bef-8bc6-3cc67c1e45ef
@github-actions

Copy link
Copy Markdown

React Doctor could not complete this scan.

No React dependency found in /tmp/react-doctor-baseline-U6NeT2/package.json. Add "react" to dependencies (or peerDependencies) and re-run.

Reviewed by React Doctor for commit 23f933a.

@greptile-apps

greptile-apps Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(inbox): clarify agent-session actio..." | Re-trigger Greptile

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