Repository navigation
fix(voice): name the thread a call was started from - #458
Merged
Merged
Conversation
A call started from a thread bound it with an empty title, so the call record, the saved receipt (Activity -> Calls) and a later task announcement listed that first thread untitled unless the call moved back to it. The start now looks the title up in the caller's own list, the same lookup the dashboard move and the voice's switch already use. A thread outside the caller's list stays untitled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>
The call's title lookup searched the newest 20 of the caller's own conversations for the bound thread, so a thread older than that page was bound, switched to and saved in the call receipt without its title. The conversation service's list() now takes an exact `thread` id and narrows to it before the page is cut; the call's start and switch both use it. Regression: 25 newer owned threads plus the target, asserting the binding, a switch back and the saved receipt (fails on the previous head). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tiberiu Socaci <tsocaci@makeitfuture.com>
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.
What
A voice call started from a thread bound that thread with an empty title (
start()calledbind(call, { channelId, threadTs })with no title). The call record, the saved receipt (Activity → Calls) and a task announcement made after the call moved away therefore listed the first thread untitled — for natively posted roots too — unless the call happened to switch back to it later (the receipt keeps the last visit's title).The start now resolves the title with the same lookup the dashboard move and the voice's own
switch_conversationalready used (the caller's own conversation list = the Activity title), factored intolistedTitle(). A thread outside the caller's own list keeps an empty title rather than a guessed one.Found by
QA campaign fire151 (CONV-SERVICE-VOICE-01 side note: "the call record lists the thread with an empty title even for a natively posted root") and fire150 (HUB-03 / CALL-SWITCH-01). No separate Slack thread for this item.
Not changed (investigated, intended)
Roots posted by a person through another app (user-token relay, e.g. Composio:
user= the person,bot_id/app_id= the app) are not indexed in Activity (slackThreadRootOwner,src/gateway/slack-threads.js). That is the documented design ("does not include bot-started threads") pinned by regression tests intest/home-threads.test.js(e.g. "a bot root can never become the author's personal work" with{ user: "U_MINE", bot_id: "B_FOREIGN" }). Whether trusted-app user-token posts should count as personal work is an owner decision, not part of this fix.Tests
test/voice-calls.test.js"a call started from a thread records that thread with its title, even when the call never moves" — fails onorigin/beta(actual''), passes with the fix.node --testover voice-calls, voice-*, call-history, conversation-service, conversation-hubs, dm-conversations, home-threads: 244 tests, 243 pass, 0 fail (1 skipped).npm run check:static: passed.npm run check:dco -- origin/beta..HEAD: passed.Live acceptance (not executed): start a call from a natively posted root, stay in it, hang up — Activity → Calls and the DM call record list the thread with its title; Claude and Codex.
🤖 Generated with Claude Code