Skip to content

fix(session): listen for Raise to Talk only on the screen in front - #93

Merged
Tarquinen merged 1 commit into
devfrom
port-raise
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
port-raise

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

With a subagent open, the parent screen underneath stays resumed, so both screens listened for Raise to Talk and one raise could start a call twice, or on the hidden screen. Now only the screen in front listens (or the screen that owns the call), and a covered screen ignores a raise.

iOS: c056c55c

Verified on the emulator, subagent open over its parent, proximity set through the emulator console:

  • dev: 2 RaiseToEarDetector sensor connections, and one proximity change logs "Call trigger: Raise to Talk" twice, 7–18 ms apart.
  • This PR: 1 connection and 1 trigger. Back on the parent alone, a raise still triggers once.

scripts/check.sh :feature:session passes.

A parent screen covered by a subagent stays RESUMED, so both screens ran the
proximity monitor and one raise reached the hidden screen too. Raise to Talk
now listens only on the front screen (or on a call's own screen), and a covered
screen ignores RaisedToEar.

iOS c056c55c. Ports aCoveredScreenStartsNoCallFromTheEar (fails without the
reducer guard).

Verified: vm.sh check :feature:session; on the emulator with a subagent open
over its parent, one proximity change: before, 2 RaiseToEarDetector sensor
connections and 2 "Call trigger: Raise to Talk" lines 7-18 ms apart; after,
1 and 1. The parent alone still triggers once after the subagent is closed.
@Tarquinen
Tarquinen changed the base branch from port-warmup to dev November 16, 2026 00:54
@Tarquinen
Tarquinen merged commit 88745d2 into dev Nov 16, 2026
1 check passed
@Tarquinen Tarquinen mentioned this pull request Nov 16, 2026

This branch was previously deployed

1 inactive deployment
release — e40dad58 Deployed Nov 16, 2026 by Tarquinen via check #320
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