Repository navigation
feat(tv): tell nearby phones a TV is signing in, in release builds too - #747
Conversation
Release builds of the Android TV app never advertised st=login from the sign-in screen, so phones couldn't offer to sign the TV in even though the screen tells people to open Silo on their phone. The gate waited for both phone apps to handle sign-in TVs; the Android app has since 1.0.0 (20) (#448) and the iPhone app since silo-apple#579, and Apple TV turned its gate on in every build with silo-apple#859. Closes #742 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis 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. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 50 minutes. View limit details
Comment |
|
The release Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Problem
Closes #742
Related issue: Silo-Server/silo-server#1192
Validation tasks: changes #337 C2 (a phone now offers to sign in a release-build Android TV from its sign-in screen); not run yet.
The Android TV sign-in screen says "Have Silo on your phone? Open it on the same Wi‑Fi to sign in this TV." Only debug builds tell nearby phones that the TV is on that screen. In a release build no phone offers to sign the TV in, so the line promises something that doesn't happen. Apple TV and Roku advertise their sign-in screens in release builds.
Approach
advertisesSignInis nowtruein every build. The gate was there because a phone app older than sign-in TV support mistakes a sign-in TV for a blank one and offers the setup chooser. Both phone apps that handle sign-in TVs have shipped:Apple TV turned its matching gate (
PairingProtocol.advertisesSignInTVs) on in every build for the same reason in silo-apple#859. The parameter stays, so turning it back off is a one-line change. The comments anddocs/auth-api-v2.mdnow describe the gate as on.Validation
Reproduced live with release builds (minified, debug-signed for a local run) on an Android TV emulator (Android 14) against a dev server. On the sign-in screen,
mainat 238134a removes the setup screen'sst=setupadvert and advertises nothing in its place. This branch replaces it with anst=loginadvert that carries the server's identity. The adverts were read fromdumpsys servicediscoveryon the TV. That is the advert debug builds already send. In the #1192 validation run, iPhone, iPad, Android phone and Android tablet each offered to sign in a debug Android TV from it. No phone was paired with the release build in this run.:androidTvApp:testDebugUnitTest,:androidTvApp:lintDebugand:androidTvApp:lintVitalReleasepassed with no new findings.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/issue-742/
Android TV only. The screen looks the same before and after; the change is what nearby phones can see.
Risks
TvLoginViewModelwiring inAndroidTvModule.ktnext to the line fix(tv): name the TV by its device name when it asks to sign in #746 adds. Whichever lands second needs a small rebase.AI Disclosure
🤖 Generated with Claude Code