Skip to content

fix(forwarding): restore hold-to-stop for scanning profiles - #177

Merged
enaboapps merged 2 commits into
mainfrom
codex/restore-scanning-hold-to-stop-176
Sep 15, 2026
Merged

enaboapps merged 2 commits into
mainfrom
codex/restore-scanning-hold-to-stop-176

Conversation

@enaboapps

Copy link
Copy Markdown
Contributor

Closes #176

Summary

#173 made scanning profiles ignore the Forwarding hold-to-stop so the PC could run hold actions past five seconds, but that removed the only switch-driven way to end a session: the PC's emergency hold resets the scan and keeps the session. The hold-to-stop applies to scanning profiles again. A release at or past the configured 3, 5 or 8 seconds stops forwarding and sends switch.session.stop without an actionable release, as before #173. Shorter holds still deliver their release so the PC can offer hold actions inside that window. The idle stop stays off for scanning, and cancelled or replaced presses keep the sync-based handling from #173.

The setting description, protocol doc and smoke-test doc describe the behaviour. Companion PC docs PR: switchifyapp/switchify-pc#767.

Validation

  • npm run validate on Node 24: lint, TypeScript, 594 tests across 66 suites, 21 of 21 Expo Doctor checks
  • Android development build
  • iOS development build
  • No real input or Bluetooth hardware used by automated tests

A new test holds for just under the limit and sees the release delivered with the session still active, then holds past it and sees the session stop with no up edge. Physical Android to PC validation remains outstanding.

OwenMcGirr and others added 2 commits September 15, 2026 08:56
Removing it in #173 left switch users no way to end a session from a
switch. A release at or past the Forwarding hold-to-stop stops
forwarding without an actionable release again; shorter holds still
deliver their release so the PC can run hold actions. The idle stop
stays off for scanning, and cancelled or replaced presses keep their
sync-based handling.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@enaboapps
enaboapps marked this pull request as ready for review September 15, 2026 08:07
@enaboapps
enaboapps merged commit f4dc48e into main Sep 15, 2026
3 checks passed
@enaboapps enaboapps mentioned this pull request Sep 15, 2026
3 of 5 tasks
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.

Restore the Forwarding hold-to-stop for scanning profiles

2 participants