Repository navigation
chore(integration): record live-mode, settings, and eviction verification - #20
Merged
Merged
Conversation
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.
Task T4.1 from
docs/ARCHITECTURE.md§14.2 — Live wiring + eviction + settings persistence. Deps P2, P3 are merged (#14–#19).Verification
Live browser flow — 36/36 checks, run twice (temporary Playwright script, deleted after the run):
ttsfromfrontend/dist(TTS_DATA_DIR=.venv\tts-data), andnpx vite --port 5173,/api→ 8321), per §14.5 integration point 3.Covered: no mock badge,
en_US-lessac-mediumlisted/selected, preview WAV 200, SSEQueued → Generating 0/3 … 3/3 → Audio ready.(R6 proxy buffering not observed), blob audio 4.1 s with 12 words / 3 cues, playback advance with single-word highlight following, cue-click and ±5 s seek, WAV/SRT/VTT downloads namedhello-world-this-is-a-live_<UTC>.{wav,srt,vtt}with RIFF / SRT / WEBVTT content, history list → restore → delete → empty state, rate+volume persisted on blur and survived a reload, no console/page errors.Eviction — 9/9 checks: 25 sequential live generations at the default limit 20 (6.8 s) →
GET /api/generations?limit=100reportstotal=20, five oldest ids answer 404, newest answers 200,generations/holds exactly 20.wavand no.partfiles.Settings:
PUT /api/settingson blur persisted rate 1.5 / volume 0.85 andGETafter reload returned them (server-sideapp_settings, so it survives a restart). Closes T3.1's "live persistence unverified" note.Suites: 93 Vitest, ESLint,
tsc --noEmit, Prettier (CRLF vianpx prettier --check . --end-of-line=crlf), livevite build; 196 pytest unit + 16 pytest integration (realen_US-lessac-medium) run before the change, unchanged by it;git diff --checkclean.Decisions
VITE_API_MODEalready defaults tolive(api/index.ts; nothing sets it),putSettingson control blur shipped in T3.1, and eviction already bounds rows atTTS_HISTORY_LIMITand removes the WAV (T1.5/T1.6). The task's deliverable is therefore the verification record;frontend/src/api/index.ts,frontend/src/state/appContext.tsx, andsrc/tts/history/dal.pyare untouched because no gap was found.tts.subtitles.cuesand DAL eviction are binding, andmock.tsis not a T4.1-owned file.aligned=falseentries, so the highlight is empty while they are spoken (fixture produced 2 unaligned words). This is the FR-05 honest-degradation path and belongs inKNOWN_LIMITATIONS.md, not a bug list.Full notes, including the Windows Vite/Prettier invocation details, are in
docs/TASKS.md→ Notes → T4.1. Tracker status is Doing until this PR is merged.