Repository navigation
feat: report focus, appearance, session and input state with the app inventory - #83
Merged
Merged
Conversation
This was referenced Oct 17, 2026
Merged
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.
Adds the system-state reads, as agreed. No new tool:
desktop_appsgains a top-levelsystemobject.getFocusedElementbridge op, now in the runtime allowlist. No patch is needed.Budget guard: the focused-element read runs after the inventory and is raced against its own 300 ms limit in the client. The host side also has 0.25 s and 0.05 s AX messaging timeouts.
focus.elementnull, with a warning.Not reported: Focus modes such as Do Not Disturb have no public read, so they're left out.
Live check (signed dev host, screen locked):
appstook 0.20–0.23 s end to end with 160 apps, andsystemwas 1,060 bytes.login. Its window_id came from the element, because the login window isn't a normal-level window.Updated: docs (
docs/tools.md) and the desktop_apps description.