Repository navigation
fix(core): Title a Slack assistant thread once, as main does - #5261
Open
sentry-junior[bot] wants to merge 5 commits into
Open
sentry-junior[bot] wants to merge 5 commits into
sentry-junior[bot] wants to merge 5 commits into
Conversation
Row: delivery:slack-assistant-thread-title. Main gives an assistant thread the Conversation title once, when its Turn starts (chat/providers/slack/turn.ts titleProjection). It reads the message's thread_ts, so a top-level DM gets no title, and maybeSyncAssistantTitle skips channel threads. Core never set it. Core now sets it after the Turn writes the title (turn-steps/assistant-thread-title.ts). Core's Slack Source gives a top-level message its own ts as threadTs, so a requester whose threadTs is its messageTs gets no title, as on main. The engine fixture's directMessage() takes a threadTs for a DM thread reply. The row leaves the uncovered baseline. Co-Authored-By: Thomas Jiang <20501235+thomasjiangcy@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…n does Main starts the title when it stores the input (chat/runtime/turn-preparation.ts:271) and sets it on Slack beside its run (chat/providers/slack/turn.ts:1039). Core now does both on the step that reads the Turn's first inputs, beside its model request, and the step's close waits for it. The Turn-end projection goes. The parity case holds the first reply and checks that the title comes before it. Co-Authored-By: Thomas Jiang <20501235+thomasjiangcy@users.noreply.github.com>
…read-title Co-Authored-By: Thomas Jiang <20501235+thomasjiangcy@users.noreply.github.com>
Co-Authored-By: Thomas Jiang <20501235+thomasjiangcy@users.noreply.github.com>
…ead title As the other core Slack calls do (delivery/slack.ts, turn-receipts.ts), the title call now runs under the requester's installation, so a multi-workspace install sends it with that workspace's token.
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.
On main, a Slack assistant thread gets the Conversation title once, while its first Turn runs. Main starts the title when it stores the input (
chat/runtime/turn-preparation.ts:271) and sets it on Slack beside its run, without waiting for it (chat/providers/slack/turn.ts:1039). Later Turns do not set it again. Main reads the message'sthread_ts, so a top-level DM gets no title, andmaybeSyncAssistantTitleskips channel threads. Core never set a title at all.Core now starts and sets the title on the step that reads the Turn's first inputs, beside its model request (
turn-steps/assistant-thread-title.ts, called from the consumer's step tools). The step's close waits for it, because core has nowaitUntilto own it. Core's Slack Source gives a top-level message its own ts asthreadTs. So a requester whosethreadTsis itsmessageTsgets no title, the same as on main.The shared engine fixture's
directMessage()now takes an optionalthreadTsfor a reply in a DM thread. Existing callers pass none and get the same top-level DM as before. Thedelivery:slack-assistant-thread-titlerow loses itslikely-core-gapand leaves the uncovered baseline.Touches neither the Slack thread join that #5229 moves nor its rows.
via @thomasjiangcy.
--
View Session [Sentry]