Repository navigation
feat(keyboards): add G915 X TKL lighting, Game Mode and profiles - #1724
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait...
|
# Conflicts: # build/check-bundle-size.ts # src/shared/device-images.ts
|
Updated this branch from main (protocol 0.64.0, keyboard-protocol 1.9.0 with #24), so the build errors are gone and CI is green. Two merge conflicts resolved: |
# Conflicts: # build/check-bundle-size.ts
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — Adds Logitech lighting, Game Mode and onboard profile editing with explicit saves and read-back verification. The unresolved activation-error concern can leave the panel showing a different active profile from the keyboard, including its key assignments; state reconciliation needs resolution. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Dismissing prior approval to re-evaluate 057a141
| } | ||
| } | ||
| } else { | ||
| const mode = action.kind === "logitechOnboardActivate" ? await this.client.activateOnboardProfile(action.slot) : await this.client.leaveOnboardMemory(); |
There was a problem hiding this comment.
🟡 Medium device/logitech-keyboard.ts:134
When activateOnboardProfile changes the keyboard’s active slot and then throws, this branch leaves this.onboard unchanged, so recoveredWorkspace() reports the old slot and mode. Re-read onboard memory in the activation error path before rethrowing so the profiles panel reflects the keyboard’s actual state.
- const mode = action.kind === "logitechOnboardActivate" ? await this.client.activateOnboardProfile(action.slot) : await this.client.leaveOnboardMemory();
+ const mode = action.kind === "logitechOnboardActivate"
+ ? await this.client.activateOnboardProfile(action.slot).catch(async error => {
+ this.onboard = await this.client.readOnboardMemory();
+ throw error;
+ })
+ : await this.client.leaveOnboardMemory();🤖 Copy this AI Prompt to have your agent fix this:
In file @src/device/logitech-keyboard.ts around line 134:
When `activateOnboardProfile` changes the keyboard’s active slot and then throws, this branch leaves `this.onboard` unchanged, so `recoveredWorkspace()` reports the old slot and mode. Re-read onboard memory in the activation error path before rethrowing so the profiles panel reflects the keyboard’s actual state.

Scope
Dependencies
Draft until OpenMouse-Project/keyboard-protocol#24 lands and its package is published. The C547 shared-receiver use case also depends on #1651 and its two protocol releases. The locked packages intentionally still refer to published versions. For local verification, the protocol builds were overlaid on the npm install before running the integrated application check.
Validation
npm run check: 741 tests, type check, production build and bundle budgets.Note
Add G915 X TKL support for lighting, Game Mode, and onboard profiles
LogitechKeyboardClient.commandin logitech-keyboard.ts with live zone updates, startup lighting, inactivity timers, game-mode writes, and onboard animation/profile save, activate, and leave operations. Profile saves are verified by rereading device stategameModeworkspace tab, gated by reported device status inavailableKeyboardWorkspaceTabs(workspace-tabs.ts)Macroscope summarized 057a141.
Summary by CodeRabbit