Skip to content

[iOS] GPT-Live disconnects when the iPhone locks mid-conversation #1102

In review

Description

@mynvnow

Environment

  • Bighelp iOS: 2.6.96
  • Bighelp host plugin: latest
  • Device: iPhone Air
  • Voice mode: GPT-Live

Steps to reproduce

  1. Open Bighelp on an iPhone and start a GPT-Live voice conversation.
  2. While the conversation is active, press the side button to lock the screen.
  3. Unlock the phone and return to Bighelp.

Actual behavior

GPT-Live disconnects when the screen locks, interrupting the conversation.

Expected behavior

Locking the screen should not end an active GPT-Live conversation.

Activity

  1. added
    type: bug
    priority: P2
    area: voice
    area: app
    on Nov 28, 2026
  2. promptclickrun commented on Nov 28, 2026

    @promptclickrun
    Owner

    Type: Bug · Priority: P2 · Area: Voice

    Thanks for the clean repro with the exact lock step. This is the app ending the call on purpose when it goes to the background, not a network drop, so the fix is in the iOS app.

    What's happening: Confirmed Bighelp/Voice/LiveVoiceView.swift:126-128 calls model.end() as soon as scenePhase becomes .background, which is what locking the screen triggers. LiveVoiceModel.end() (Bighelp/Voice/LiveVoiceModel.swift:238) stops local audio and asks the host to close the call. The app already declares the audio background mode (Bighelp/Info.plist:189) and the live call uses a playAndRecord session (Bighelp/Voice/VoiceAudioSessionCoordinator.swift:64), so iOS would let the call keep running while locked if the view didn't tear it down. The same handler also ends the call when you swipe to another app.
    Impact: Every live voice call on iPhone ends on lock or app switch. Workaround: keep the screen unlocked and Bighelp in front during the call.
    Related: Nothing related found. The handler arrived with #993.
    Next step: Holding for a maintainer decision on whether a live call should keep running while locked or backgrounded (phone-call style, with the mic live). If yes, the change is to stop ending on .background in LiveVoiceView.swift, keep .onDisappear and explicit close as the end points, and handle audio-session interruptions so a real interruption still ends or pauses the call cleanly.


    🤖 Automated triage for this repo. A maintainer makes the final call.

  3. promptclickrun commented on Nov 28, 2026

    @promptclickrun
    Owner

    Decision: a live voice call should keep running when the iPhone locks or Bighelp goes to the background, the way a phone call does. This is accepted as a bug.

    Planned fix: stop ending the call on .background in Bighelp/Voice/LiveVoiceView.swift. Leaving the voice screen and the explicit close button stay as the ways a call ends. Audio session interruptions (an incoming phone call, Siri, another app taking the mic) will be handled so the call pauses or ends cleanly instead of hanging.

    We'll link the fix PR here when it's up. Thanks again for the precise repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apparea: voicepriority: P2type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions