Skip to content

feat(tv): tell nearby phones a TV is signing in, in release builds too - #747

Merged
Quick104 merged 1 commit into
mainfrom
fix/issue-742-release-advertises-sign-in
Oct 31, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/issue-742-release-advertises-sign-in

Conversation

@Quick104

@Quick104 Quick104 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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

advertisesSignIn is now true in 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 and docs/auth-api-v2.md now 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, main at 238134a removes the setup screen's st=setup advert and advertises nothing in its place. This branch replaces it with an st=login advert that carries the server's identity. The adverts were read from dumpsys servicediscovery on 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:lintDebug and :androidTvApp:lintVitalRelease passed 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

  • Anyone still on an Android phone app older than 1.0.0 (20), or an iPhone app older than silo-apple#579, sees a signed-out Android TV as a blank one. Setting it up from there pushes servers without an identity, and this TV refuses them, so nothing is signed in. Apple TV has had the same exposure since silo-apple#859.
  • This edits the TvLoginViewModel wiring in AndroidTvModule.kt next 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

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; agent-device and adb on a temporary Android TV emulator
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted: the agent checked the release history of both phone apps, wrote the change, and ran the emulator checks
  • Adversarial review: the plan round was skipped because the change is a one-line flag flip with a recorded precedent (silo-apple#859). A background adversarial review by gpt-6.1-sol of 7621341 found nothing to report: it confirmed release phone support in both apps, that the TV refuses a push without an identity, and that no other release gate remains.

🤖 Generated with Claude Code

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-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 30, 2026
@silo-kody

silo-kody Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T22:39:15.553966Z 7621341 PR opened
🔒 Security Review ✅ Completed 2026-10-30T22:40:01.525201Z 7621341 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 128 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d0c67a07-c8d2-4da6-9f0f-a443b8930079
Commits

Reviewing files that changed from the base of the PR and between 238134a and 7621341.

Files selected for processing: 3
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginViewModel.kt
  • docs/auth-api-v2.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@macroscopeapp

macroscopeapp Bot commented Oct 30, 2026

Copy link
Copy Markdown

The release st=login advert makes the Android phone app show a nearby-TV sign-in offer. This visible change reaches Android phones, tablets, and foldables both folded and open, but the Evidence section says Android TV only. Please add before-and-after captures of the same phone-app offer on an Android phone, tablet, and foldable folded and open; the linked evidence page should show those devices.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added bug Something isn't working priority: P2 Limited scope, workaround exists, or polish labels Oct 30, 2026
@Quick104
Quick104 merged commit d7f8e4e into main Oct 31, 2026
10 checks passed
@Quick104
Quick104 deleted the fix/issue-742-release-advertises-sign-in branch October 31, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Android TV release builds tell people to use their phone on the sign-in screen, but phones never see the TV

1 participant