Skip to content

Add OpenBikeControl support - #141

Merged
gdoumen merged 7 commits into
incyclist:mainfrom
jonasbark:openbikecontrol
Nov 9, 2026
Merged

gdoumen merged 7 commits into
incyclist:mainfrom
jonasbark:openbikecontrol

Conversation

@jonasbark

@jonasbark jonasbark commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

This adds support for OpenBikeControl, a free, open protocol for handlebar controllers (and soon smart trainers), over Bluetooth and mDNS. Controller buttons map to Incyclist's existing actions: shift up/down, power/workout difficulty up/down, and skip to the next/previous workout interval.

What riders get: Zwift Click, Play and Ride through BikeControl, Shimano Di2, the Stages SB200 (OpenBikeControl built in), and SRAM AXS shifters on their own bike, which no trainer app supports directly today. MyWhoosh, TrainingPeaks Virtual and Biketerra already support it (full list). It sits next to the existing Zwift controller support; nothing there changes.

Changes

  • src/ble/openbikecontrol/sensor.ts: new BleOpenBikeControlSensor (protocol openbikecontrol, service d273f680-…). Subscribes to the button state characteristic and emits key-pressed on release with the keys the Zwift controllers already use, so the services need no changes: Shift Up/Down → r-shift-up/r-shift-down, Increase/Decrease Difficulty → y/b, Skip/Previous Interval → a/z. A controller can send several actions for one physical button (e.g. Shift Up + Increase Difficulty + Select). All actions pressed in the same message count as one press and produce exactly one key once they're all released: up/down (Zwift Click behaviour, gear or power depending on the mode) when shift and difficulty come together, otherwise the first supported action (shift, then difficulty, then interval). After subscribing it sends the optional App Information message (app id incyclist plus the supported button IDs).
  • src/ble/openbikecontrol/consts.ts: the OpenBikeControl UUIDs, shared by both transports.
  • src/ble/openbikecontrol/adapter.ts, index.ts: OpenBikeControlAdapter with the AppControl capability, modelled on ZwiftPlayAdapter.
  • src/ble/index.ts, src/ble/types.ts: register the openbikecontrol protocol.
  • src/direct-connect/base/interface.ts: the existing Direct Connect (wifi) interface also browses for _openbikecontrol._tcp. These announcements get the OpenBikeControl service UUID, since the device lists it in a different TXT record than Direct Connect, so they're detected as openbikecontrol and use the same adapter as Bluetooth. An announcement without services (from the unfiltered browser) no longer replaces one with services, and the device is announced once its services are known. OpenBikeControl devices get no known-device placeholder, because their port is only known from the announcement. The OpenBikeControl browser starts before the Direct Connect browser and ignores announcements that list other services, so Direct Connect discovery on mobile (whose binding keeps only the last browser active and labels every announcement with the requested type) works as before, also for app builds with the current mobile binding. For OpenBikeControl over mDNS on mobile, there's a companion change to the mobile binding (incyclist/mobile, branch openbikecontrol).
  • src/direct-connect/base/peripheral.ts: OpenBikeControlPeripheral, a small subclass of DirectConnectPeripheral that reuses its socket handling. The TCP stream carries the plain OpenBikeControl messages, so button state messages are passed on as Button State notifications and writes (App Information) are sent unchanged. Button mapping and App Information therefore share one code path for Bluetooth and Wi-Fi. It lives in peripheral.ts to avoid a circular-import problem with interface.ts.
  • src/ble/openbikecontrol/sensor.unit.test.ts: button mapping, long-press duration, several actions per button press (exactly one key for each combination), ignored messages, App Information bytes, and protocol detection (a trainer that also offers OpenBikeControl is still detected as fm).
  • src/direct-connect/base/interface.unit.test.ts, peripheral.unit.test.ts: mDNS browsing and filtering, the unfiltered-first ordering, no known-device placeholder, TCP message framing (device status skipped), raw writes, and one peripheral instance per address and port.

Testing

  • Against the mock devices from the protocol repo's examples: mock_device_tcp.py, advertised via mDNS and discovered by the Direct Connect interface (with a binding that behaves like the desktop IPC binding), then connected over TCP with OpenBikeControlAdapter. The mock received the App Information message, cycled through the advertised buttons, and each press arrived in RideDisplayService.onDeviceKeyPressed as the expected gearChange / adjustPower / forward / backward call. The Bluetooth path was tested the same way by feeding the mock's messages in as notifications.
  • npm test (all passing), npm run build

Every app that supports the protocol strengthens the case for hardware manufacturers to build it in natively, the way Stages did with the SB200. Once merged, Incyclist gets listed on openbikecontrol.org, shows as supported on smarttrainerapps.com, and gets a prominent spot on bikecontrol.app and in the BikeControl app.

@jonasbark
jonasbark marked this pull request as ready for review November 6, 2026 11:23
Copilot AI balanced review requested due to automatic review settings November 6, 2026 11:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@gdoumen

gdoumen commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Whow - I had OpenBikeControl support on my roadmap and was planning to work on this once I finished my current work :-)

I'm busy today, but I'll have a look at this probably tomorrow or Sunday

@gdoumen

gdoumen commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

My Review

First of all, thanks for working on this. As mentioned, I had planned this for myself and this saves a lot of time.

Observations

  • Sonar complains about duplications. This is because a lot of code was copied over from ZwiftPlay Adapter. I will overrule Sonar here. If you wanted to avoid the duplications, you would have to define a common base class which these two adapters would extend. In my view this is overkill.
  • The Adapter never successfully started. This is because waitForData() never returns. The ZwiftPlay adapter has the same problem. Therefore I created Skip initial data wait for controller devices (Zwift Play) #144. You should rebase and implement the same shouldWaitForData() overwrite
  • The order of the find() calls should be changed ( trainer first, OBC 2nd)

Agent Review

Problems, most important first

  1. Wi-Fi button events get lost when they arrive together (I confirmed this with a test). OpenBikeControl's TCP messages have no length field. OpenBikeControlPeripheral.onData treats everything after a 0x01 byte as one message. If a quick press and its release arrive in one TCP read (010101 + 010100), the release is misread and no key fires. The button then stays marked as pressed, so the next click loses its press too and only its release registers. A message split across two reads is also dropped, since nothing is buffered.

    • Suggested fix: each message only lists buttons whose state changed, so a button ID that appears twice in one read marks the start of a new message.
    • The protocol spec itself ("read byte by byte") is weak here and is worth raising with the protocol maintainers.
  2. Subscribing twice doubles every button press (confirmed with a test). The new subscribe override adds a callback every time it is called. The base DirectConnectPeripheral.subscribe returns early if already subscribed, and BleAdapter.startSensor() calls sensor.subscribe() on every start. If the adapter is started again while the socket is still open, each button fires twice, e.g. two gear shifts per click. The fix is to copy the base class's early return.

  3. Devices that announce both types under one name would conflict (not hit today). The discovery cache is keyed by name and address only. If a device announces both Direct Connect and OpenBikeControl under the same name, both announcements carry service UUIDs, so whichever arrived last wins. A trainer could then get connected through the OpenBikeControl peripheral, or the other way round. The PR description says smart trainers with OpenBikeControl are coming, so this is worth fixing now or tracking as a follow-up. Either the announcement type becomes part of the identity, or an entry of a different type is never replaced.

  4. Minor items:

    • OpenBikeControlAdapter drops the address check that ZwiftPlayAdapter.isEqual has, and the address suffix in getName. Two controllers with the same name, such as two BikeControl instances, can't be told apart.
    • The new rule that "an announcement without services can't replace one with services" applies to all Direct Connect devices. An unfiltered re-announcement with a new port is now ignored. This is mostly harmless, because the typed browser re-announces anyway.
    • Over Bluetooth, a trainer that also offers OpenBikeControl is detected only as a trainer (fm), so its buttons are ignored. This is deliberate and tested, but those buttons would later need a second adapter.

My verdict: request changes for 1 and 2. Both are a few lines each and need a unit test. Item 3 can be a tracked follow-up.

Comment thread src/direct-connect/base/interface.ts Outdated
this.addService( {...service, type:OBC_TYPE}, OBC_TYPE )
} )

this.getBinding().mdns.find( {type:DC_TYPE},( service:MulticastDnsAnnouncement )=>{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please switch the order: DC_TYPE first, then OBC_TYPE. This way we ensure that we find smart trainers first

jonasbark and others added 7 commits November 9, 2026 09:38
Adds a BLE adapter/sensor for OpenBikeControl controllers
(https://openbikecontrol.org), next to the existing Zwift Play/Click support.
Button state notifications are mapped onto the existing 'key-pressed' keys,
so no changes are needed in the services:

- Shift Up/Down -> r-shift-up / r-shift-down (gear change)
- Increase/Decrease Difficulty -> y / b (power / workout adjustment)
- Skip / Previous Interval -> a / z (workout forward / backward)
- Shift + Difficulty on the same button -> up / down (as Zwift Click)

After subscribing, the app information message is sent so controllers
know which buttons Incyclist supports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenBikeControl devices that announce _openbikecontrol._tcp are now
discovered by the Direct Connect (wifi) interface. The TCP connection
carries the same messages as the BLE characteristics, so the new
OpenBikeControlPeripheral provides button state messages as notifications
of the Button State characteristic and sends writes unchanged. This way
the existing OpenBikeControl sensor/adapter (button mapping, app
information) is shared between BLE and WiFi.

- the OpenBikeControl service UUID is added to the announcement, as the
  device lists it in a different TXT record than Direct Connect
- an announcement without services (unfiltered browser) no longer
  replaces one with services, and the device is announced once its
  services are known
- no known-device placeholder for OpenBikeControl, as the port is
  only known from the announcement

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start the OpenBikeControl browser before the Direct Connect browser, as
the mobile binding only keeps the last started browser active, and ignore
announcements that list services other than OpenBikeControl, as the
mobile binding labels all announcements with the requested type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A controller may send several actions for one physical button (e.g.
Shift Up + Increase Difficulty + Select). All supported buttons that are
pressed with the same message are now treated as one press, which
results in exactly one key once all of them are released: 'up'/'down'
for shift together with difficulty, otherwise the first supported action
(shift, difficulty, interval).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review feedback: start the Direct Connect browser first, so that smart
trainers are found first. The mobile binding now supports several
concurrent browsers (incyclist/mobile#481), so the order no longer
decides which browser stays active.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er split ones

Button state messages have no length field, so a press and its release
that arrived in one TCP read were treated as one message and the release
was lost. A pair that repeats a button of the current message, or a
0x01/0x02 byte followed by a value that is not a valid Shift Up/Down
state, now starts the next message. Incomplete messages are kept until
the next read.

Subscribing twice no longer registers a second callback, which reported
every button press twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d controllers apart

Controllers only send data when a button is pressed, so the adapter
overrides shouldWaitForData() (incyclist#144). Two controllers
with the same name (e.g. BikeControl on two devices) are now told apart
by address, and the name shows the end of the address, as for Zwift Play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
8.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@jonasbark

Copy link
Copy Markdown
Contributor Author

Thanks for the review! Rebased on main and addressed:

@gdoumen
gdoumen merged commit b9c074b into incyclist:main Nov 9, 2026
3 of 4 checks passed
jonasbark added a commit to OpenBikeControl/bikecontrol that referenced this pull request Nov 9, 2026
Incyclist implements OpenBikeControl over Bluetooth and mDNS
(incyclist/devices#141) and finds trainers over Bluetooth and Wi-Fi
(Direct Connect), so it joins the shared OpenBikeControl trainer apps
with both transports. Logo bundled, with the openbikecontrol.org
fallback for patched builds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
jonasbark added a commit to OpenBikeControl/bikecontrol that referenced this pull request Nov 17, 2026
* fix(di2): the log shows the 2AFD frames once button mode is on

Wired 11-speed Di2 switches may report on 2AFD rather than 2AF9, which
nothing listened to. The first 50 distinct-in-a-row frames on 2AFD after
button mode is active now go to the log, next to the 2AF9 ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(di2): wired 11-speed Di2 keeps the D-Fly channels instead of button mode

The wireless unit of a wired 11-speed Di2 (Ultegra 8000, Dura-Ace 9150,
GRX 815) exposes the same config service as the 12-speed wireless RDs, so
BikeControl offered button mode. Entering it works (the derailleurs stop
shifting) but the unit relays no paddle press, leaving the rider with
neither shifting nor buttons.

Those units report firmware 4.7.x, the 12-speed RDs 4.0.x/4.1.x. A 4.7.x
unit is now treated like a Di2 without the config service: no button mode
step, no automatic re-entry for riders who already turned it on, and the
hint to set the D-Fly channels in E-TUBE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Manage a Stripe subscription from the phone and tablet apps

Pro bought through Stripe on the Windows download or on Linux had no way
to be managed or cancelled on iOS, Android or macOS: the Plan page showed
no "Manage subscription" row for it, and the billing portal call went to
the store's subscription settings, which know nothing about Stripe.

Show the row for a Stripe subscription on the store builds too, and open
the Stripe billing portal for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Don't count an idle trainer twin as bridged in VS mode

The same trainer is often found twice, over WiFi and over Bluetooth, and
both entries share its saved retrofit mode. In the VS modes each entry
mirrors the shared ftmsEmulator, so the idle twin picked up the live
twin's started/connected state and read as bridged too. chainProxy()
then broke the tie by discovery order and could pick the idle twin,
which has no definition: Settings hid Virtual shifting and Overlay, and
Ride showed "<app> handles shifting" while BikeControl was shifting.

isBridged now only trusts the shared emulator while this trainer's own
definition is attached to it. Proxy mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Offer a one-tap Bonjour reinstall through winget on Windows

The network self-test's Bonjour fixes only opened an install guide. A
rider whose reinstall from Apple's download did not bring back the
MyWhoosh button was fixed by `winget install --id=Apple.Bonjour -e`, so
the fix now runs that (forced, so a broken install is actually replaced)
and falls back to the guide when winget is missing or the install fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Velotoss also connects over Bluetooth

Its browser version now reaches the OpenBikeControl service over Web Bluetooth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix blank touch-area screenshot for keymap names with a slash

The picked screenshot was cached as '<tmp>/<keymap name>_screenshot.png'.
Custom keymap names are user input, so a name like 'Rouvy Di2/Dictation'
pointed into a non-existent subfolder, the copy threw PathNotFoundException
and the page stayed blank. Sanitise the file name, and if caching still
fails, record the error and show the picked image anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): restart the BLE scan on a controller drop and every 25 min

Android downgrades an unfiltered BLE scan that runs longer than 30 minutes
to opportunistic (no results) and pauses it while the screen is off. The
scan was started once, and a drop's "try reconnect" called
performScanning(), which returns early while a scan is running — so a
controller that dropped after ~30 min of uptime was never rediscovered
until the app restarted.

- On a drop while scanning, restart only the BLE scan (stopScan +
  startScan, same unfiltered args); scan results, Wi-Fi and gamepad
  discovery are untouched. Debounced so the double disconnect event of one
  drop restarts once. Android only; not in screenshot mode or on web, and
  only when Bluetooth is powered on.
- Restart a running scan every 25 min (bleScanRestartInterval), re-armed
  after each restart and cancelled in stop(), so stop/scan cycles don't
  stack timers.
- Log "BLE scan restarted (<reason>)" and add a "BLE scan:" line (start
  time, age, restart count) to the support bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): keep a stopped scan stopped and retry failed BLE restarts

- stop() cancels pending restarts and bumps a scan generation before its
  first await. A restart whose start was still pending (deferred by
  Android's scan rate limiter) when stop() ran now turns the native scan
  back off, unless performScanning started a new scan since.
- A restart that stops the scan but fails to start it again retries after
  30 s (up to 3 times) before falling back to the 25-min interval, and the
  support bundle reports the scan as not running meanwhile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Classify Shimano crank power meters as power meters, not Di2

Shimano's crank power meters (FC-R8100-P advertises as FCR8100P…)
advertise the E-TUBE config service 18FF like every E-TUBE device, so the
services-based Di2 rule claimed them and every connect failed with
"Service not found: 000018ef…". Their Cycling Power advert fell through to
ProxyDevice and showed up as a trainer. Match them by name ahead of the
Di2 rules and resolve them to BlePowerDevice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Rename the Zwift control protocol to Native in the UI

The protocol picker and the self-test retry button now say "Native"
instead of "Zwift protocol" in all six locales. The stored value stays
zwiftHub, so saved overrides and support logs are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): stop the foreground service when quitting from Settings

"Close connections & quit" only popped the activity, so the keep-alive
service and its notification survived. Share the notification's close
path, which stops the service and cancels the notification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name the update step in the phone top bar

The phone's update action was a bare refresh icon that told riders
nothing. It is now a small filled button saying "Restart" for a
downloaded patch and "Update" for a store version; screen readers
still hear "New version available: <version>". Drops an entitlements
listener that only rebuilt without changing anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the phone's update action into a strip under the top bar

A labelled button beside the title squeezed "BikeControl" to
"BikeCo…" (and to "Bi…" in Polish). On phones the waiting update is
now a full-width strip under the bar: "Update downloaded — restart to
install it." with Restart, or "New version available: x" with Update.
Wider windows keep the button in the bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open the Play Store listing when tapping "Leave a review" on Android

Play's in-app review sheet is quota-limited and reports success without
showing anything, so the tap silently did nothing. Explicit rate taps now
share one helper that goes straight to the store listing on Android.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(tpv): keep the controller visible next to the unlock bridge and sensors

TrainingPeaks Virtual takes the controller from OpenBikeControl's DirCon
endpoint, advertised as _wahoo-fitness-tnp._tcp "BikeControl". Two other
BikeControl records took the same type and name:

- the bridge the unlock page starts for a lone Zwift Click V2, which kept
  running after the page closed (until the controller disconnected);
- the standalone sensor peripheral (Broadcast on, no trainer bridged).

TPV resolved only one of the colliding records, so it never listed the
controller. The unlock page now stops a bridge it started itself, serving
nothing but the controller, when it closes and the app takes the controller
over DirCon. The standalone sensor record is named "BikeControl Sensors" for
those apps. Every other app is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Upload build symbols to bikecontrol.app, not Actions artifacts

The repo is public, so any signed-in GitHub user could download the
password-protected symbol zips. Every build/patch job now PUTs its zip to
the upload-symbols function, which stores it in a private bucket under
<version>/<name>; the upload token can only write.

Releases are named release-<platform>.zip, patches
patch-<run number>-<platform>.zip to match the patch/v<version>/<run> tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(tpv): stop the controller spinner once TrainingPeaks Virtual connects

TrainingPeaks Virtual shows a spinner on the controller until a first
notification arrives, and a controller says nothing until a button is
pressed, so the tile kept spinning on a working connection.

Follow the app's App Info with a button state naming no buttons, over DirCon
only. It changes nothing in the app, and raw TCP apps get no extra frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move a signed-out store purchase onto the account at login (#435)

A Base purchase posted while the app ran on an anonymous RevenueCat id
stays on that id. Logging in then switches RevenueCat to the account,
which shows neither Base nor Pro, and the app falls back to the trial.
After logIn, when the account has neither, re-post the store receipts
once per account and launch so the purchase follows the sign-in.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Add Ride drop button, shift button and paddle actions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Emulate a Zwift Ride for Zwift

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Emulate a Zwift Ride on the trainer bridge too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep Zwift steering on the D-pad

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Log the raw frame of every Di2 hood or satellite press

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: choose between E-TUBE channels and button mode

The setup now asks how the shifters should reach BikeControl. E-TUBE
channels (recommended) save the paddles' setting and put them on D-Fly
channels, so the Di2 never shifts with them, even if BikeControl
disconnects; the Di2 card restores the setting. Button mode stays, and
its card warns once that a disconnect shifts for real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sram): a press's own side wins over a stale serial's stored side (#436)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: save each shifter's channels on its next press, left first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: let the rider cancel while the setup waits for a shifter press

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(support): strip NUL characters before sending a support message (#437)

Postgres rejects U+0000 in text columns, so one NUL anywhere in the
attached diagnostics made every send from that device fail with a 500.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: log switch writes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: show which shifter to press to save its setting

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: quieter E-TUBE channel setup, D-Fly presses counted from the first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: one setup sheet and no connection toasts through a wrong passkey; ask for each save press once it can land

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add Linux to the Shorebird patch workflow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(di2): a Di2 with one shifter finishes the E-TUBE channel setup (#441)

The save step ticked a shifter that never answered and asked for it by
side. With one shifter it now shows a single prompt without a side, and
the read step says the setup goes on by itself after 15 seconds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Let riders without Pro use the daily virtual shifting trial after the trial period (#442)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Expire manual entitlements at their end date and revert entitlement-granted purchases (#443)

* Expire manual entitlements at their end date

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Revoke entitlement-granted purchase when entitlements lapse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: also find the EW-WU111 wireless unit by name (#444)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Log Di2 2AFB frames after button mode (#445)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: wired levers in button mode; channel setup stops for them (#446)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: support wired levers in button mode, stop channel setup for them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* OBC haptic feedback: expose characteristic and play it on phone + controllers (#447)

* Expose OBC haptic feedback characteristic over BLE

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Play OBC haptic feedback on the phone and vibrating controllers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Expose OBC haptic characteristic over DirCon too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop (#448)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Keep forgotten gamepads forgotten across restarts (#449)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Control trainers that only expose the Wahoo control point (#450)

* Label the Wahoo control protocol in the trainer protocol picker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Resolve WiFi trainer hostnames over mDNS when Windows reports no address (#452)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sram): drop stale side-less learned buttons; forget clears them (#453)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Ride speed and distance from power, grade and weight (#454)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Work out ride speed and distance from power, grade and weight

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(overlay): Windows overlay opens with the saved opacity and position (#455)

The Windows runner builds the sub-window's entrypoint args by walking the
createWindow argument map, which is sorted by key, so the JSON payload is
args[0]. The overlay searched for it starting at index 1, so on Windows the
saved opacity and position were never applied: the overlay opened fully
opaque until the slider was touched, and at the default position.

Decode the payload in decodeOverlayLaunchArgs, which scans every argument,
and cover both platform orderings in a test.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): two iPhones no longer share one host for the TPv controller entry (#458)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): two iPhones no longer share one host for the TPv controller entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(erg): Power Lock — release on stop, lock current power by default

- Manual ERG returns to SIM after 3 s below 25 rpm (prop), with a toast;
  a per-trainer "Release when you stop pedalling" switch, on by default.
- ERG now starts at the current power by default. The start source moves
  to a new 'ergStart' key: 7.4.0 wrote its old default into every saved
  config, so only an explicit "current power" carries over from it.
- "Trainer: Switch ERG/SIM" gets "Power Lock" as its secondary label.
- Bumps prop to 26c0e41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(support): message field grows with the text instead of showing two lines (#459)

The support composer used a fixed 56 px TextArea, so a longer message
scrolled inside about two visible lines and riders could not read back
what they had typed. It now grows from 2 to 6 lines, then scrolls.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): Bluetooth bridge to a phone sends data and stops crashing

A rider bridging from a Windows PC to MyWhoosh on a phone over Bluetooth got
no power, cadence or speed, and BikeControl closed the moment the phone
connected (#451).

- prop: notifications go out unaddressed on Windows, whose GATT server
  rejects any update naming a client.
- universal_ble fork: the Windows peripheral subscription and read-request
  callbacks no longer end the app when a client's link drops mid-callback.
- The trainer page, home and onboarding name the entry to pick as the PC's
  name on Windows over Bluetooth: Windows can't name the advertisement, so
  the phone never lists "<trainer> - BikeControl".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): 12 more OpenBikeControl trainer apps are officially supported (#460)

icTrainer, Auuki, VoxVelo, VeloWorkout, Pedalparty, VeloPopuli, Vieta,
DirtWatts, WattLog.pro, REZVIVO, OpenRadlr and zwoTrainer implement
OpenBikeControl over Bluetooth (VoxVelo and Vieta also over mDNS), as
listed in the protocol repository. They need nothing beyond their
connection methods, links and logo, so they share one class instead of
one file each. All of them except Vieta find trainers over Bluetooth
only. Logos are bundled and, for patched builds that lack them, loaded
from openbikecontrol.org.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(windows): Bluetooth layer's native errors reach the support log

universal_ble's Windows native log only went to stdout, which a release
Windows app has none of, so an error the plugin caught and survived — like
the peripheral callback guards for #451 — left no trace in a support bundle.

The universal_ble fork now delivers native errors and warnings to Dart in
every build mode (UniversalBle.nativeLogHandler). On Windows, BikeControl
writes them into "Logs:" as "BLE native error: …", writing a repeating
message once per 30 s with a count so a failing callback can't flood it.

Also bumps prop: the notification debug line now names who it went to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2 D-Fly: count a quick follow-up press once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): tell the rider to re-pair when a trainer app is stuck on a stale Bluetooth link

After BikeControl closed or crashed on Windows while bridging over
Bluetooth, the trainer app kept showing it as connected but got no data
until the rider removed the PC and paired it again (#451).

Verified on hardware (nRF Connect and MyWhoosh on Android, not bonded):
the phone holds the link, so it survives a clean close and a kill alike.
The restarted bridge publishes the same GATT layout (a cached CCCD write
lands on it), but its subscriber list starts empty, and Windows sends no
Service Changed. Nothing on the PC drops the link short of switching the
radio off, and after that MyWhoosh stays on "Pairing in progress" anyway.
Only re-pairing in the app brings the data back.

So BikeControl now says so: on Windows over Bluetooth, if a trainer app
has paired the bridge before and none picks it up within 20 s of the
bridge starting, the trainer card's pick-up step tells the rider to remove
the entry in the app and pair it again. The hint clears once an app
subscribes, and the support log notes when it was shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: wired levers can use their E-TUBE D-Fly channels (#461)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* 7.5.0+165

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog: 7.5.0 released 09-11-2026

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(di2): keep the backup of a shifter that a setup or restore did not see

A restore where only one shifter answered (the 15 s single-shifter grace)
wrote back that one, then deleted the backup of both: the other shifter
stayed on D-Fly channels with no restore left in BikeControl. Restore now
drops only the shifters it wrote back and keeps the rest on offer.

A setup saved the backup only when none existed, so a shifter missing
from the first setup went onto D-Fly on a later one without its setting
ever being saved. A shifter not in the backup yet is added now; one
already in it keeps its first setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): close & quit always stops the service and leaves the app

closeAndQuit waited for every disconnect before it stopped the
foreground service, so a disconnect that hung or threw left the app and
its notification running. Each teardown step now gets 3 s and its
error is logged, and quitting goes on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cycplus): CYCPLUS T7 shifters (T7H-L / T7H-R) work as controllers

Once unpaired from the bike in the CYCPLUS app, the T7's two shifters
connect to BikeControl directly. All eight buttons are available: the
rear arrows steer left/right by default, the levers shift, and every
button can be remapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop (#464)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): steer with the Ride paddles again

As a Zwift Ride, Zwift steers with the paddles and uses D-pad left/right
for the action bar and U-turn, so mapped steering opened menus instead.
Apps that don't get a Ride keep steering on the D-pad.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): brake tilts the Ride paddles inward, D-pad left/right navigates

Brake sent the same paddle values as steering outward, so Zwift never
saw a brake. With steering on the paddles, Navigate Left/Right press the
Ride's D-pad again for menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop (#465)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Incyclist supports OpenBikeControl (#466)

Incyclist implements OpenBikeControl over Bluetooth and mDNS
(incyclist/devices#141) and finds trainers over Bluetooth and Wi-Fi
(Direct Connect), so it joins the shared OpenBikeControl trainer apps
with both transports. Logo bundled, with the openbikecontrol.org
fallback for patched builds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: end the channel setup when a shifter doesn't take the setting (#467)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: offer the E-TUBE app when saving the channels doesn't finish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(unlock): no unlock-mode choice or Ride V2 explainer on Zwift and Rouvy

Both apps unlock a Click V2 or Ride V2 themselves once BikeControl is
connected to them. With either selected, a Click V2 skips the unlock-mode
page and runs as unlocked by Zwift (no restart loop, right side connects),
and the Ride V2 skips its one-time unlock explainer. Nothing is saved, so
switching to another app brings both back. A right-side-only choice stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): Zwift sees our Zwift Ride again once a Click V2 is unlocked

A Click V2 or Ride V2 sits on the bridge only while it still needs
unlocking; there it answers Zwift as itself (a Click V2 is a "Zwift
Click", without paddles). Once unlocked it leaves, and prop brings our
Ride back, so paddle steering and the D-pad work. Its frames no longer go
to the bridge while it is off it, or Zwift got every press twice on top of
the mapped action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(unlock): no "locked / unlock now" with Zwift or Rouvy

Both unlock a Click V2 or Ride V2 themselves once BikeControl is connected
to them, so the card banner, the home unlock step and the unlock status
lines stay away while either is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): D-pad navigates on a press and steers on a hold; sane defaults

As a Zwift Ride, a D-pad press moves through Zwift's menus and holding it
steers with the paddles, so the LEFT/RIGHT caption moves to Navigate.
Connecting a controller no longer adds a click default to a button the
app maps on another trigger only: Zwift's Y got "Menu" (unsupported) and
Z, like MyWhoosh/TPV steering, a duplicate hold. Zwift's power buttons do
nothing instead of an unsupported UI toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(debug): pedalling simulation in the debug menu

Feeds alternating power, cadence and heart rate through the sensor hub, so
trainer apps and virtual shifting can be tested without riding. Restores
the previous sensor selection when stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(unlock): put the controller on the bridge at every connect again

The stored unlock time outlives a controller that was switched off and is
locked again; skipping the bridge on it meant Zwift never saw the unlock
challenge. It now leaves the bridge only once this session saw it unlocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(click v2): one-screen setup explainer, optional left puck with restarts; bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(keymap): don't default buttons to actions the trainer app can't perform

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Tour du Pain supports OpenBikeControl

Tour du Pain implements OpenBikeControl over Web Bluetooth (Chrome and
Edge on a computer), so it joins the shared OpenBikeControl trainer apps
with Bluetooth only. Logo bundled, with the openbikecontrol.org fallback
for patched builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): each phone gets its own TPv controller entry (#468)

* fix(network): each phone gets its own TPv controller entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): TPv controller tile says the platform, hints name the tile

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(obc): Bluetooth buttons keep working once the trainer bridge starts; bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(biketerra): offer Virtual Shifting over Bluetooth only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(vs): a Bluetooth-only trainer app never starts or offers WiFi bridge or Proxy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Support chat: Jonas asks the follow-up, one-line diagnostics notice, no auto screenshot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(home): name this device's controller tile in the pending app hint

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(biketerra): send shifts over OpenBikeControl instead of keyboard only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(actions): name the inactive Bluetooth keyboard/mouse method instead of 'No connection method active'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(button-edit): group the action picker by intent, bottom sheet on phones

The picker listed actions per connection (trainer direct, OpenBikeControl,
MyWhoosh Link, Zwift emulator), so the same action showed up twice and long
lists were hard to scan. Actions now sit under Gears / Trainer / Workout /
Riding / Navigate / View / Controller buttons, each once, in a two-column
grid with tinted group heads. OpenBikeControl actions use their translated
names, the head says what the trigger does now, and below 600 px the picker
opens as a bottom sheet instead of a side drawer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(button-edit): mobile polish for the grouped action picker

Side padding in the bottom sheet; one MyWhoosh "not well supported" note per
group with a corner mark on the cards instead of the sentence under each one;
cards with a trailing button or long subtitle take the full row; every section
head uses the group head style; Launch Shortcut / Run Command are translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(button-edit): even action picker tiles, one width per section, tighter sheet head

Picker cards are at least two title lines tall so grid rows line up; a
section whose cards include a full-width one lays all of them out full width;
a tighter icon gap keeps long words whole; no extra spacer above the head in
the bottom sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Paywall: four short moments on Pro, one line on Base

Pro gets a tagline and four lines (shifting, drivetrain, bars, devices),
the shifting line naming native, instant shifting only for a trainer that
shifts natively and an app other than Zwift or Rouvy. Base names the app
that does the shifting. The footnote under both cards is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(obc): report the bridged trainer's virtual gear as Gear Set (0x03)

Apps that list 0x03 (and 0x04/0x05 with front shifting) in their App
Information get the gear on every change and when they connect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Paywall: drivetrain clip on the drivetrain moment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Paywall: split the buttons moment into gestures and screen-free control

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Debug menu paywall shows both plans regardless of purchases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): Big platforms section with OpenBikeControl badge, faded footer edge

The app step opens with MyWhoosh, TrainingPeaks Virtual, Biketerra, Rouvy,
Tacx Training and FulGaz; the official ones carry the OpenBikeControl mark.
The scroll body fades out above the mobile footer instead of a hard cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): zig-zag OpenBikeControl seal top-right; Zwift and icTrainer in Big platforms

The official badge is now a rosette seal in the tile's top-right corner;
the selected check moves to the top-left on sealed tiles. Big platforms
lists the official integrations first. The phone app-picker sheet is
capped at 85% height so the page above it still dismisses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): zig-zag OpenBikeControl seal top-right on Big platforms tiles

Restores the seal lost to an autostash before 4ab1450: a rosette in the
tile's top-right corner (the selected check moves top-left there), and wide
logos keep clear of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): OpenBikeControl seal before the Officially supported label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Plan & account: status and one way to the plans, no feature lists

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Onboarding: first Virtual Shifting scene compares one shift through the app and through BikeControl

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Onboarding: show the trainer applying the gear right away when a found trainer has the Zwift service

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: third setup option, set the D-Fly channels in E-TUBE yourself with a guide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(keymap): Rouvy keeps Zwift Ride D-pad up/down defaults

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let the onboarding welcome page scroll with large text sizes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count promotional Pro grants as Pro

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(trainer): recognise an Elite trainer's WiFi entry as its Bluetooth twin

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(click v2): Zwift unlocks it when it connects late; no unlock modes on Zwift or Rouvy

The left puck sends its unlock challenge a few seconds after connecting,
before Zwift usually connects to the bridge. Each new challenge now reaches
the bridge definition, which replays it to Zwift (prop ffa7b24). This is
#486, where the left puck never unlocked with Zwift selected.

With Zwift or Rouvy selected the cards no longer show the unlock mode,
"Set up again" or "Use right side only": both apps unlock the controller
themselves. A rider who already chose right-side-only keeps the way back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Rampida supports OpenBikeControl

Rampida implements OpenBikeControl over Web Bluetooth (Chrome and Edge),
so it joins the shared OpenBikeControl trainer apps with Bluetooth only.
Logo bundled, with the openbikecontrol.org fallback for patched builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): BikeControl no longer crashes every time it closes

The gamepad plugin unregistered its method call handler in its destructor.
Flutter destroys plugins from ~FlutterWindowsEngine after it has already
cleared the messenger's engine, so the call dereferenced a null engine in
FlutterDesktopMessengerSetCallback (flutter_windows.dll+0x15c2f). Every
normal close and every Windows Update restart crashed, which is the crash
in the support log for 7.5.0.165. The dispatcher goes away with the
engine, so there is nothing to unregister.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): mDNS, notification and BLE peripheral errors no longer crash the app

- nsd_windows (vendored): DNS callbacks post their results to the platform
  thread, lookups use find(), stopped discoveries keep their context alive
  and nothing throws out of a callback. A browse that called back after
  stopDiscovery crashed with std::out_of_range.
- flutter_local_notifications_windows (vendored): every FFI function
  catches native exceptions, so a WinRT error from showNotification no
  longer ends the app (FAIL_FAST_FATAL_APP_EXIT).
- universal_ble: FlutterError(..., nullptr) built an EncodableValue from a
  null char*, so RemoveService/UpdateCharacteristic errors crashed in strlen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): no crash when Android restarts the keep-alive service

The service was started with START_REDELIVER_INTENT. After Android killed
the process, it restarted the service in the background, where
startForeground is refused (ForegroundServiceStartNotAllowedException).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pro single payment: "Get Pro forever" link on the paywall

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* What's new: banner + full-screen page instead of the changelog dialog; no markdown bold in store notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* App Store header loop: larger layout clear of the overlay buttons, Dynamic Island gear pill

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Header loop: compact island only, rolling gear digits, wider side padding

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Changelog per language: translations in changelog/<lang>.md for the app and the store notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog: 7.6.0 in all languages; App Store notes and Apple builds leave out other-platform entries

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* 7.6.0+166

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog(7.6): keep Incyclist and Tour du Pain

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Short Play notes per language; Apple changelog drops emptied releases and sub-items; Click V2 doc comment back on its class

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Base owners: VS limit copy says buttons stay unlimited and how to shift without a limit, no "trial"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
jonasbark added a commit to OpenBikeControl/bikecontrol that referenced this pull request Nov 17, 2026
…hifting (#493)

* fix(di2): the log shows the 2AFD frames once button mode is on

Wired 11-speed Di2 switches may report on 2AFD rather than 2AF9, which
nothing listened to. The first 50 distinct-in-a-row frames on 2AFD after
button mode is active now go to the log, next to the 2AF9 ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(di2): wired 11-speed Di2 keeps the D-Fly channels instead of button mode

The wireless unit of a wired 11-speed Di2 (Ultegra 8000, Dura-Ace 9150,
GRX 815) exposes the same config service as the 12-speed wireless RDs, so
BikeControl offered button mode. Entering it works (the derailleurs stop
shifting) but the unit relays no paddle press, leaving the rider with
neither shifting nor buttons.

Those units report firmware 4.7.x, the 12-speed RDs 4.0.x/4.1.x. A 4.7.x
unit is now treated like a Di2 without the config service: no button mode
step, no automatic re-entry for riders who already turned it on, and the
hint to set the D-Fly channels in E-TUBE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Manage a Stripe subscription from the phone and tablet apps

Pro bought through Stripe on the Windows download or on Linux had no way
to be managed or cancelled on iOS, Android or macOS: the Plan page showed
no "Manage subscription" row for it, and the billing portal call went to
the store's subscription settings, which know nothing about Stripe.

Show the row for a Stripe subscription on the store builds too, and open
the Stripe billing portal for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Don't count an idle trainer twin as bridged in VS mode

The same trainer is often found twice, over WiFi and over Bluetooth, and
both entries share its saved retrofit mode. In the VS modes each entry
mirrors the shared ftmsEmulator, so the idle twin picked up the live
twin's started/connected state and read as bridged too. chainProxy()
then broke the tie by discovery order and could pick the idle twin,
which has no definition: Settings hid Virtual shifting and Overlay, and
Ride showed "<app> handles shifting" while BikeControl was shifting.

isBridged now only trusts the shared emulator while this trainer's own
definition is attached to it. Proxy mode is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Offer a one-tap Bonjour reinstall through winget on Windows

The network self-test's Bonjour fixes only opened an install guide. A
rider whose reinstall from Apple's download did not bring back the
MyWhoosh button was fixed by `winget install --id=Apple.Bonjour -e`, so
the fix now runs that (forced, so a broken install is actually replaced)
and falls back to the guide when winget is missing or the install fails.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Velotoss also connects over Bluetooth

Its browser version now reaches the OpenBikeControl service over Web Bluetooth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix blank touch-area screenshot for keymap names with a slash

The picked screenshot was cached as '<tmp>/<keymap name>_screenshot.png'.
Custom keymap names are user input, so a name like 'Rouvy Di2/Dictation'
pointed into a non-existent subfolder, the copy threw PathNotFoundException
and the page stayed blank. Sanitise the file name, and if caching still
fails, record the error and show the picked image anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): restart the BLE scan on a controller drop and every 25 min

Android downgrades an unfiltered BLE scan that runs longer than 30 minutes
to opportunistic (no results) and pauses it while the screen is off. The
scan was started once, and a drop's "try reconnect" called
performScanning(), which returns early while a scan is running — so a
controller that dropped after ~30 min of uptime was never rediscovered
until the app restarted.

- On a drop while scanning, restart only the BLE scan (stopScan +
  startScan, same unfiltered args); scan results, Wi-Fi and gamepad
  discovery are untouched. Debounced so the double disconnect event of one
  drop restarts once. Android only; not in screenshot mode or on web, and
  only when Bluetooth is powered on.
- Restart a running scan every 25 min (bleScanRestartInterval), re-armed
  after each restart and cancelled in stop(), so stop/scan cycles don't
  stack timers.
- Log "BLE scan restarted (<reason>)" and add a "BLE scan:" line (start
  time, age, restart count) to the support bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): keep a stopped scan stopped and retry failed BLE restarts

- stop() cancels pending restarts and bumps a scan generation before its
  first await. A restart whose start was still pending (deferred by
  Android's scan rate limiter) when stop() ran now turns the native scan
  back off, unless performScanning started a new scan since.
- A restart that stops the scan but fails to start it again retries after
  30 s (up to 3 times) before falling back to the 25-min interval, and the
  support bundle reports the scan as not running meanwhile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Classify Shimano crank power meters as power meters, not Di2

Shimano's crank power meters (FC-R8100-P advertises as FCR8100P…)
advertise the E-TUBE config service 18FF like every E-TUBE device, so the
services-based Di2 rule claimed them and every connect failed with
"Service not found: 000018ef…". Their Cycling Power advert fell through to
ProxyDevice and showed up as a trainer. Match them by name ahead of the
Di2 rules and resolve them to BlePowerDevice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Rename the Zwift control protocol to Native in the UI

The protocol picker and the self-test retry button now say "Native"
instead of "Zwift protocol" in all six locales. The stored value stays
zwiftHub, so saved overrides and support logs are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): stop the foreground service when quitting from Settings

"Close connections & quit" only popped the activity, so the keep-alive
service and its notification survived. Share the notification's close
path, which stops the service and cancels the notification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name the update step in the phone top bar

The phone's update action was a bare refresh icon that told riders
nothing. It is now a small filled button saying "Restart" for a
downloaded patch and "Update" for a store version; screen readers
still hear "New version available: <version>". Drops an entitlements
listener that only rebuilt without changing anything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move the phone's update action into a strip under the top bar

A labelled button beside the title squeezed "BikeControl" to
"BikeCo…" (and to "Bi…" in Polish). On phones the waiting update is
now a full-width strip under the bar: "Update downloaded — restart to
install it." with Restart, or "New version available: x" with Update.
Wider windows keep the button in the bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Open the Play Store listing when tapping "Leave a review" on Android

Play's in-app review sheet is quota-limited and reports success without
showing anything, so the tap silently did nothing. Explicit rate taps now
share one helper that goes straight to the store listing on Android.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(tpv): keep the controller visible next to the unlock bridge and sensors

TrainingPeaks Virtual takes the controller from OpenBikeControl's DirCon
endpoint, advertised as _wahoo-fitness-tnp._tcp "BikeControl". Two other
BikeControl records took the same type and name:

- the bridge the unlock page starts for a lone Zwift Click V2, which kept
  running after the page closed (until the controller disconnected);
- the standalone sensor peripheral (Broadcast on, no trainer bridged).

TPV resolved only one of the colliding records, so it never listed the
controller. The unlock page now stops a bridge it started itself, serving
nothing but the controller, when it closes and the app takes the controller
over DirCon. The standalone sensor record is named "BikeControl Sensors" for
those apps. Every other app is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Upload build symbols to bikecontrol.app, not Actions artifacts

The repo is public, so any signed-in GitHub user could download the
password-protected symbol zips. Every build/patch job now PUTs its zip to
the upload-symbols function, which stores it in a private bucket under
<version>/<name>; the upload token can only write.

Releases are named release-<platform>.zip, patches
patch-<run number>-<platform>.zip to match the patch/v<version>/<run> tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(tpv): stop the controller spinner once TrainingPeaks Virtual connects

TrainingPeaks Virtual shows a spinner on the controller until a first
notification arrives, and a controller says nothing until a button is
pressed, so the tile kept spinning on a working connection.

Follow the app's App Info with a button state naming no buttons, over DirCon
only. It changes nothing in the app, and raw TCP apps get no extra frame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Move a signed-out store purchase onto the account at login (#435)

A Base purchase posted while the app ran on an anonymous RevenueCat id
stays on that id. Logging in then switches RevenueCat to the account,
which shows neither Base nor Pro, and the app falls back to the trial.
After logIn, when the account has neither, re-post the store receipts
once per account and launch so the purchase follows the sign-in.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Add Ride drop button, shift button and paddle actions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Emulate a Zwift Ride for Zwift

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Emulate a Zwift Ride on the trainer bridge too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep Zwift steering on the D-pad

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Log the raw frame of every Di2 hood or satellite press

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: choose between E-TUBE channels and button mode

The setup now asks how the shifters should reach BikeControl. E-TUBE
channels (recommended) save the paddles' setting and put them on D-Fly
channels, so the Di2 never shifts with them, even if BikeControl
disconnects; the Di2 card restores the setting. Button mode stays, and
its card warns once that a disconnect shifts for real.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sram): a press's own side wins over a stale serial's stored side (#436)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: save each shifter's channels on its next press, left first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: let the rider cancel while the setup waits for a shifter press

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(support): strip NUL characters before sending a support message (#437)

Postgres rejects U+0000 in text columns, so one NUL anywhere in the
attached diagnostics made every send from that device fail with a 500.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: log switch writes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: show which shifter to press to save its setting

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: quieter E-TUBE channel setup, D-Fly presses counted from the first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: one setup sheet and no connection toasts through a wrong passkey; ask for each save press once it can land

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add Linux to the Shorebird patch workflow

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(di2): a Di2 with one shifter finishes the E-TUBE channel setup (#441)

The save step ticked a shifter that never answered and asked for it by
side. With one shifter it now shows a single prompt without a side, and
the read step says the setup goes on by itself after 15 seconds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Let riders without Pro use the daily virtual shifting trial after the trial period (#442)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Expire manual entitlements at their end date and revert entitlement-granted purchases (#443)

* Expire manual entitlements at their end date

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Revoke entitlement-granted purchase when entitlements lapse

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: also find the EW-WU111 wireless unit by name (#444)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Log Di2 2AFB frames after button mode (#445)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: wired levers in button mode; channel setup stops for them (#446)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: support wired levers in button mode, stop channel setup for them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* OBC haptic feedback: expose characteristic and play it on phone + controllers (#447)

* Expose OBC haptic feedback characteristic over BLE

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Play OBC haptic feedback on the phone and vibrating controllers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Expose OBC haptic characteristic over DirCon too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop (#448)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Keep forgotten gamepads forgotten across restarts (#449)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Control trainers that only expose the Wahoo control point (#450)

* Label the Wahoo control protocol in the trainer protocol picker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Resolve WiFi trainer hostnames over mDNS when Windows reports no address (#452)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(sram): drop stale side-less learned buttons; forget clears them (#453)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Ride speed and distance from power, grade and weight (#454)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Work out ride speed and distance from power, grade and weight

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(overlay): Windows overlay opens with the saved opacity and position (#455)

The Windows runner builds the sub-window's entrypoint args by walking the
createWindow argument map, which is sorted by key, so the JSON payload is
args[0]. The overlay searched for it starting at index 1, so on Windows the
saved opacity and position were never applied: the overlay opened fully
opaque until the slider was touched, and at the default position.

Decode the payload in decodeOverlayLaunchArgs, which scans every argument,
and cover both platform orderings in a test.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): two iPhones no longer share one host for the TPv controller entry (#458)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): two iPhones no longer share one host for the TPv controller entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(erg): Power Lock — release on stop, lock current power by default

- Manual ERG returns to SIM after 3 s below 25 rpm (prop), with a toast;
  a per-trainer "Release when you stop pedalling" switch, on by default.
- ERG now starts at the current power by default. The start source moves
  to a new 'ergStart' key: 7.4.0 wrote its old default into every saved
  config, so only an explicit "current power" carries over from it.
- "Trainer: Switch ERG/SIM" gets "Power Lock" as its secondary label.
- Bumps prop to 26c0e41.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(support): message field grows with the text instead of showing two lines (#459)

The support composer used a fixed 56 px TextArea, so a longer message
scrolled inside about two visible lines and riders could not read back
what they had typed. It now grows from 2 to 6 lines, then scrolls.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): Bluetooth bridge to a phone sends data and stops crashing

A rider bridging from a Windows PC to MyWhoosh on a phone over Bluetooth got
no power, cadence or speed, and BikeControl closed the moment the phone
connected (#451).

- prop: notifications go out unaddressed on Windows, whose GATT server
  rejects any update naming a client.
- universal_ble fork: the Windows peripheral subscription and read-request
  callbacks no longer end the app when a client's link drops mid-callback.
- The trainer page, home and onboarding name the entry to pick as the PC's
  name on Windows over Bluetooth: Windows can't name the advertisement, so
  the phone never lists "<trainer> - BikeControl".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): 12 more OpenBikeControl trainer apps are officially supported (#460)

icTrainer, Auuki, VoxVelo, VeloWorkout, Pedalparty, VeloPopuli, Vieta,
DirtWatts, WattLog.pro, REZVIVO, OpenRadlr and zwoTrainer implement
OpenBikeControl over Bluetooth (VoxVelo and Vieta also over mDNS), as
listed in the protocol repository. They need nothing beyond their
connection methods, links and logo, so they share one class instead of
one file each. All of them except Vieta find trainers over Bluetooth
only. Logos are bundled and, for patched builds that lack them, loaded
from openbikecontrol.org.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(windows): Bluetooth layer's native errors reach the support log

universal_ble's Windows native log only went to stdout, which a release
Windows app has none of, so an error the plugin caught and survived — like
the peripheral callback guards for #451 — left no trace in a support bundle.

The universal_ble fork now delivers native errors and warnings to Dart in
every build mode (UniversalBle.nativeLogHandler). On Windows, BikeControl
writes them into "Logs:" as "BLE native error: …", writing a repeating
message once per 30 s with a count so a failing callback can't flood it.

Also bumps prop: the notification debug line now names who it went to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2 D-Fly: count a quick follow-up press once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): tell the rider to re-pair when a trainer app is stuck on a stale Bluetooth link

After BikeControl closed or crashed on Windows while bridging over
Bluetooth, the trainer app kept showing it as connected but got no data
until the rider removed the PC and paired it again (#451).

Verified on hardware (nRF Connect and MyWhoosh on Android, not bonded):
the phone holds the link, so it survives a clean close and a kill alike.
The restarted bridge publishes the same GATT layout (a cached CCCD write
lands on it), but its subscriber list starts empty, and Windows sends no
Service Changed. Nothing on the PC drops the link short of switching the
radio off, and after that MyWhoosh stays on "Pairing in progress" anyway.
Only re-pairing in the app brings the data back.

So BikeControl now says so: on Windows over Bluetooth, if a trainer app
has paired the bridge before and none picks it up within 20 s of the
bridge starting, the trainer card's pick-up step tells the rider to remove
the entry in the app and pair it again. The hint clears once an app
subscribes, and the support log notes when it was shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: wired levers can use their E-TUBE D-Fly channels (#461)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* 7.5.0+165

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog: 7.5.0 released 09-11-2026

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(di2): keep the backup of a shifter that a setup or restore did not see

A restore where only one shifter answered (the 15 s single-shifter grace)
wrote back that one, then deleted the backup of both: the other shifter
stayed on D-Fly channels with no restore left in BikeControl. Restore now
drops only the shifters it wrote back and keeps the rest on offer.

A setup saved the backup only when none existed, so a shifter missing
from the first setup went onto D-Fly on a later one without its setting
ever being saved. A shifter not in the backup yet is added now; one
already in it keeps its first setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): close & quit always stops the service and leaves the app

closeAndQuit waited for every disconnect before it stopped the
foreground service, so a disconnect that hung or threw left the app and
its notification running. Each teardown step now gets 3 s and its
error is logged, and quitting goes on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(cycplus): CYCPLUS T7 shifters (T7H-L / T7H-R) work as controllers

Once unpaired from the bike in the CYCPLUS app, the T7's two shifters
connect to BikeControl directly. All eight buttons are available: the
rear arrows steer left/right by default, the levers shift, and every
button can be remapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop (#464)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): steer with the Ride paddles again

As a Zwift Ride, Zwift steers with the paddles and uses D-pad left/right
for the action bar and U-turn, so mapped steering opened menus instead.
Apps that don't get a Ride keep steering on the D-pad.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): brake tilts the Ride paddles inward, D-pad left/right navigates

Brake sent the same paddle values as steering outward, so Zwift never
saw a brake. With steering on the paddles, Navigate Left/Right press the
Ride's D-pad again for menus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop (#465)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Incyclist supports OpenBikeControl (#466)

Incyclist implements OpenBikeControl over Bluetooth and mDNS
(incyclist/devices#141) and finds trainers over Bluetooth and Wi-Fi
(Direct Connect), so it joins the shared OpenBikeControl trainer apps
with both transports. Logo bundled, with the openbikecontrol.org
fallback for patched builds.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: end the channel setup when a shifter doesn't take the setting (#467)

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: offer the E-TUBE app when saving the channels doesn't finish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(unlock): no unlock-mode choice or Ride V2 explainer on Zwift and Rouvy

Both apps unlock a Click V2 or Ride V2 themselves once BikeControl is
connected to them. With either selected, a Click V2 skips the unlock-mode
page and runs as unlocked by Zwift (no restart loop, right side connects),
and the Ride V2 skips its one-time unlock explainer. Nothing is saved, so
switching to another app brings both back. A right-side-only choice stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): Zwift sees our Zwift Ride again once a Click V2 is unlocked

A Click V2 or Ride V2 sits on the bridge only while it still needs
unlocking; there it answers Zwift as itself (a Click V2 is a "Zwift
Click", without paddles). Once unlocked it leaves, and prop brings our
Ride back, so paddle steering and the D-pad work. Its frames no longer go
to the bridge while it is off it, or Zwift got every press twice on top of
the mapped action.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(unlock): no "locked / unlock now" with Zwift or Rouvy

Both unlock a Click V2 or Ride V2 themselves once BikeControl is connected
to them, so the card banner, the home unlock step and the unlock status
lines stay away while either is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(zwift): D-pad navigates on a press and steers on a hold; sane defaults

As a Zwift Ride, a D-pad press moves through Zwift's menus and holding it
steers with the paddles, so the LEFT/RIGHT caption moves to Navigate.
Connecting a controller no longer adds a click default to a button the
app maps on another trigger only: Zwift's Y got "Menu" (unsupported) and
Z, like MyWhoosh/TPV steering, a duplicate hold. Zwift's power buttons do
nothing instead of an unsupported UI toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(debug): pedalling simulation in the debug menu

Feeds alternating power, cadence and heart rate through the sensor hub, so
trainer apps and virtual shifting can be tested without riding. Restores
the previous sensor selection when stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(unlock): put the controller on the bridge at every connect again

The stored unlock time outlives a controller that was switched off and is
locked again; skipping the bridge on it meant Zwift never saw the unlock
challenge. It now leaves the bridge only once this session saw it unlocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(click v2): one-screen setup explainer, optional left puck with restarts; bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(keymap): don't default buttons to actions the trainer app can't perform

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Tour du Pain supports OpenBikeControl

Tour du Pain implements OpenBikeControl over Web Bluetooth (Chrome and
Edge on a computer), so it joins the shared OpenBikeControl trainer apps
with Bluetooth only. Logo bundled, with the openbikecontrol.org fallback
for patched builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): each phone gets its own TPv controller entry (#468)

* fix(network): each phone gets its own TPv controller entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(network): TPv controller tile says the platform, hints name the tile

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(obc): Bluetooth buttons keep working once the trainer bridge starts; bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(biketerra): offer Virtual Shifting over Bluetooth only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(vs): a Bluetooth-only trainer app never starts or offers WiFi bridge or Proxy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Support chat: Jonas asks the follow-up, one-line diagnostics notice, no auto screenshot

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(home): name this device's controller tile in the pending app hint

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(biketerra): send shifts over OpenBikeControl instead of keyboard only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(actions): name the inactive Bluetooth keyboard/mouse method instead of 'No connection method active'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(button-edit): group the action picker by intent, bottom sheet on phones

The picker listed actions per connection (trainer direct, OpenBikeControl,
MyWhoosh Link, Zwift emulator), so the same action showed up twice and long
lists were hard to scan. Actions now sit under Gears / Trainer / Workout /
Riding / Navigate / View / Controller buttons, each once, in a two-column
grid with tinted group heads. OpenBikeControl actions use their translated
names, the head says what the trigger does now, and below 600 px the picker
opens as a bottom sheet instead of a side drawer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(button-edit): mobile polish for the grouped action picker

Side padding in the bottom sheet; one MyWhoosh "not well supported" note per
group with a corner mark on the cards instead of the sentence under each one;
cards with a trailing button or long subtitle take the full row; every section
head uses the group head style; Launch Shortcut / Run Command are translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(button-edit): even action picker tiles, one width per section, tighter sheet head

Picker cards are at least two title lines tall so grid rows line up; a
section whose cards include a full-width one lays all of them out full width;
a tighter icon gap keeps long words whole; no extra spacer above the head in
the bottom sheet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Paywall: four short moments on Pro, one line on Base

Pro gets a tagline and four lines (shifting, drivetrain, bars, devices),
the shifting line naming native, instant shifting only for a trainer that
shifts natively and an app other than Zwift or Rouvy. Base names the app
that does the shifting. The footnote under both cards is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(obc): report the bridged trainer's virtual gear as Gear Set (0x03)

Apps that list 0x03 (and 0x04/0x05 with front shifting) in their App
Information get the gear on every change and when they connect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Paywall: drivetrain clip on the drivetrain moment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Paywall: split the buttons moment into gestures and screen-free control

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Debug menu paywall shows both plans regardless of purchases

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): Big platforms section with OpenBikeControl badge, faded footer edge

The app step opens with MyWhoosh, TrainingPeaks Virtual, Biketerra, Rouvy,
Tacx Training and FulGaz; the official ones carry the OpenBikeControl mark.
The scroll body fades out above the mobile footer instead of a hard cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): zig-zag OpenBikeControl seal top-right; Zwift and icTrainer in Big platforms

The official badge is now a rosette seal in the tile's top-right corner;
the selected check moves to the top-left on sealed tiles. Big platforms
lists the official integrations first. The phone app-picker sheet is
capped at 85% height so the page above it still dismisses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): zig-zag OpenBikeControl seal top-right on Big platforms tiles

Restores the seal lost to an autostash before 4ab1450: a rosette in the
tile's top-right corner (the selected check moves top-left there), and wide
logos keep clear of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(onboarding): OpenBikeControl seal before the Officially supported label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Plan & account: status and one way to the plans, no feature lists

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Onboarding: first Virtual Shifting scene compares one shift through the app and through BikeControl

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Onboarding: show the trainer applying the gear right away when a found trainer has the Zwift service

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Di2: third setup option, set the D-Fly channels in E-TUBE yourself with a guide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(keymap): Rouvy keeps Zwift Ride D-pad up/down defaults

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Let the onboarding welcome page scroll with large text sizes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Count promotional Pro grants as Pro

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(trainer): recognise an Elite trainer's WiFi entry as its Bluetooth twin

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(click v2): Zwift unlocks it when it connects late; no unlock modes on Zwift or Rouvy

The left puck sends its unlock challenge a few seconds after connecting,
before Zwift usually connects to the bridge. Each new challenge now reaches
the bridge definition, which replays it to Zwift (prop ffa7b24). This is
#486, where the left puck never unlocked with Zwift selected.

With Zwift or Rouvy selected the cards no longer show the unlock mode,
"Set up again" or "Use right side only": both apps unlock the controller
themselves. A rider who already chose right-side-only keeps the way back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(apps): Rampida supports OpenBikeControl

Rampida implements OpenBikeControl over Web Bluetooth (Chrome and Edge),
so it joins the shared OpenBikeControl trainer apps with Bluetooth only.
Logo bundled, with the openbikecontrol.org fallback for patched builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): BikeControl no longer crashes every time it closes

The gamepad plugin unregistered its method call handler in its destructor.
Flutter destroys plugins from ~FlutterWindowsEngine after it has already
cleared the messenger's engine, so the call dereferenced a null engine in
FlutterDesktopMessengerSetCallback (flutter_windows.dll+0x15c2f). Every
normal close and every Windows Update restart crashed, which is the crash
in the support log for 7.5.0.165. The dispatcher goes away with the
engine, so there is nothing to unregister.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(windows): mDNS, notification and BLE peripheral errors no longer crash the app

- nsd_windows (vendored): DNS callbacks post their results to the platform
  thread, lookups use find(), stopped discoveries keep their context alive
  and nothing throws out of a callback. A browse that called back after
  stopDiscovery crashed with std::out_of_range.
- flutter_local_notifications_windows (vendored): every FFI function
  catches native exceptions, so a WinRT error from showNotification no
  longer ends the app (FAIL_FAST_FATAL_APP_EXIT).
- universal_ble: FlutterError(..., nullptr) built an EncodableValue from a
  null char*, so RemoveService/UpdateCharacteristic errors crashed in strlen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(android): no crash when Android restarts the keep-alive service

The service was started with START_REDELIVER_INTENT. After Android killed
the process, it restarted the service in the background, where
startForeground is refused (ForegroundServiceStartNotAllowedException).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* bump prop

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Pro single payment: "Get Pro forever" link on the paywall

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* What's new: banner + full-screen page instead of the changelog dialog; no markdown bold in store notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* App Store header loop: larger layout clear of the overlay buttons, Dynamic Island gear pill

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Header loop: compact island only, rolling gear digits, wider side padding

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Changelog per language: translations in changelog/<lang>.md for the app and the store notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog: 7.6.0 in all languages; App Store notes and Apple builds leave out other-platform entries

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* 7.6.0+166

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* changelog(7.6): keep Incyclist and Tour du Pain

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Short Play notes per language; Apple changelog drops emptied releases and sub-items; Click V2 doc comment back on its class

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Base owners: VS limit copy says buttons stay unlimited and how to shift without a limit, no "trial"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Trial limits: 120 presses a day in the trial, 40 after it, 30 min of virtual shifting a day without Pro

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

3 participants