The "No connection" picker entry disconnects without leaving the details
page, but Connection.disconnect(forget: false) removed the ProxyDevice
from the registry (isResetting is false). The open page kept the now
orphaned object: rediscovery built a *new* ProxyDevice while the page
still pointed at the old one, so selecting Virtual Shifting again
reconnected a device absent from bluetoothDevices — its BLE notifications
were rejected ("Device not found") and the connection was force-dropped.
Add a keepInList flag to disconnect; the in-place "No connection" path
passes it so the same device object stays registered (and its scan
result is retained to avoid a churned duplicate) and remains
reconnectable on the same card. The Disconnect buttons, which pop the
page, keep the default removing behaviour.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- ConnectionCard: "No connection" shows "Not connected" instead of the
bridge connect instruction; switching modes keeps the bridge accordion
mounted with inline progress (drops the "Connecting in ... mode"
placeholder card).
- proxy_device_details: stable keys on ConnectionCard / LiveMetricsSection
/ MiniWorkoutCard. On (dis)connect, conditional siblings toggle both
above (FTMS warning) and below (gear/settings/VS-notice) these widgets,
trapping the unkeyed ones in Flutter's reconciliation middle and
remounting them — which collapsed the accordion and rebuilt the page.
- ProxyDevice: re-establish the emulator-state bindings on every
(re)connect (_rebindEmulatorState in startProxy). The in-place
"No connection" disconnect detaches them on a reused ProxyDevice, so
reconnecting Virtual Shifting left the UI stuck on "connecting" while
the emulator was actually connected.
- ProxyDevice.disconnect/switchRetrofitMode/handleServices: await the
emulator stops so mDNS/TCP is torn down before reporting disconnected,
and log the previously swallowed detach errors.
- connection.dart: log the discovered device name instead of its runtime
type.
- Bump prop for the awaited mDNS teardown.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Widens ProxyDevice._isSmartTrainer to also return true when the scan
result advertises the ANT+ FE-C-over-BLE service (6e40fec1) so a
FE-C-only trainer like the ThinkRider X2Max routes into Virtual
Shifting via defaultRetrofitMode instead of falling through to Proxy.
Bumps the prop submodule which now carries the FE-C frame builder,
the FE-C write path in FitnessBikeDefinition, and CPS-derived cadence
for the sim recompute when no FTMS Indoor Bike Data is available.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>