Repository navigation
fix(tv): give the server address screen Apple TV's Advanced options and errors - #758
Conversation
…nd errors The Android TV address screen offered https://, http:// and .com typing chips where Apple TV, Roku and the Android phone offer Advanced options: a protocol (Auto, HTTPS, HTTP) and a port. It said "Network error. Check the URL and try again." for both an unreachable address and a malformed one, and did nothing on a blank Connect. The phone's address parsing moves unchanged to android-shared, so both apps build the same candidates (Auto tries HTTPS, then HTTP, then port 8090) and give the same errors: "Please enter a server host.", "Enter a valid server address." and, as on Apple TV, "Could not reach a Silo server at that address." Part of #743 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:
|
|
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 14 minutes. View limit details
Comment |
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. |
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (gpt-6.1-sol, reviewed 831e5f6)
Two findings: F1 concerns retrying after an answered-with-error probe; F2 concerns validation of an explicit port. Reviewed the pinned diff and affected call paths, and checked the relevant java.net.URI behavior. No device testing was performed for this review.
AI disclosure: model gpt-6.1-sol; harness Codex in T3 Code; AI-generated review.
A server that answered with an error put the tried URL, port included, into the address field, so a new Port value was ignored on the next try. The field now keeps what was typed. An explicit `:0` in the address was dropped as "no port"; it is now rejected like any other invalid port. 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:
|
|
Shared address validation changes what phone users see for an explicitly zero-valued port: it now shows a port validation error instead of dropping the port and trying a default endpoint. The Evidence section says Android TV only, so this phone change has no evidence. Please add before/after server-setup captures of that case for an Android phone, Android tablet, and Android foldable both folded and open. Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
Evidence updated: phone, tablet, foldable (folded/open) captures of the phone app rejecting an explicit :0 port. |
Problem
Related issue: #743 (this covers the server address screen; #754 covers the sign-in states, and the phone setup panel and sign-out follow in their own pull requests), Silo-Server/silo-server#1192
Validation tasks: changes #337 C3 (manual server address fallback) and C4 (its remote controls); neither has been run yet.
The Android TV "Enter your server address" screen differs from Apple TV's, Roku's, and the Android phone's:
https://,http://and.comtyping chips instead.Approach
The phone app's address parsing (
ServerSetupScheme,buildServerSetupCandidateUrls, the cleartext check, and their tests) moves unchanged fromandroidApptoandroid-shared, and the TV uses it. Both apps now try the same addresses: Auto tries HTTPS, then HTTP, then Silo's port 8090. They also give the same errors.On TV, the chips are replaced by an Advanced options button, as on Apple TV. It reveals Auto / HTTPS / HTTP buttons, with a check on the chosen one, and a Port: auto field. The TV's own candidate builder and its duplicate tests are removed. One TV persistence test now injects its candidate list, as the phone's version of the test does, because the shared parser refuses its
silo_lanhost before the guard it tests.For a malformed address the TV now says "Enter a valid server address.", the phone's existing wording. Apple says "Please enter a valid server host." Changing it would change the phone screen too, so that's left for a follow-up.
Validation
Reproduced live on an Android TV emulator (Android 14) against a dev server,
mainat 238134a before and this branch after:http://bad host: before, "Network error. Check the URL and try again."; after, "Enter a valid server address."silo.invalid(nothing answers): before, the same network error; after, "Could not reach a Silo server at that address."Unit tests for
:androidTvApp,:android-sharedand:androidApp;lintDebugfor all three modules;lintVitalReleasefor both apps; and both debug builds passed with no new lint findings. The phone's tests now run inandroid-shared, unchanged.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/issue-743-address/
Android TV only. The phone app's behavior and text are unchanged; only where its address code lives moved.
Risks
TvServerSetupScreen.kt, which fix(tv): name the TV by its device name when it asks to sign in #746 also edits (the chip's name helper). Whichever lands second needs a small rebase.Follow-ups
AI Disclosure
:0port in the address is dropped instead of rejected, which the phone's helper already did (P3).🤖 Generated with Claude Code
Note
Add Advanced options and validation errors to TV server address screen
common.networkpackage in ServerSetupAddress.ktparseServerSetupInputin ServerSetupAddress.kt)Macroscope summarized d88a5ec.