Repository navigation
fix(niriDS): serialize rapid output toggles - #47
Merged
hthienloc merged 2 commits intoNov 20, 2026
Merged
Conversation
Track the requested state for each output until refreshed data confirms it, and serialize commands so repeated clicks preserve the latest intent. Isolate process callbacks and discard pending work when an output disconnects.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
Author
|
Hey @hthienloc submitted this one as I saw the comments on #46 but let me know if we just close this one out, thanks for the quick merge |
Owner
|
I added a small commit to reset |
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.
What
Serialize toggle commands per output and derive each click from the pending requested state until a fresh output snapshot confirms it. Failed commands restore the last successfully applied state, and disconnects discard queued work. Each process request has its own callback/debounce slot.
Why
Two clicks before a command or its asynchronous refresh finishes can both read the same
display.disabledvalue and sendofftwice. This follow-up to #46 preserves the latest requested state across that interval.Addresses the rapid-click finding. The native-refresh method and direct-query compatibility fallback are unchanged.
How tested
qmllint niriDS/*.qml niriDS/shared/*.qml: exit 0, with no new diagnostic messages or counts relative to the previous revision.python3 scripts/check_unused_imports.py niriDS: passes with installed Dux sources available to symbol discovery.python3 scripts/refactor_dcommon.py --check --requires-dms ">=2.0.0"andgit diff --check: pass.This follow-up was tested with mocked commands and refresh responses; no live monitor switching was performed.