Model Availability UX Overhaul — StateBadge, ModelCard, unified download UI#1067
Draft
lokhor wants to merge 18 commits into
Draft
Model Availability UX Overhaul — StateBadge, ModelCard, unified download UI#1067lokhor wants to merge 18 commits into
lokhor wants to merge 18 commits into
Conversation
…dModelStatus, truth-table tests
…oadSource, deprecation filter
…ModelCardCompact + Manage link
Debug APK readyCommit: Updated on each push. Removed when PR is merged or closed. |
- Replace 3-frame debounce open with fast-open/slow-close semantics: a single above-threshold frame immediately resets silence counter (opens gate in 80ms instead of 240ms) - Keep 3-frame debounce for closing: only after 3 consecutive silent frames does the silence timer begin accumulating - Lower silenceRmsThreshold 600→300 to catch quieter speech - Reduce maxSilenceSkipSeconds 3.0→1.0 for more frequent periodic checks during gating - Update alive logging, WakeWordSilenceGateTest Oracle review confirmed: VAD gate was the root cause of inconsistent wake word detection — the model confidence is binary (~0.0009 or ~0.9) and failures occur when the gate starves the classifier of onset context.
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.
Closes #1043, #1029, #1030, #1035, #1038, #1041
What
New
:core:model-availabilitymodule providing a canonical 4-state model availability system (Ready / Preparing / ActionRequired / Unavailable) withStateBadge+ModelCard/ModelCardCompactcomposables, integrated across Settings, Chat, and Voice screens.Changes (17 commits)
Core module
:core:model-availability—ModelAvailabilityStatesealed class,DownloadStateMapperwith truth-table tests,GatedModelStatusDataStore repository (scaffold),AvailabilitySummary,ModelAvailabilityStrings:core:inference—KernelModel.isDeprecatedfield,DownloadSourceenum,cancelDownloadisRequiredguard, SentencePiece co-queue in init:core:ui— extractedCollapsibleSectionHeaderfrom MemoryScreenComposable library
StateBadge— small pill showing availability state with colorModelCard— full card with action button, lock icon, progress barModelCardCompact— slim inline variant for onboarding/voiceScreen integration
ModelCardwith state badgesModelCard→ModelSettingsCard; addedStateBadgein card headersModelProgressRow→ModelCardCompactModelCardCompact+ Manage linksDocs
docs/agents/model-availability-ux-patterns.md.omp/AGENTS.mdPre-merge gates
Test results
:core:model-availability:test— pass:core:inference:test— pass:feature:settings:compileDebugKotlin— pass:feature:chat:compileDebugKotlin— pass:feature:chat:test— 1 pre-existingLatexConversionTestfailure (unrelated)