Skip to content

fix(voice): name the thread a call was started from - #458

Merged
makeitfutureDev merged 2 commits into
betafrom
fix/relay-root-titles
Dec 3, 2026
Merged

makeitfutureDev merged 2 commits into
betafrom
fix/relay-root-titles

Conversation

@makeitfutureDev

Copy link
Copy Markdown
Owner

What

A voice call started from a thread bound that thread with an empty title (start() called bind(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_conversation already used (the caller's own conversation list = the Activity title), factored into listedTitle(). 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 in test/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

  • New: test/voice-calls.test.js "a call started from a thread records that thread with its title, even when the call never moves" — fails on origin/beta (actual ''), passes with the fix.
  • Updated: "a task finishing after the call moved elsewhere…" now expects the start thread's title in the announcement (it encoded the empty title).
  • node --test over 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

tbiyss and others added 2 commits December 3, 2026 06:02
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>
@makeitfutureDev
makeitfutureDev merged commit dd437a5 into beta Dec 3, 2026
5 checks passed
@makeitfutureDev
makeitfutureDev deleted the fix/relay-root-titles branch December 3, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants