Skip to content

feat(meetings): name the remote speakers in Slack huddle transcripts (Labs, macOS) - #2978

Merged
kitlangton merged 1 commit into
devfrom
slack-speaker-names
Nov 27, 2026
Merged

kitlangton merged 1 commit into
devfrom
slack-speaker-names

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Hex can now put names on the other people in a Slack huddle transcript, instead of calling everyone "Them".
It is a new Lab, Labs › Speaker names, off by default and macOS only. With it off, nothing is read from Slack and every transcript is exactly what it was.

💡 Why
A meeting transcript with three remote people in it reads as one long "Them". Slack already shows who is on a huddle and lights up whoever is speaking, so Hex can read that instead of guessing from voices.

🆕 Now you can

  • Turn on Labs › Speaker names, record a huddle in Slack's desktop app, and see Alice and Bob in place of Them, both in the transcript that grows during the call and in the final one (and so in the exported Markdown, Copy transcript, notes, hex meetings show, and MCP).
  • A line is named only when one person alone was marked as speaking across it. Anything less certain stays Them.

🚦 How it ships

  • Off by default. The switch is checked where the reader thread starts, so off means no Accessibility reads and no request to Slack at all.
  • Needs the Accessibility permission Hex already asks for. Hex only reads Slack's window: it never clicks, focuses, or types.
  • What it saw is kept in the meeting folder (speakers.ndjson, owner-only). Slack user ids never leave memory, and no name or id is logged.
  • Slack's desktop app only. A huddle in a browser, and every other call app, records as before.
  recording starts
+ lab on and the call is in Slack -> a side thread looks at Slack every 0.5 s
+     -> who is on the huddle, who is marked as speaking -> speakers.ndjson
  transcript written (during the call, and at the end)
- every remote line: "Them"
+ remote line where one person held the floor: their name; otherwise "Them"

📊 Proof
Nothing to see in the UI beyond the new Labs row (macOS only, so no golden image changes). The Slack reading was written against a live read of a real huddle's Accessibility tree, and its tests use hand-written trees of that shape with invented people. No automated check reads a real huddle, and no accuracy number exists for a real call yet. The new tests fail without the change (they test new code); the one behaviour fix to merged code, a name that arrives after its tile, has its own test.

Known limits, also in the docs:

  • Slack marks one speaker at a time, so words said over the person speaking take that person's name.
  • Hex checks Slack's mark on your own tile against your own microphone. If you talk a lot while muted in Slack (dictating during a huddle, say), Hex decides it cannot trust what it reads and names nobody on that call.
  • Not yet observed: a hidden or minimised huddle window, and a huddle too big to read in one look (4,000 elements, 0.4 s). Both should leave lines as Them, never wrongly named.

👀 Read: src/meeting/speakers/naming.rs and Named::keeping_ids in names.rs. The table of speakers and the transcript lines are two files written one after the other, so speaker ids are kept stable for the whole meeting; that is what stops a reader that lands between the two writes from showing one person's words under another's name. Also src/meeting/speakers/watch.rs for the thread's start, stop and clock. One unrelated hunk: src/rune_ui/captures.rs is cargo fmt only, which the local check needs to pass. The rest is routine.

🔍 Requested feature · builds on the speaker core already merged · not measured on a live call

Checks run

On a Mac:

  • scripts/check meeting::speakers labs control::settings i18n parity_tests accessibility_tests accessibility::watch meeting::tests meeting::transcript meeting::live_replay: 347 run, 346 passed, 1 failed (labs::web, because site/src/labs.json had not been regenerated yet)
  • After regenerating site/src/labs.json and renaming one test's fixtures: scripts/check labs::web meeting::speakers::names meeting::speakers::naming: 18 run, 18 passed
  • cargo clippy --locked -p hex@3.5.2 --all-targets --features onnx-benchmark -- -D warnings: clean
  • python3 scripts/code-shape.py --check: no hard problems
  • Linux and Windows clippy: not run locally. As a stand-in, the macOS-only modules were compiled out on a Mac and cargo clippy --locked --bin hex reported nothing outside them except the one function already marked as macOS-only. This PR's own CI is the real check.
  • The full test suite was not run. These runs were before rebasing onto one new dev commit that touches only other translation files.

…, macOS)

Labs › Speaker names (labs.meeting_speaker_names, off by default, macOS)
names the remote speakers of a recorded Slack huddle in place of Them.

- speakers/slack.rs: the first call-app adapter. Reads a huddle's tiles
  from the Slack desktop app's Accessibility tree: who is on it, which tile
  is the user's, and the one person Slack marks as speaking.
- speakers/watch.rs: one "meeting-speakers" thread beside a recording
  (SpeakerReader). Looks every 0.5 s, each look bounded, on the transcript's
  own clock (both count from the first audio), and appends to the meeting
  folder's owner-only speakers.ndjson. Shares nothing with audio capture;
  dropping it stops and joins it. The lab is checked where the thread
  starts, so off, nothing is read and Slack is asked for nothing.
- accessibility/watch.rs: AppWindows, a bounded, read-only snapshot of one
  app's windows that finds the app again when it restarts.
- speakers/naming.rs: names the in-call transcript each time it is written
  and the final transcript, from the evidence, and keeps manifest.speakers
  in step. Ids hold for the whole meeting (Named::keeping_ids), so a reader
  between the two files' writes sees Them, never another person's name.
- floor.rs: someone the app comes to show differently takes their latest
  usable name; before, a name that arrived after the tile named nobody.
- The speaker core's dead-code expectations go; what is still unused
  (corrections, the two other strictnesses) says so where it is.
- src/rune_ui/captures.rs: rustfmt only.

Not observed on a live huddle by any automated check: the adapter's tests
read hand-written trees in the shape of a live read.
@kitlangton
kitlangton merged commit 0926dd9 into dev Nov 27, 2026
4 checks passed
@kitlangton
kitlangton deleted the slack-speaker-names branch November 27, 2026 19:29
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.

1 participant