Repository navigation
feat: customizable button actions — single/double/triple tap remappable, long press fixed (#2825) - #13705
feat: customizable button actions — single/double/triple tap remappable, long press fixed (#2825)#13705apoorvdarshan wants to merge 10 commits into
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 120 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Thanks @apoorvdarshan — this is a genuinely well-executed take on #2825: the shared recogniser, the regression test for the trailing-release bug, and the storage back-compat all check out. Detailed notes below; a few small items to consider, nothing blocking found by static review. Verified against the issue
What holds up well
Small items to consider (non-blocking, from static review)
Where human sign-off is needed by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Desktop Swift CI (run 34787753290 @
|
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
86d13d2 to
1e8ce2e
Compare
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
|
Follow-up review on the new head ( Everything raised earlier is addressed on this head — the press-edge drain of expired taps ( Locally verified on this head:
The routing change ( Still leaving for maintainer sign-off, unchanged from before: the wire-contract decision (single/double taps now report ~350 ms later for every existing user, new wire code by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Thanks @apoorvdarshan — this implements #2825 faithfully, including the requested defaults (single tap = Ask a Question, double tap = Mute/Unmute, triple tap = End Conversation, long press fixed to power off). What I verified on 1e8ce2e:
Two behavior notes for the maintainer (non-blocking):
Also: the branch is 222 commits behind Leaving the formal decision to a human maintainer: the firmware wire-protocol semantics and the double-tap default migration are product calls, and the on-hardware validation from #2825 still needs to happen. Great work — the shared, host-tested recogniser is a real improvement over the duplicated FSMs. Part of the omi keep-an-eye-on-prs automation, on behalf of David. AI-generated feedback; David may not have read it. Not a merge decision. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
1e8ce2e to
9db6781
Compare
|
Rebased this branch onto latest
Verified after the rebase:
Force-with-lease pushed to |
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
|
Rebase check on the new head The rebase onto
One new action item: GitHub currently reports the branch conflicting with Still open from my earlier review (maintainer calls, unchanged by the rebase): the wire-protocol semantics (codes Needs a human maintainer's sign-off before merge: the BLE wire-protocol change and the double-tap default migration are product decisions, and #2825's hardware-testing phase is still ahead. Part of the omi keep-an-eye-on-prs automation, on behalf of David. AI-generated feedback; David may not have read it. Not a merge decision. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
9db6781 to
968461b
Compare
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
|
Rebased this branch onto latest Two conflicts resolved, rest of the 9 commits applied cleanly:
Verified after the rebase:
Force-with-lease pushed to |
|
Hygiene failed after the rebase on Declared the two Verified locally: line-count ratchet passes against the live PR body; |
kodjima33
left a comment
There was a problem hiding this comment.
feat: customizable tap-action remapping — reclassified to mobile/app (no firmware files in current diff despite stale 'firmware' label); feature, approve-only. CI green.
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
f0849b2 to
3b1dadd
Compare
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
3b1dadd to
9e92dad
Compare
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
9e92b35 to
834ceb7
Compare
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
834ceb7 to
4d8cdf9
Compare
…iffs Adding a host-side firmware check to checks-manifest.yaml made selector_changed wake the full macOS debug suite on PRs that only touch app/firmware paths. That lane then failed on the 2700s step budget (3607s wall) with no Desktop Swift product signal (BasedHardware#13705). Manifest edits still wake the bounded component lanes; predictor, workflow, and detect-changes routing inputs still wake desktop-swift-tests. Manifest-only and app+firmware+manifest diffs without desktop/macos sources no longer select it. Verification: python3 .github/scripts/test_pre_push_ci_prediction.py python3 .github/scripts/test_desktop_swift_ci_contract.py scripts/pre_push_ci_prediction.py --changed-files <pr files> --event pull_request (no desktop-swift-tests phase) Co-authored-by: Apoorv Darshan <[email protected]>
4d8cdf9 to
5acd969
Compare
|
Reviewed the current head end to end — this is a genuinely well-built PR. Static findings, file by file: Firmware
App
Two things that need a maintainer decision before merge (code looks correct; these are product/compat calls):
Also noting the prior approval (@kodjima33, Sep 19) is on Thanks for the exceptionally thorough work — the PR description's plain statement of the latency trade-off and the failure-class write-up made review much easier. This review was produced by AI automation on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Thanks @apoorvdarshan — this is a well-executed end-to-end feature, and the PR description's honesty about the tradeoffs makes review much easier. Notes from a static pass over the current head: Firmware
App
Docs
Two things for maintainer sign-off (product decisions, not code defects):
Minor: the reformatting-only churn in Keeping by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Rebase the existing button feature, preserve onboarding interception and the newer settings menu. 21 focused button/controller/search tests passed. Failure-Class: none.
82f3eaa to
7dd3dfd
Compare
|
Reviewed end to end — this is a strong, cohesive implementation of #2825's gesture table, and I independently verified the firmware side: fetched Highlights worth calling out:
Two things I'd want a maintainer to confirm before merge (neither blocks review progress):
Minor: the backend test-file reformatting ( Leaving for human maintainer review for the default-change sign-off and hardware validation. AI-generated maintainer feedback on behalf of the Omi maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Integrates upstream 789de51 without rewriting PR history. Verification evidence: repair-evidence/20261011-13705-*.log (local coordinator handoff); PR body records commands and remaining hardware limitations. Failure-Class: none
Capture the actual Flutter widgets using their existing isolated test fixtures, the iOS theme and bundled fonts. This documents the rendered UI only; radio behavior, on-device interactions and firmware timing remain pending central hardware validation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01L6nc4Dq4LXiSGCnJBvD7ix
|
Verdict: the cross-stack implementation is in good shape and unusually well tested for a firmware+app change; what remains is a product/rollout sign-off rather than code fixes. What I verified:
UX (one deliberate change to confirm): users who never saved a double-tap choice move from the old default "end conversation" (0) to the new default "mute/unmute" - DevKit2Testing.mdx states this is intended, but it silently changes behavior for existing installs that never opened the setting. Worth an explicit maintainer yes. USER IMPACT: People can remap single/double/triple taps under Settings -> Device (ask a question, mute, end, star, or do nothing); anyone who never changed the double-tap setting will now get mute instead of end-conversation; long press remains power-off. Still wanted before merge: the physical device validation listed in DevKit2Testing.mdx, an explicit confirmation of the double-tap default change, and a check that the new firmware-button-gesture-tests manifest id actually executes in CI (it does not appear by name in this PR's check run list). Leaving for human maintainer review: the default double-tap change for existing users and the app/firmware rollout coordination are product decisions, and the earlier approval (kodjima33) is on a prior head of this branch. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
The Device page rebuilds on every DeviceProvider tick, and each OmiSettingsRow relays out (and so repaints its whole group) when rebuilt. The three extra gesture rows pushed the device_page perf gate over its paint budget. Move the gesture rows into a self-contained DeviceButtonGestureRows widget behind its own RepaintBoundary. The page caches one instance, so ticks skip it entirely; the tutorial bumps a revision on return so a double-tap choice saved there still shows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The device_page gate still came within 7 paints of its budget on one trial. Every DeviceProvider tick rebuilt the customization group, relaying out and repainting the Find and button-actions rows. Reuse the group widget while everything it reads (device, provider, locale, find/toggle state, gesture rows, LED and mic-gain state) is unchanged, so a tick skips it entirely. Point the settings search entries for the tap and long-press gestures at device_button_gesture_rows.dart, which now draws those rows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The device_page gate connects an Omi that was never saved, so getDeviceInfo swaps pairedDevice to BtDevice.empty() mid-scenario. Keying the cached customization group on the device object missed on exactly that rebuild, which relaid out and repainted the whole group. The group only uses the device for isOmi and supportsFind, so key on those instead. Draw the dividers inside the gesture block as one coloured 1pt box instead of a Divider (five render objects each); the line looks the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Verdict: this is in good shape — cohesive feature, correct wire-protocol handling, and unusually strong tests on both the firmware and app sides; what remains are maintainer product/rollout sign-offs, not code fixes. What I verified:
Material dimensions:
USER IMPACT: people with an Omi device can choose what single, double, and triple taps do (ask, mute, end, star, nothing) in Settings → Device; long press stays as power-off; anyone who hadn't set a double-tap action will find it now mutes instead of ending the conversation. What I'd still want before merge: physical CV1/DevKit validation of tap feel and the 300 ms/350 ms timing, a BLE packet capture of the 1/2/6-then-5 sequences, the old-app-with-new-firmware (and new-app-with-old-firmware) matrix, and maintainer sign-off on the unset-double-tap default change. Keeping needs-maintainer-review on for those product/rollout decisions — the code itself looks merge-ready to me. Feedback is automated on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Make Omi single, double and triple taps configurable, with a shared host-testable recognizer for CV1 and DevKit. Fixes #2825.
789de5136cd124991e9956f9ff72891b3ad4416dwith a regular merge. Developer testing documentation now records the default, timing and compatibility tradeoffs explicitly.Validation
flutter test --concurrency=2 test/unit/omi_button_action_test.dart test/providers/capture_button_dispatch_test.dart test/widgets/device_settings_double_tap_test.dart test/providers/device_provider_capture_wedge_test.dart— 37 passed.bash omi/firmware/common/test/run.sh— all host gesture tests passed.flutter gen-l10nvia the repo localization tool.tiered_capture_test.dart,resume_sync_fence_test.dart) — 24 passed.Remaining validation and maintainer decisions
Physical CV1/DevKit gesture timing, tap feel, BLE packets, long-press power-off and old/new app–firmware combinations remain unverified. Host C tests do not establish device firmware build/install success. Maintainers must sign off on the unset double-tap mute default, 350 ms timing and protocol compatibility; earlier approvals predate this repair head. No physical devices or simulators touched; mobile installation is coordinated separately.
Product invariants affected
INV-CAP-1 — manual mute is explicit user intent; preserve upstream automatic audio-retention behavior.
Failure-Class: FC-ambiguous-wire-event-gated-on-dropped-session-origin
Line-count exceptions
Merge formatter exception
The ordinary merge pre-commit hook ran. Unrelated imported-main formatter changes were then restored byte-for-byte to pinned
789de5136, and a user-authorized, one-command commit-hook override was used only for that restore-only amend. Git identity, conflict-marker checks and pinned formatting checks for authored paths passed manually. The full preflight and pre-push gates remain enabled.UI evidence
Host-rendered snapshots of the actual Flutter widgets using isolated test fixtures, bundled fonts and iOS theme. These are not phone/simulator captures or hardware sign-off.
make preflightpassed on the repaired head; complete output is in the local repair evidence. Full pre-push gates remain enabled for the push.The bounded pre-push gate passed with all selected gates enabled and no bypass variables; branch pushed without force. Full CI/platform suites and physical hardware checks remain separate evidence.
Line-Count-Exception: app/lib/backend/preferences.dart | 1641 -> 1648 | per-gesture button action storage replacing the single doubleTapAction setting
Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4609 -> 4622 | gesture-to-action dispatch for remappable device buttons
Line-Count-Exception: app/lib/utils/analytics/analytics_manager.dart | 3138 -> 3144 | button action analytics event