feat(hid): add standalone Litra light support - #513
Merged
Conversation
Greptile SummaryAdds standalone Logitech Litra light support across raw-HID discovery, agent control, configuration, CLI, and GUI.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the prior partial-write, canceled-reapply, and superseded-edit issues are addressed by retained command outcomes, ordered reconciliation, and a cancellation check performed while holding the route lock.
|
| Filename | Overview |
|---|---|
| crates/openlogi-gui/src/state/light.rs | Tracks current and superseded command batches so successful hardware writes are retained during partial-failure reconciliation. |
| crates/openlogi-agent-core/src/hardware/light.rs | Serializes standalone-light operations and rechecks cancellation under the route lock before background reapplication. |
| crates/openlogi-agent/src/server.rs | Exposes standalone-light RPC handlers that invalidate pending reapplications before explicit commands. |
| crates/openlogi-hid/src/standalone.rs | Discovers recognized standalone raw-HID devices and maps them to model-specific capabilities. |
| crates/openlogi-hid/src/write/litra.rs | Implements model-specific Litra command encoding and raw-HID writes. |
| crates/openlogi-agent-core/src/orchestrator.rs | Integrates standalone inventory, settings reapplication, and camera-linked light state into agent runtime management. |
Sequence Diagram
sequenceDiagram
participant GUI
participant IPC as Agent IPC
participant Agent
participant HID as Litra HID
GUI->>IPC: SetLight(route, command)
IPC->>Agent: Cancel pending reapply
Agent->>Agent: Acquire per-route lock
Agent->>HID: Apply command
HID-->>Agent: Result
Agent-->>GUI: Typed result
GUI->>GUI: Persist accepted settings or reconcile partial success
Reviews (9): Last reviewed commit: "fix: rebase litra onto master and repair..." | Re-trigger Greptile
Contributor
Author
|
hi @AprilNEA, sorry if i'm disturbing you, are you able to leave feedback on this PR? i'm a first time contributor, i hope tagging you is the right thing to do. thank you! |
davidbudnick
force-pushed
the
feat/litra-support
branch
from
August 10, 2026 00:54
6f1c18d to
0d40294
Compare
Add the standalone light model, raw HID transport, agent orchestration, camera-linked automation, CLI controls, and GUI artwork for Litra Glow. Preserve automatic camera-based light activation and keep GUI tests isolated from the user configuration file.
davidbudnick
force-pushed
the
feat/litra-support
branch
from
August 10, 2026 01:13
0d40294 to
973ea50
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for standalone Logitech Litra lights as non-HID++ devices, starting with Litra Glow.
Changes
Testing
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspaceFixes #144