Repository navigation
fix(slack): Move a busy conversation when its Run ends - #3306
Merged
Merged
Conversation
A Continue here click while a Run holds the dashboard conversation now stores the click and moves the conversation when the Run completes, instead of refusing. Co-Authored-By: BYK <[email protected]>
…er-run Co-Authored-By: BYK <[email protected]> # Conflicts: # packages/junior/src/chat/ingress/slack-conversation-unfurl.ts
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Found 2 test failures on Blacksmith runners: Failures
|
Contributor
|
20 screenshot changes — 20 changed · 0 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots2 more changed screenshots in Frameshift. |
BYK
approved these changes
Nov 12, 2026
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.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
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.updateBrieftook 26 s). Now the click waits and the move happens when the Run ends.Behavior
Design
state.tsstores the click under its own Redis key next to the conversation, the way stop requests are stored.deferConversationMovechecks for an active Run and writes the click under the conversation mutation lock. A lease release therefore always sees a click stored before it.takeDeferredConversationMoveremoves the click only when no Run holds the conversation.completeConversationWorkintask-execution/store.tsruns 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 RedisGETwith no lock.busyand stores the click again. The next Run end runs it.getSlackAdapter) fromcreateConversationWorkthrough the queue callback and the worker, so the move runs inside the right Slack installation.src/chat/may not importapp/.continueConversationInSlacknow 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
completeConversationWork) runs the stored click. After a dead-lettered or exhausted Run, the click waits for the next Run or for a new click.via @BYK.
--
View Session [Sentry]