Closed JarbasAl closed 1 month ago
The changes introduced in this pull request add a new configuration option, disable_gui
, in the gui
section of the mycroft.conf
file. This flag allows users to suppress GUI-related bus messages on headless devices, aiming to reduce message bus usage in environments where a graphical user interface is unnecessary. The default setting for disable_gui
is false
, meaning GUI messages will be emitted unless explicitly disabled.
File Path | Change Summary |
---|---|
ovos_config/mycroft.conf | Added new configuration option "disable_gui": false in the gui section. |
mycroft.conf
file, specifically altering configuration settings, which may relate to the overall management of system messages and logging, similar to the introduction of the disable_gui
flag in the main PR.fix
In the land of code where rabbits play,
A flag was added to brighten the day.
Withdisable_gui
, we hop with glee,
Reducing messages, so light and free!
In headless burrows, we now can thrive,
A simpler bus, keeping us alive! 🐇✨
ovos_config/mycroft.conf (2)
`658-659`: **LGTM! Clean formatting and structure.** The placement and formatting of the new configuration section maintains consistency with the rest of the file. --- `660-664`: **Well documented configuration option.** The new `disable_gui` flag is: - Properly documented with clear comments explaining its purpose - Correctly defaults to `false` for backward compatibility - Thoughtfully includes a note about CLI-based GUI clients Let's verify the impact of this change:✅ Verification successful
**Configuration option is well documented and safely implemented** The verification confirms that: - The `disable_gui` flag is only referenced in the configuration file - The GUI websocket configuration exists but is separate from this flag - No direct dependencies on GUI messages were found in the codebase - The default `false` value ensures backward compatibility - The documentation clearly explains the implications and considerations🏁 Scripts executed
The following scripts were executed for the analysis: Script: ```shell #!/bin/bash # Check if any skills rely on GUI messages being always enabled rg -l "gui\.(show|hide|value|clear)" . ``` Length of output: 40 --- Script: ```shell #!/bin/bash # Let's try a broader search for GUI-related code and message bus interactions rg -l -i "gui.*message" . # Also search for GUI-related imports and class definitions ast-grep --pattern 'from ovos_bus_client import Message' # Check for any GUI-related configuration references rg -l "disable_gui" . ``` Length of output: 162 --- Script: ```shell #!/bin/bash # Let's examine the actual content around GUI-related code in mycroft.conf rg -C 5 -i "gui.*message|disable_gui" ./ovos_config/mycroft.conf # Look for any GUI-related message handling or bus events rg -i "gui\.(show|hide|value|clear|set)" . # Search for any GUI-related class definitions or methods ast-grep --pattern 'class $_ { $$$ gui_$_($$$) { $$$ } $$$ }' ``` Length of output: 1148
All modified and coverable lines are covered by tests :white_check_mark:
Please upload report for BASE (
dev@7242a3e
). Learn more about missing BASE report.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
do not spam the bus with GUI messages if disabled in config
companion to https://github.com/OpenVoiceOS/ovos-bus-client/pull/133
Summary by CodeRabbit