Repository navigation
fix(slack): Let anyone move a public conversation with Continue here - #3304
Merged
Merged
Conversation
A person who saw a shared link to a public dashboard conversation got "Only people in this conversation can move it here." Anyone may already read and post in a public conversation, so anyone may move it from the button too. Private conversations get no button and refuse a stale one. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Nov 12, 2026
Contributor
|
15 screenshot changes — 15 changed · 0 added · 0 removed Review screenshots in Frameshift Show 9 more changed screenshots |
BYK
added a commit
that referenced
this pull request
Nov 12, 2026
A "Continue here" click used to get "Wait for Junior to finish, then try again." whenever a Run held the conversation's lease. That happened even after the reply showed in Slack, while post-reply plugin tasks were still running (`briefs.updateBrief` took 26 s). Now the click waits and the move happens when the Run ends. **Behavior** - A click while a Run holds the conversation stores the click. The clicker gets "This conversation moves here when Junior finishes." Nothing is posted in the thread yet. - When the Run completes, Junior moves the conversation as the stored clicker and updates the preview, the same as an immediate click. - If the move is refused at that point (thread taken, already moved), the clicker gets the existing refusal as an ephemeral note. The existing cleanup removes the extra post. - A repeat click waits for the same move. A click for another thread does not replace the first one: "This conversation moves to another thread when Junior finishes." - The access and one-move checks run again at move time. They use the public-conversation rule from #3304. **Design** - `state.ts` stores the click under its own Redis key next to the conversation, the way stop requests are stored. `deferConversationMove` checks for an active Run and writes the click under the conversation mutation lock. A lease release therefore always sees a click stored before it. `takeDeferredConversationMove` removes the click only when no Run holds the conversation. - `completeConversationWork` in `task-execution/store.ts` runs the stored click right after the Run releases its lease. This happens inside the same queue delivery, so a fixed timer is not needed. If no click is stored, the check is one Redis `GET` with no lock. - I chose this over a delayed queue retry because a Run end is a definite event. A poll would need a new topic and a max age, and it would still be late. A paused Turn can wait for hours, and polling it would waste work. - If a new Run starts between the take and the move, the move returns `busy` and stores the click again. The next Run end runs it. - The Slack adapter is injected (`getSlackAdapter`) from `createConversationWork` through the queue callback and the worker, so the move runs inside the right Slack installation. `src/chat/` may not import `app/`. - `continueConversationInSlack` now returns `{ status: "busy" }`. Before, it returned a refusal with the BUSY text. The dashboard API route keeps its synchronous 409 with the same text. A deferral there would need a dashboard UI change, so I left the route as it was. **Known gaps** - The click is removed before the move runs. If the process dies during those few seconds, the click is lost. The preview still has its button, and a new click on an idle conversation moves it right away. - Only a normal Run end (`completeConversationWork`) runs the stored click. After a dead-lettered or exhausted Run, the click waits for the next Run or for a new click. - The stored click expires after the usual 7-day thread state TTL. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A60b2f56c17b0d3fb7a349ca1d50d394e --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A60b2f56c17b0d3fb7a349ca1d50d394e) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A60b2f56c17b0d3fb7a349ca1d50d394e/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
23 tasks done
BYK
added a commit
that referenced
this pull request
Nov 24, 2026
A channel member who is not a participant got "only participants can answer this" when they clicked an answer button on a question in a public Conversation. The dashboard also hid the answer form from viewers of a public Conversation who are not participants. ## New rule Anyone who can see a public question can answer it: - In Slack, that is a member of the public channel the Conversation is bound to. - On the web, that is any signed-in viewer allowed to see the public Conversation (the same rule as "Continue here" in #3304). A public question is an open action item with a request, linked to a public Conversation that owns it. The person who answers becomes the actor of the answer. Their answer goes in as their own message, so the single-actor Turn rule (#2574) applies as before. These keep the assignee rule: - Private items, even in a public Conversation (#3015). They also stay hidden. - To-dos, plugin items, and Automation alerts. - Dismiss and Take. A viewer can answer, but cannot close or claim someone else's question. - Thread replies. A reply from someone who is not an assignee still does not close an item. Only card buttons and the dashboard form take the wider rule. The Slack checks are unchanged. `resolveSlackActingUser` still enforces workspace membership and allowed domains, so a Slack Connect user and a guest from a domain that is not allowed still cannot answer. ## Changes - `canAnswerInboxItem` in `inbox-items/access.ts`. Submits in `actions.ts` and the Slack answer form use it. Readers of a public Conversation can now read its public action items. - The API adds `canAnswer` to each inbox item. The dashboard shows the answer form when `canAct || canAnswer`, and Dismiss and Snooze only when `canAct`. - `design/inbox.md`: the answer rule now separates private items from public questions. - The Slack card tests and one API test moved into new files with a shared fixture, to stay under the file-length limit. - `inboxData.tsx` waits for the first Conversation feed page before it reads missing Conversation titles. Before, an Inbox list that loaded before the feed read the title of every linked Conversation. The System People request-budget e2e test now holds back the feed to cover this. ## Screenshots A question in a public Conversation, seen by a signed-in viewer who is not a participant. Before: no form, only "Waiting on…"  After: the answer form with Send, and no Dismiss or Snooze  <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A1901e6569f26c781ab5fe01e --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3A1901e6569f26c781ab5fe01e) [[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A1901e6569f26c781ab5fe01e/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]> Co-authored-by: BYK <[email protected]>
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.
Clicking Continue here on a shared link to a public dashboard conversation refused anyone who wasn't a participant: "Only people in this conversation can move it here." That doesn't fit, because anyone signed in can already read and post in a public conversation.
resolveSlackActingUser), the channel must be public, and the one-move and busy checks still apply.conversation-unfurl-webhook.test.ts: the outsider case now moves the conversation, and the private case also checks that a forged click is refused.via @BYK.
--
View Session [Sentry]