Repository navigation
fix(conversations): Refuse pinning a child Conversation - #2862
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
This comment has been minimized.
Contributor
|
7 screenshot changes — 7 changed · 0 added · 0 removed Review screenshots in Frameshift |
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.
…ation Co-Authored-By: David Cramer <[email protected]>
dcramer
approved these changes
Nov 7, 2026
dcramer
enabled auto-merge (squash)
November 7, 2026 06:26
Member
|
tests seem stalled -.- |
23 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pin.tsresolved 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
pinConversationMCP 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]