Repository navigation
YALTI Prompter 1.1.1: voice works again after idle, model loading indicator, light-theme contrast - #4
Merged
Conversation
The speech engine unloads itself three minutes after voice tracking stops, to free memory. VoiceInput kept its MessagePort to the old engine and still thought the engine was ready, and _connectEngine() returned early when a port existed. So pressing play after a pause of more than three minutes showed "Listening" while every chunk of audio went into a dead port: nothing was ever recognized, and the engine was never started again. Every start now drops the old port and asks for a new one, which also starts the engine again when it was unloaded; reconnect() closes the old port too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0126UMfoxDDotUBepqCxe8xs
Starting voice tracking after the model was unloaded (or for the first time) takes a few seconds, with only a short "Loading speech model…" hint to show for it. The worker now reads the model files once before creating the recognizer (warmModel() in engine.cjs) and reports real progress while doing so. On a cold start that read is most of the waiting, and it leaves the files cached for the recognizer's own blocking load. SpeechHost relays the progress in its status. For the last step, which can't be measured, it passes how long initializing took the previous time (remembered in state.json), so the indicator keeps moving and only reaches 100% when the engine is ready. The prompter shows a pill with a progress ring and percentage next to the microphone indicator (or in its place when that is turned off) and fades it out once the engine is ready. The loading hint is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0126UMfoxDDotUBepqCxe8xs
Everything drawn on the island surface was hard-coded white: on a light background such as the Paper theme the controls, progress text, play button, compact title, status dot, help overlay, resize grips, empty state, toast and drop overlay were close to invisible. core/contrast.js picks the ink (light or dark) with the better WCAG contrast against the island color, and the prompter sets body.light-surface accordingly; prompter.css now draws those elements with --ui-rgb / --ui-inverse-rgb and uses darker status colors (--ok, --warn, --bad) on light islands, all at least 4.5:1 against Paper and white. The floating dark chips (hint, jump back, loading) keep their own background. Dark islands look exactly as before. Also documents the loading indicator and adds the unreleased changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0126UMfoxDDotUBepqCxe8xs
Also adds CLAUDE.md: the maintainer wants every finished change released, and agent sessions can't push tags, so it lists the workflow-based release steps (and the limits of a cloud container). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0126UMfoxDDotUBepqCxe8xs
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.
What does this change?
Release 1.1.1: version bumped and changelog dated. Each change is its own commit.
VoiceInputkept its port to the old engine, still thought it was ready, and never asked for a new one.warmModel()in the worker.state.json), and the indicator only reaches 100% when the engine is ready.core/contrast.jspicks light or dark ink by WCAG contrast, and the prompter setsbody.light-surface.--ui-rgbinstead of hard-coded white, and the status colors get darker shades that reach at least 4.5:1 on Paper and white.CLAUDE.md: release every finished change, using the workflow-based steps (agent sessions can't push tags).How was it tested?
npm test: 44 pass, including the new contrast andwarmModeltests.document.test.jsandtracker.test.jsneedmarked, which the development container couldn't install, so CI runs them.npm run test:speech: runs in CI.npm run check-licenses: no dependency changes.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_0126UMfoxDDotUBepqCxe8xs
Generated by Claude Code