Repository navigation
feat(pm-stack): Android widget, dictation tile, share target, notification permission; phones linked to read a summary - #12501
Merged
Merged
Conversation
The app was a window onto the site and nothing else. Around the same
screens it now:
- receives text shared from any app, and text selected anywhere
("Ask the fleet" in the selection menu): it lands in the Ask box;
- starts dictation with the phone's own speech recogniser from a
shortcut or a quick-settings tile, with the app closed, and puts the
words in the Ask box;
- offers Dictate, Ask, Needs me and Now on a long press of its icon;
- shows the site's notifications as its own (already wired; unchanged).
Handed-over words travel after the "#" of the address, which a browser
never sends to a server, so they stay on the phone until Send.
minSdk 24 (quick-settings tiles). Version 0.2.0.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
…claude/pm-android-native
…its own The Android app's home-screen widget cannot use the sign-in the browser holds. It gets a token that reads one thing: the counts (in progress, queued, needs the owner) and the top line of each list. Nothing can be changed with it. Linking passes no secret through an address or another app. The phone makes a random verifier and shows the signed-in owner only its hash; the owner approves the hash (action device.approve); the phone presents the verifier at POST /console/device/link and is given its token once. The store keeps hashes of tokens, never tokens. The owner sees linked phones by name (GET /console/api/devices) and can remove one. /console/device/link and /console/device/summary are answered without the sign-in and checked here instead; tries on both are limited, and wrong tokens never slow a linked phone. expose.py lets /console/device past the edge's sign-in, as it does the icons; every other path under /console still needs the sign-in at this origin. A widget's read brings stale sections up to date and waits for them (Docs.current), without counting as someone looking, so it does not keep the background loop running. Tests: 12 new (69 bun tests in all), 7 python tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
…shortcuts that keep the open app Found by reading the built app's manifest against the reference project: the activity that asks for permission to show notifications (Android 13 and later) was never declared, so notifications could not be turned on inside the app. It is declared now, and notifications carry the app's own status-bar mark. New - A home-screen widget: in progress, queued next, needs me, and the task being worked on now with its next step. Each number opens its screen; the microphone starts dictation; it reads again every half hour, when the app is opened, and on a tap. It reads the summary itself with a token that can read only that (see the previous commit), linked by approving this phone once inside the app. - The quick-settings tile shows how many things need the owner. Fixed - Long-press shortcuts, share and dictation run in a task of their own and bring the open app forward at the right screen. Before, a shortcut threw the open app away and loaded it again, and dictation could take the app out of the recent-apps list. - The app keeps its place when it has been in the background a while. Version 0.3.0. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
…sed times read right - More, Phones: approve the Android app's request to link this phone (it shows what the widget can read, and that it can change nothing), list linked phones with when they last read, remove one, and what the Android app adds. Approving hands back to the app with an address that carries nothing (pmconsole://finish). - The summary answers "not ready yet" until the queue has been read once, instead of zeros; a side list that cannot be read does not stop the rest. The two open paths exist only when their limits are set. - "just now ago" is gone: elapsed time is one phrase everywhere. - A device was labelled "KHTML, like Gecko" (the last bracket of the browser's name, not the first); notifications use the fixed label. - README: the app's five tabs, where its state comes from, notifications and phones; the Android README lists the native parts. Tests: 74 bun tests (new: the page's own functions, not-ready and partial summaries, no open paths without limits); the link flow was also driven in Chrome against the demo server, start to finish. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
…he Phones screen follows the link through - A prompt thread whose last page held only a bot's link (or fewer than six replies) lost its answer and fell back to "waiting". Replies are now read from the last page backwards, up to three pages, until six are in hand. Found by review on #12454. - Phones: the approval card says to approve only after tapping the widget on this phone; once the phone has collected its token the card goes away and the phone appears in the list when the app is shown again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
…claude/pm-android-native
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 22, 2026
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
The Android app stops being only a window onto the site, and gets a real defect fixed.
Found by reading the built app's manifest against the reference project
New in the app
New in the console
/console/device/summary): three counts and the top line of each list, nothing else, and it cannot change anything. Linking passes no secret through an address: the phone shows the signed-in owner a hash, the owner approves it under More, Phones, and the phone then presents the value behind the hash and is given its token once. The store keeps hashes of tokens.Evidence
cd pm-stack/console && bun testpython3 -m unittest discover -s pm-stack/console/scriptspm-console-androidrun 44995966577)Not verified: the native parts running on a device. They compile and are declared; the site's half of each is tested.
After merge
expose.py(already on a 15-minute timer on the host) lets/console/devicepast the edge's sign-in; every other path under/consolestill needs the sign-in at the origin, which the tests pin.Undo
Revert this PR. Linked phones stop reading; nothing else depends on it.
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.