Skip to content

fix(conversations): Refuse pinning a child Conversation - #2862

Merged
dcramer merged 4 commits into
mainfrom
fix/pin-child-conversation
Nov 7, 2026
Merged

dcramer merged 4 commits into
mainfrom
fix/pin-child-conversation

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

pin.ts resolved any id to its root, so pinning from a Thread or Task page pinned the root.

A child pin now returns 409: "A child conversation cannot be pinned or unpinned. It uses its root's pin: ." The pinConversation MCP tool shares this path and states the rule in its description. The dashboard disables Pin on child pages, and the mock refuses a child pin the same way.

Tests. The pin scenario (pin.test.ts) covers a Task pin: it gets the 409 and leaves the feed pins unchanged. With the root-kind guard removed, the scenario fails (200, not 409).

via @dcramer.

--

View Session [Sentry]

pinConversation resolved any id to its root, so Pin on a Task page pinned
the root. A child pin would be a fact of the child, and no list shows child
pins yet, so refuse non-roots with a 409 that names the fix. The MCP tool
shares the error. The dashboard disables Pin on child pages, and the mock
refuses children like the API.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 7, 2026 5:40am UTC

Request Review

@blacksmith-sh

This comment has been minimized.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

7 screenshot changes — 7 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Captured Memories Popover · Mobile
Conversation Captured Memories Popover · Mobile
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Event Log Virtual · Mobile
Conversation Event Log Virtual · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Show 1 more changed screenshot
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed

The child refusal also covers unpin, and MCP output has no root field, so
the 409 now names the root: "A child conversation cannot be pinned or
unpinned. It uses its root's pin: <rootId>." The viewer already passed the
access check, so the id is safe to name.

Tests cover a child of a hidden conversation (404 before the refusal), the
root id in the message for pin and unpin, and the disabled Pin on a child
page for a participant. The mock child detail reports its root's pin, like
the API.

Co-Authored-By: David Cramer <[email protected]>
…ation

Co-Authored-By: David Cramer <[email protected]>

# Conflicts:
#	packages/junior-dashboard/src/mock-reporting/fixtures.ts
sentry-junior Bot added a commit that referenced this pull request Nov 7, 2026
#2862 merges first. Its child pin refusal stays; a root pin still restores
the shared archive.
@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 7, 2026 05:40
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 7, 2026
@dcramer
dcramer enabled auto-merge (squash) November 7, 2026 06:26
@dcramer

dcramer commented Nov 7, 2026

Copy link
Copy Markdown
Member

tests seem stalled -.-

@dcramer
dcramer merged commit 0847463 into main Nov 7, 2026
56 of 64 checks passed
@dcramer
dcramer deleted the fix/pin-child-conversation branch November 7, 2026 16:57

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 05f0937a Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant