Repository navigation
feat: select the input source through the host - #101
Merged
Merged
Conversation
…vity list cover it
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.
desktop_input_sourceselect now goes through the host, so Pause All Input stops it and the activity list shows it as "Select input source". Listing stays in the client.Audit: client-side mutations that bypass the host
I went through
native/sources/client/*.swiftandsrc/*.tslooking for anything that posts events, writes the clipboard, or changes system state without a Bridge op:inputsource.swiftTISSelectInputSourceclipboard.swiftsave_path,client.swiftcapturepathclient.ts/usr/bin/sipsCGEvent(source: nil)?.location,CGDisplay*,CGSessionCopyCurrentDictionary, TIS listinghotkey,action,launchApplicationWithOptions, …)Nothing else needed moving, and nothing non-simple turned up.
Changes
peekaboo-input-source.patchadds aselectInputSource(id)Bridge op.dispatchedUnverifiednative-framework delivery, answered withok.notFound; a nonzero TIS status isinternalError.refusedwith the host's message.refused; any other failure isunknownunless the readback shows the new source..selectInputSourceand names it in the activity list.Checks
npm run -s check,npm test(52 pass)