PHASE 6: Input/GUI fallbacks + system diagnostics#38
Merged
infinityabundance merged 6 commits intomainfrom Feb 13, 2026
Merged
Conversation
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add input device fallback and GUI flexibility options
PHASE 6: Input/GUI fallbacks + system diagnostics
Feb 13, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
Implements graceful degradation for input injection and GUI across diverse deployment environments (desktop, SSH, headless, Docker). Adds system diagnostics for troubleshooting backend availability.
Details
What changed?
Input injection fallback chain:
GUI fallback chain:
New CLI options:
System diagnostics:
Implementation:
src/input_xdotool.c,src/input_logging.c,src/tray_tui.c,src/tray_cli.c,src/diagnostics.csrc/main.c(CLI option parsing, GUI selection),src/service.c(input fallback)HAVE_GTKflagSecurity hardening:
system()withaccess()for path checksgetgroups()for group membershipRationale
/dev/uinputpermissions can use xdotool--diagnosticsreveals backend selection without running full stackTesting
make)Notes
system()calls withfork()/execve()for additional security hardening (low priority - input validation already in place).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
10.1.15.255REDACTED, pid is -1(packet block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
PHASE 6: Miscellaneous Fallbacks & Integration Polish
Current State
Problem
Currently:
On systems with:
User experience degrades or fails completely.
Solution: Input Fallback + GUI Flexibility + Diagnostics
Tier 1: Input Injection
PRIMARY: uinput (kernel virtual device)
FALLBACK 1: xdotool (X11 automation tool)
FALLBACK 2: Logging Only (Debug mode)
Tier 2: GUI
PRIMARY: GTK Tray
FALLBACK 1: ncurses TUI (Text User Interface)
FALLBACK 2: CLI Only (Minimal mode)
Tier 3: Diagnostics
Implementation
File 1:
src/input_xdotool.c- xdotool FallbackFile 2:
src/input_logging.c- Debug Logging Input