Repository navigation
feat(meetings): name the remote speakers in Slack huddle transcripts (Labs, macOS) - #2978
Merged
Merged
Conversation
…, 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.
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.
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
AliceandBobin place ofThem, 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).Them.🚦 How it ships
speakers.ndjson, owner-only). Slack user ids never leave memory, and no name or id is logged.📊 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:
Them, never wrongly named.👀 Read:
src/meeting/speakers/naming.rsandNamed::keeping_idsinnames.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. Alsosrc/meeting/speakers/watch.rsfor the thread's start, stop and clock. One unrelated hunk:src/rune_ui/captures.rsiscargo fmtonly, 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, becausesite/src/labs.jsonhad not been regenerated yet)site/src/labs.jsonand renaming one test's fixtures:scripts/check labs::web meeting::speakers::names meeting::speakers::naming: 18 run, 18 passedcargo clippy --locked -p hex@3.5.2 --all-targets --features onnx-benchmark -- -D warnings: cleanpython3 scripts/code-shape.py --check: no hard problemscargo clippy --locked --bin hexreported nothing outside them except the one function already marked as macOS-only. This PR's own CI is the real check.devcommit that touches only other translation files.