Skip to content

fix(tv): drop the on-screen mic from Android TV search - #286

Merged
Quick104 merged 1 commit into
mainfrom
t3code/tv-search-drop-mic
Sep 3, 2026
Merged

Quick104 merged 1 commit into
mainfrom
t3code/tv-search-drop-mic

Conversation

@Quick104

@Quick104 Quick104 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Problem

The Android TV search page carried a separate mic button beside the field, a sentence of copy in the empty state explaining how to reach it ("Press left from the search box to search by voice"), and Left-key routing to make that reachable. Gboard on Android TV already puts a mic key on the keyboard that listens through the remote, so this was a second route to the same thing. It also pushed the field off the page gutter so nothing lined up with the logo, chips, or result cards.

Solution

  • Remove TvVoiceSearch.kt, the TvVoiceSearchButton composable, the voice-unavailable message, and the Left-key focus routing on the field. Down-key routing to the chips is kept.
  • Drop the "press left" hint from the empty state.
  • Remove the RECOGNIZE_SPEECH <queries> block from the TV manifest. It existed only for the availability check.
  • The field now starts at the gutter, in line with the chips and grid.

The empty state is still a headline and one line. Recent searches or popular rows would need view model and server work and are out of scope here.

Before / after

Screenshots to follow as attachments (SiloTV emulator).

Validation

  • :androidTvApp:assembleDebug clean.
  • :androidTvApp:testDebugUnitTest for ui.screens.search.* passes.
  • On the SiloTV emulator: empty state, keyboard raise, typing, submit, focus handoff to the first result, and Up back to the field all work.

Risks

Low. Removes code paths only. Voice input now depends on the device keyboard offering a mic key, which Gboard on the Google TV Streamer and Shield does.

AI disclosure

Written with Claude Code (claude-fable-5-1) in the Claude desktop app.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 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-09-03T00:06:31.161117Z 1f1cd29 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.

The search page carried a separate mic button beside the field, a sentence of
copy explaining how to reach it, and Left-key routing to make that reachable.
Gboard on Android TV already puts a mic key on the keyboard that listens
through the remote, so this was a second route to the same thing and it
pushed the field off the page gutter.

Remove the voice controller, the button, the hint, the Left-key handling, and
the speech-recognition manifest query. The field now starts at the gutter in
line with the chips and result cards.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@Quick104
Quick104 force-pushed the t3code/tv-search-drop-mic branch from 1f1cd29 to d48ac72 Compare September 3, 2026 00:05
@coderabbitai

coderabbitai Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Review Change Stack

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t3code/tv-search-drop-mic

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1f1cd29ab9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +871 to +874
// Voice is the system keyboard's job: Gboard on Android TV puts a mic
// key on the keyboard itself, which listens through the remote. A
// separate on-screen mic only added a second route to the same thing
// and a sentence of copy to explain it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Delete the orphaned voice-search implementation

Remove TvVoiceSearch.kt along with this UI path. A repo-wide search shows that this change removes the only callers of rememberTvVoiceSearch and TvVoiceSearchController, but the 190-line production implementation remains compiled and its documentation still claims that an on-screen affordance is required; moreover, its availability check now lacks the manifest <queries> declaration it requires. Leaving this contradictory, unusable implementation behind makes the voice-search removal incomplete and risks future callers reviving a path that always reports unavailable on modern Android.

Useful? React with 👍 / 👎.

@Quick104
Quick104 merged commit 0ca2ebd into main Sep 3, 2026
4 checks passed
@Quick104
Quick104 deleted the t3code/tv-search-drop-mic branch September 3, 2026 00:06
Quick104 added a commit that referenced this pull request Sep 3, 2026
…file

Codex review on #285: the audiobook player fed the Material background role
into its gradient, so the charcoal canvas leaked into a player surface that
iOS keeps black. Pass SiloBackground there. The TvVoiceSearch.kt deletion
belonged to #286 and was staged here by mistake; restored from main.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Quick104 added a commit that referenced this pull request Sep 3, 2026
* fix(ui): match the iOS charcoal page canvas on Android phone

iOS moved every signed-in phone surface off pure black onto a fixed #111111
canvas and stopped Home from recolouring itself from Continue Watching
artwork (silo-apple PR #222). Android still painted black everywhere and
tinted Home from the centred card.

Material background is now SiloPageBackground (#111111). SiloBackground stays
black for ink roles and the player. Home sits on the fixed canvas with the
dominant-colour sampling removed. Window background matches so cold launch
does not flash a different grey. Settings keeps its own lifted ground, as on
iOS.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix(ui): keep the audiobook player on black and restore the TV voice file

Codex review on #285: the audiobook player fed the Material background role
into its gradient, so the charcoal canvas leaked into a player surface that
iOS keeps black. Pass SiloBackground there. The TvVoiceSearch.kt deletion
belonged to #286 and was staged here by mistake; restored from main.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 6, 2026
* feat(tv): bring back the voice search button on Android TV search

TV users could only search by voice through a keyboard mic key, so anyone
whose TV keyboard lacks one had no voice search in Silo. The remote's own mic
button goes to the system assistant before any app sees it, so an on-screen
button is the only entry point an app can offer.

Restore the mic removed in #286, recogniser selection included, and place it
right of the field so the field stays on the page gutter. Right walks
field, mic, clear; the mic is hidden when no recogniser is installed. Silo
hands listening to the system recogniser and still needs no RECORD_AUDIO.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tv): don't restart a request search already running for a voice query

A spoken query is set and submitted at once, so the query-change effect
started while that request search was in flight and, past its 300 ms delay,
cancelled and restarted it. Treat a search loading for the same query and
media type as answered.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant