Repository navigation
Conversation
…nt: `android.windows` (owl 23) gives each window's app_id, title, name and icon as its Recents card has them, and `open(w.key)` moves its task forward and leaves the drawer as opening an app does, so a widget listing agent sessions can go to the terminal one runs in Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y on the runner (its 40 matches finished inside the budget); it passes locally and nothing here touches regexes or the budget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
petrzpav
marked this pull request as ready for review
November 13, 2026 08:44
… not yet released, as 23 and 24 have shipped (1.7.0 has 24), and sit beside android.strip in the sources; the drawer's and the launcher's changes follow AppDrawer.kt and Launcher.kt to ui/home, where the source tree reorganisation moved them (40c8a10) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Widgets can see the Linux windows the launcher shows, and bring one back to the front.
source w = android.windows(owl 23): the open Linux windows, oldest first, each{key, appId, title, name, icon}.nameandiconare what the window's card in Android's recents shows.open(w.key)moves that window's task to the front, and leaves the drawer or a panel as opening an app does. A key for a window that has closed since does nothing.Why
My home screen has a widget that shows my coding agents, the herdr ones and Claude Code sessions running in launcher terminals (
foot --app-id=omarchy.claude-edit-<name>). Tapping an agent should take me to it. herdr agents can be focused with a command, but nothing a widget can do brings a particular Linux window forward:open()only reaches drawer apps.launch()re-fronts a window only for a desktop entry, and terminal apps return before that.The launcher already knows the windows (
wm.appWindows) and how to front one (Runtime.bringToFront); this hands that to widgets.How
WidgetServices.windows()listswm.appWindows, with each window's keyw:<handle>(the handle its Recents card carries). The flow is asnapshotFlowthrottled likeandroid.drawer's, to at most once a second, because a busy terminal retitles with every frame of its program's spinner.openApptakesw:keys before the app lookup.Runtime.showWindow(handle)reusesbringToFront, and on successAppHandlers.leave(the part oflaunchthat clears the bar and closes the panel) runs.icon:w:<handle>resolves inappIconOfthroughRuntime.appOfWindow, the same lookupLinuxWindowActivityuses for its Recents card.windowsinANDROID,SINCE23,LEVEL23. Its command line is "read the open Linux windows (names and titles)", andReviewflags it, since titles carry folders, file names and commands. The privacy policy gets a sentence too, per ARCHITECTURE.md's recipe for a privateandroid.*source.open), versions.md and the README's level.What to look at
notification:). AGENTS.md says to add to an unreleased level, so both are at 23. Whichever lands second only conflicts on theSINCEtail and the versions.md line, which become one**23**bullet.windows()needs aRuntimewith live toplevels. LangTest covers the compiler side, the command line and the review warning.focused. I left it out on purpose: MainActivity clears focus on every home resume, so a widget on home would always see it false.Testing
:owl:test :app:testDebugUnitTest :app:assembleDebug :app:lintDebugpass on my PC. That includes the newLangTest.androidWindows(compile, owl 22 rejected, the command line, the review warning). Lint reports nothing new in the changed files.open(w.key)bringing a foot window forward from a home widget and from a panel;icon:w:<handle>drawing the Recents icon;🤖 Generated with Claude Code