Skip to content

🧹 [code health improvement] Handle call hangup in Voice Call Events#8

Open
mgabrielramos wants to merge 1 commit intomainfrom
code-health/handle-call-hangup-events-11129053774006451996
Open

🧹 [code health improvement] Handle call hangup in Voice Call Events#8
mgabrielramos wants to merge 1 commit intomainfrom
code-health/handle-call-hangup-events-11129053774006451996

Conversation

@mgabrielramos
Copy link
Copy Markdown
Owner

🎯 What: The code health issue addressed
Implemented the logic to hang up rejected inbound calls in extensions/voice-call/src/manager/events.ts, replacing a TODO.

💡 Why: How this improves maintainability
Ensures that calls blocked by inbound policy are actively terminated rather than silently ignored, preventing stuck calls or confused users.

Verification: How you confirmed the change is safe
Added a new unit test extensions/voice-call/src/manager/events.test.ts which mocks the CallManagerContext and VoiceCallProvider, verifying that hangupCall is invoked with the correct parameters when a call is rejected.
Ran the new test successfully.

Result: The improvement achieved
The codebase now handles call rejection properly according to the TODO, improving robustness.


PR created automatically by Jules for task 11129053774006451996 started by @mgabrielramos

Add implementation for hanging up rejected inbound calls in `extensions/voice-call/src/manager/events.ts`.
Add unit test `extensions/voice-call/src/manager/events.test.ts` to verify the logic.
Remove TODO comment.
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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