feat(mqtt): publish the ringing call's caller to incoming-call/caller #3022
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 572 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.380
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3022"
general
weight: 0.35
jcollie
Summary
incoming-callsays only that something is ringing. The toast Teams raises for the call already says who it is, and the renderer already reads part of it for the incoming-call command and toast, but the event that reaches the MQTT service carried nothing.The renderer now works the caller out of the toast's
entityOptionsand passes it on withteams-incoming-call-started. Whenmqtt.incomingCallCaller.enabledistrue(it defaults tofalse), the service publishes it as JSON to{topicPrefix}/incoming-call/callerjust beforeincoming-callgoes"true":scenarioalways, and where knownnumber,name,queue,contactandcallId, with atimestampand theclientIdas the status topic carries. Only those fields are copied, so the caller's picture never reaches the broker.incoming-callitself is unchanged.privacy.mdsays what is sent when it is.incoming-callgoing"false"already says so.MQTTClient.publish()takes aredactLogoption that leaves the topic and payload out of its logs, and the caller is published with it.incomingCall, asmicrophoneControlfollowsmicrophone, and can be set withmqtt.mediaTopics.incomingCallCaller.The fields follow toasts seen for a direct phone call and both kinds of call-queue call:
titleis the caller's number as Teams formats it,textis their name or the number again when Teams cannot match them, and a queue call names the queue inheaderSubtitle. In conference mode a queue call's toast is sent twice while ringing, the first before the caller is matched (itsheaderSubtitleis Teams' "Unknown user" placeholder), so the caller is published from each toast; the docs call this out. Atitlethat is not a number is taken as the name, which is what a call from a Teams user is expected to carry; that case has not been seen.Refs #3019
Testing
npm run lint(required)npm run test:unitnpm run test:e2enpm start) and exercised the affected pathnpm run cross-distro)Documentation
docs-site/docs/...(mqtt-integration.md,configuration.md,privacy.md, regeneratedconfiguration-generated.mdandconfig-schema.json)README.md(app/mqtt/README.md)app/security/ipcValidator.jsand rannpm run generate-ipc-docs(IPC channel added or changed)🤖 Generated with Claude Code
https://claude.ai/code/session_014eZQ2xaNZeq8ddcAK2WAKH
<!-- greptile_comment -->
<!-- greptile_summary -->
<h2><a href="https://app.greptile.com/api/retrigger?id=70327385"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2>
<!-- greptile-risk -->
The PR appears safe to merge; no outstanding findings remain.
<h3>Summary</h3>
The PR adds an opt-in MQTT message with incoming-call caller details, updates configuration and privacy documentation, and adds tests for publication and logging. The changes since the previous review make caller publication disabled by default; the earlier findings are resolved.
<details open><summary>Diagram</summary>
</details>
<!-- greptile_confidence_score:5 -->
<sub>Reviews (4) · Last reviewed commit: "feat(mqtt): make the incoming-call calle..."</sub>
<!-- /greptile_comment -->