fix(webhooks): import notify_video_room_config_changed from room_control #136
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 437 lines diff across 5 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.364
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #136"
general
weight: 0.35
Nirupon123
What
The VoxBento webhook handlers for
booth.transcription.startedandbooth.transcription.stoppedimportnotify_video_room_config_changedfrom the module that defines it, so both webhooks return 200 instead of 500.Why
Fixes #135.
Both handlers imported the function from
.video_integration, which does not define it, so the import raisedImportErrorafter the room status had been saved.The function lives in
interpretation/room_control.py, andviews.pyalready imports it from there.The wrong import was introduced in e92c91a.
Before, on current
dev, with correctly signed webhooks against a running dev server:After, on this branch, same webhooks and same room:
The server log after the fix has no
Internal Server ErrororImportErrorentries.How
handle_transcription_startedandhandle_transcription_stoppedtofrom .room_control import notify_video_room_config_changed.room_controldoes not importviews_webhooks, so there is no import cycle either way.Out of scope:
notify_video_room_config_changedswallows all exceptions, and creating aRoomInterpretationin tests triggers a sync that tries to reach VoxBento.Testing
Added
tests/test_views_webhooks.pywith four tests: signedstarted(200, status running, notify called once), signedstopped(200, status idle, session id cleared, notify called once), abooth.interpreter.joinedcontrol case, and a guard that parsesviews_webhooks.pyand checks that everynotify_video_room_config_changedimport points at a module that defines it.On
devthestartedandstoppedtests fail withImportErrorand the guard fails withAttributeError, while the control passes, and all four pass with this change.pytest tests/: 72 passed (68 ondevplus the 4 new tests).uvx ruff check .anduvx ruff format --check .: clean.Summary by Sourcery
Correct the notification helper import used by transcription webhooks to prevent successful events from failing with server errors.
Bug Fixes:
Tests:
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Maintenance
Expanded coverage for transcription and interpreter webhooks, verifying that transcription status and session details are updated and interpreter join details are recorded.
Confirmed that transcription notifications are triggered during the tested webhook flows.
No user-facing behavior changes were made.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->