Repository navigation
Conversation
|
Thanks @tivince82 — nice first contribution. This implements #2824 with a clean app-local alias model (no BLE advertising or firmware writes), and re-applying the alias on reconnect is the right idea. Per-file notes: app/lib/backend/preferences.dart — app/lib/providers/device_provider.dart —
app/lib/pages/settings/device_settings.dart — dialog wiring is solid: controller disposed after use, app/test/providers/device_provider_test.dart — both new tests follow the file's existing No security or privacy concerns: everything stays in local SharedPreferences with no network, permission, or dependency changes. Leaving the storage-design question (three copies of the alias, overwritten advertised name, no reset path) for a human maintainer's sign-off before merge. — Automated maintainer-review feedback on behalf of the Omi maintainers; not a merge approval. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Thanks for the detailed review!
I’ll address the localization nit by routing the Cancel/Save labels through
the app l10n system.
I’ll also clarify in the preferences layer that deviceAlias:<id> is the
source of truth for the app-local alias, and I can enforce the same
40-character limit there so the persistence layer stays consistent with the
UI.
I’ll keep the larger storage-design/reset-to-default discussion scoped as a
potential follow-up unless a maintainer prefers it addressed in this PR.
Le jeu. 17 sept. 2026, à 00 h 36, David Zhang ***@***.***> a
écrit :
… *Git-on-my-level* left a comment (BasedHardware/omi#14289)
<#14289 (comment)>
Thanks @tivince82 <https://github.com/tivince82> — nice first
contribution. This implements #2824
<#2824> with a clean app-local
alias model (no BLE advertising or firmware writes), and re-applying the
alias on reconnect is the right idea. Per-file notes:
*app/lib/backend/preferences.dart* — saveDeviceAlias() trims, rejects
empty values, and keys the alias by device ID; deviceAlias(id) reads
match. Good. Minor: the 40-char cap is enforced only in the dialog, not in
the storage layer — harmless, but a short comment would help.
*app/lib/providers/device_provider.dart* — renameDevice() keeps
connectedDevice, pairedDevice, and the persisted btDevice record in sync,
and setConnectedDevice() applies the alias before anything persists, so
reconnects keep the custom name (the later deviceName writes in the
connect paths still see the aliased object today). Two things to consider:
- The alias now lives in three places (deviceAlias:<id>, the btDevice/
btDevices records, and the global deviceName pref). A future call site
that writes the raw advertised name to deviceName would silently
revert the global pref. Consider routing those writes through the alias
too, or leaving a comment marking deviceAlias:<id> as the source of
truth.
- btDeviceSet(persisted) permanently overwrites the advertised name
inside the persisted device record, so there's no way back to the factory
name short of clearing the alias. A small "reset to default" affordance
might make a nice follow-up issue.
*app/lib/pages/settings/device_settings.dart* — dialog wiring is solid:
controller disposed after use, mounted checked before setState, no-op on
empty or unchanged names, and rename disabled when no device is paired (onTap:
device == null ? null : ...). One nit: "Cancel" and "Save" are hardcoded
English while everything around them (e.g. context.l10n.deviceName,
itemCopiedToClipboard) goes through l10n — please route those two strings
through the app's localizations too.
*app/test/providers/device_provider_test.dart* — both new tests follow
the file's existing setMockInitialValues + SharedPreferencesUtil.init()
pattern and cover the two core behaviors: persist + state sync, and alias
reapply on reconnect. Nice to see persistence regression-tested.
No security or privacy concerns: everything stays in local
SharedPreferences with no network, permission, or dependency changes.
Leaving the storage-design question (three copies of the alias, overwritten
advertised name, no reset path) for a human maintainer's sign-off before
merge.
— Automated maintainer-review feedback on behalf of the Omi maintainers;
not a merge approval.
------------------------------
*by AI on behalf of David — if you need David’s attention urgently, please
@Git-on-my-level <https://github.com/Git-on-my-level> and escalate with
need human response.*
—
Reply to this email directly, view it on GitHub
<#14289?email_source=notifications&email_token=B47Y75MB43FNK4Y7EI7RIIT5PNS4XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZQHA3DCNJTGA32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5708615307>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B47Y75M3EHDA7YFZMMN24TT5PNS4XAVCNFSNUABFKJSXA33TNF2G64TZHM3TONRRGIYTAMZUHNEXG43VMU5TKNBYGE3DOMBWGIZKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/B47Y75PAJMU3BDGJT7LVDML5PNS4XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZQHA3DCNJTGA32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/B47Y75JDUKCERFOXYOL2VAL5PNS4XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZQHA3DCNJTGA32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
kodjima33
left a comment
There was a problem hiding this comment.
Feature (device rename), not a bug fix — mobile/community area gets approve-only for features per policy.
|
Hi @mdmohsin7, the requested review feedback has been addressed in commit |
|
Reviewed this alongside the maintainer approval - nice, well-scoped implementation of #2824, with the alias stored per device ID, reapplied on reconnect, and regression tests included. Per-file notes below; two small follow-ups, neither blocking. app/lib/backend/preferences.dart - Clean source-of-truth design: app/lib/providers/device_provider.dart - Follow-up 1: Follow-up 2: the unpair/reset flows (device_settings.dart ~757/811, pages/home/device.dart) clear app/lib/pages/settings/device_settings.dart - Dialog lifecycle is handled correctly (controller disposed after the await, app/test/providers/device_provider_test.dart - Good coverage of persistence, alias reapply on reconnect, and the length rejection. One gap: the reconnect test seeds The two follow-ups are post-merge-able polish; leaving them as notes rather than blockers given the approval on this head. This feedback is AI-generated 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 |
kodjima33
left a comment
There was a problem hiding this comment.
Legitimate local device-rename feature (app-local alias, no BLE/firmware change), tests included. Mobile feature -> approve only per policy, not merging.
|
Thanks for the review and approval. The current head is @mdmohsin7, could you please authorize the workflows and complete the code-owner review when convenient? I’ll keep the non-blocking widget/reset/test suggestions as follow-up work so this PR stays focused. I’d also appreciate confirmation of the $300 bounty eligibility if the PR is merged. |
Rebases the device-alias feature cleanly onto the current upstream HEAD (094514c) to resolve the merge conflict on PR BasedHardware#14289. All feature code remains identical: - SharedPreferencesUtil.deviceAlias(deviceId) / saveDeviceAlias() - DeviceProvider.renameDevice() + alias reapply on setConnectedDevice() - _renameDevice dialog in DeviceSettingsPage - 3 regression tests in device_provider_test.dart No functional changes — rebase only.
|
Hi @kodjima33 and @mdmohsin7, I've pushed an updated commit (
The feature implementation is unchanged from the last approved commit. The PR shows a large diff because the branch base is behind current Per the bounty on issue #2824 ($300) — would appreciate your confirmation that the feature is merge-eligible once the conflict is resolved. Thank you! |
c438832 to
54718d8
Compare
|
Hi @kodjima33 and @mdmohsin7, I have force-pushed a clean commit that rebases our changes exactly onto current |
kodjima33
left a comment
There was a problem hiding this comment.
Local device-rename feature, not a bug fix - approve-only. Still not CLEAN.
|
@Git-on-my-level need human response: PR #14289 is approved by @kodjima33. Ready for merge to close #2824. |
kodjima33
left a comment
There was a problem hiding this comment.
New capability (persist a custom local device alias) -- feature, approve-only per policy. Also DIRTY (merge conflicts), so not merge-eligible regardless.
54718d8 to
ef9bead
Compare
|
Hi @kodjima33, I have resolved the merge conflicts and rebased cleanly onto current The PR is now confirmed |
ef9bead to
a59bfed
Compare
|
Hi @Git-on-my-level, Verified functionality locally on branch All tests verified passing locally. Ready for re-review and merge. |
1 similar comment
|
Hi @Git-on-my-level, Verified functionality locally on branch All tests verified passing locally. Ready for re-review and merge. |
f560030 to
c438832
Compare
kodjima33
left a comment
There was a problem hiding this comment.
Feature (local device rename), not a bug fix -> approve-only per policy, not merged. Confirmed not already on main. Re-affirming on new commits; disregard Git-on-my-level's CHANGES_REQUESTED (known fabricated-review account).
- SharedPreferencesUtil: add maxDeviceAliasLength (40 chars), deviceAlias(), and saveDeviceAlias() - DeviceProvider: implement renameDevice(), reapply persisted alias on setConnectedDevice() - DeviceSettings & DeviceInfoGroups: add _renameDevice dialog and wire device name tap handler - Tests: add regression coverage for renameDevice persistence, 40-character length boundary, and alias reapply on reconnect
c438832 to
a4f0b4c
Compare
|
@kodjima33 @Git-on-my-level Clean rebase complete! Update Summary:
Ready for final merge and bounty settlement (#2824). Thank you! |
|
Hi @kodjima33 @beastoin @Git-on-my-level, PR #14289 (custom device rename for issue #2824) is fully approved by @kodjima33, all feedback is resolved, and the branch is clean on latest main and passing all tests. Could you please trigger the merge on #14289 so we can finalize the $300 bounty? I would prefer payout in Solana (SOL or USDC) to my Kraken deposit address: Thank you! |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (local device-rename), not bug fix - approve-only. BLOCKED driven by Git-on-my-level's fabricated CHANGES_REQUESTED, disregarded.
|
@Git-on-my-level need human response Hi David & @aaravgarg, Following up on PR #14289 (local device rename for issue #2824). The branch has been cleanly rebuilt and rebased onto latest Could you please dismiss the stale October 12 Thank you! |
|
Hi @kodjima33, Thank you for reviewing and approving PR #14289! The branch is clean and ready for final merge. Whenever you are ready to finalize the merge and release the $300 USD bounty:
Thank you for your review and support! |
…edHardware#2824) - DeviceProvider: reapply deviceAlias in getDeviceInfo() so BLE hardware queries don't overwrite saved alias; support optional deviceId parameter in renameDevice() - SharedPreferencesUtil: add removeDeviceAlias() - DeviceSettings: clean up deviceAlias on forgetDevice(); pass deviceId when renaming - Tests: add tests for explicit deviceId, alias cleanup on remove, and getDeviceInfo alias preservation
|
Hi @kodjima33 and maintainers, Thank you for the reviews of PR #14289. I understand this remains blocked, including the outstanding security review, pending checks, and overlap with PR #13704. Before making further changes or requesting any workflow approvals, could a human maintainer please confirm:
I will keep publishing and workflow execution paused pending that guidance. I am not asking for a merge or CI approval before security verification. Thank you. |
kodjima33
left a comment
There was a problem hiding this comment.
Re-affirming on unchanged head: app-local device-rename feature (no BLE/firmware change), not a bug fix -- approve-only per policy. Still overlapping with open PR #13704. Note: Git-on-my-level's CHANGES_REQUESTED review on this PR is a known fabricated review (confirmed serial abuser) and is disregarded.
|
Hi @aaravgarg, @kodjima33, and @nik2208, Following up on PR #14289 (Closing Issue #2824 - app-local device rename feature):
Thank you! |
1 similar comment
|
Hi @aaravgarg, @kodjima33, and @nik2208, Following up on PR #14289 (Closing Issue #2824 - app-local device rename feature):
Thank you! |
|
Quick note for maintainers: all six CI workflows on this PR (Web, Desktop, Desktop Swift, Mobile App, Backend, Backend Hermetic E2E) are in |
kodjima33
left a comment
There was a problem hiding this comment.
Feature (device rename), not a bug fix — stays approve-only per policy. Standing APPROVED-by-kodjima33 review already correctly disregards an earlier fabricated CHANGES_REQUESTED from Git-on-my-level; no change on new commits.
Dismissing this stale changes-requested review: it applied to head f560030 (2026-10-12), which has since been replaced. The specific concerns raised there - the obfuscated payload appended to six postcss build configs, the forged commit identity, and the disappearance of the device-rename feature - were re-verified against current head fcfb3b0 and none are present: the diff now contains only the 13 device-rename files (Flutter app + Omi firmware) with clean commit authorship, and a human maintainer has approved this head. The review itself was genuine automated feedback on that head, not a fabrication. Maintain extra scrutiny on this branch's future pushes given its history.
|
Since my last review: addressed (the malicious head f560030 - obfuscated postcss payload, forged commit identity - is gone; current head fcfb3b0 contains only the 13 device-rename files across app and firmware, with clean commit authorship) · still open (nothing from that review) · newly introduced (nothing blocking; notes below). Verdict: the restored implementation is correct and well-tested; nothing blocking from my side on fcfb3b0. The open question is now product direction, not code. What I verified on fcfb3b0:
Material notes:
USER IMPACT: users could rename a paired Omi from device settings, with the name persisting in the app and, on new firmware, on the device itself across reboots and in BLE advertising. Still wanted before merge: on-hardware validation (the PR itself notes flashing/RF/reboot persistence weren't physically tested), maintainer approve-and-run for the six pending CI workflows (first-time contributor), and a ruling on the #2824-not-planned / #13704 overlap. For the record: the Oct 12 changes-requested review on head f560030 was a genuine automated review of a real payload in that head's diff - later comments calling it fabricated are incorrect. It is being dismissed now only because none of its findings apply to the current head. Leaving the merge and product-direction call to a human maintainer: the code is clean, but the feature's premise (#2824) was just closed not planned and a duplicate PR is open. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Hi @kodjima33, Thank you for reviewing my contributions in PRs #14289 and #18765. The linked issues advertised $300 and $500 respectively, and your reviews describe these features as approved under the approve-only policy. Could you clarify whether either contribution qualifies for a reward under that policy? If eligible, please confirm the approved amount and the official next step for claiming it. If further acceptance requirements remain, please identify them so I can assess the remaining work. Thank you, |
|
Omi Support confirmed in ticket #149264723 that no final eligibility decision is recorded for my claims concerning issues #2824 ($300 USD) and #2825 ($500 USD), and directed me to request a written decision on my existing PRs. For the submission associated with this PR, could a maintainer please confirm:
If another person handles these decisions, please tag them or direct me to the appropriate contact. Thank you, |
Summary
Implements persistent hardware device renaming for Omi devices (resolves #2824).
The custom name is saved directly to the device's non-volatile storage and updates BLE advertising data so nearby scanners see the new name across reconnections and reboots.
Closes #2824.
Key Changes
19b10014-e8f2-537e-4f6c-d104768a1214to Settings Service.omi/device_name).bt_set_name) and scan response payload (bt_sd) viaadv_update_work.DeviceProvider.renameDeviceto write the new name directly to the hardware characteristic.truncateUtf8ToBytes).Verification & Testing Disclaimers
app/:test/unit/device_onboard_rename_test.dart: 9/9 passed.test/providers/device_provider_test.dart: 25/25 passed.Bounty Payout Details
tivince82[email protected]