Repository navigation
fix: VideoTranscript v3.1.0 — Full-Repo 100% Audit & Cross-Platform Hardening - #4
Merged
Merged
Conversation
Resolves all confirmed High/Medium bugs discovered in a 100% source-file sweep across Android, Web, Browser Extension (Chromium + Firefox), Shared Core, Self-Hosted FastAPI Backend, Docker, and GitHub Actions CI: Android (App, Core, Engines): - Security/Storage: Block path traversal in DurableTranscriptStore & symlink Zip-Slip in ZipExtractor; switch Room upsert to @upsert + recursive_triggers to prevent FTS4 corruption; clear cross-ref tables on clearAll(); chunk SQLite IN (:taskIds) queries <=500; add DataStore corruptionHandler. - Coordinator/Sync: Reconcile Bilibili av->BV canonical videoKey & post-save comment badge sync; preserve existing transcripts on comment-only imports. - Lifecycle/Concurrency: Guard onCreate handleIntent with savedInstanceState; compute cold-launch auto-forward after DataStore read; persist OpenRouter PKCE verifier in Keystore + singleTask launchMode; non-blocking Snackbar collector with taskId-keyed Mutex undo snapshots; Job-scoped loading state & ref-counted LRU protection; cancellable OkHttp LLM calls; fix aliased model cacheKey. - UI/Engines: Fix swipe-delete undo stuck-red card, assign-on-new-collection, availableTracks chip union, safe case-insensitive highlight, LazyColumn dup comment keys, WebView/Bitmap leak cleanup, Bilibili HTTP 412 direct fallback, invalid cookie crash guard, WBI encoded query match, YouTube native ASR track classification, SRV3 XML/VTT/SRT parser & LinkResolver edge cases. Web, Extension & Shared-Core: - Firefox MV3 Promise wrappers replacing Chrome-only callbacks; Side Panel tab onActivated/onUpdated tracking; unified URL detector (YouTube Shorts/Live, Bilibili av/WatchLater); independent YouTube backend fallback; Bilibili API error/empty guards; cross-platform videoKey deduplication on JSON import; Web settings keystroke poll isolation, chained timeout polling, preserved analysis on re-extract, keyless local LLM support, HTTP LAN clipboard fallback, curateComments reply length filter, and LLM /v4+/compatible-mode URL routing. Backend, Docker & CI: - Fix Bilibili top:null comment drop, WBI nav null-safety, ?p=abc ValueError, empty/403 subtitle guard, bounded cancellable YouTube fallback loop, POSIX process-group reaping on yt-dlp timeout/cancel, cached yt-dlp version, safe same-origin CORS default, .dockerignore, exec uvicorn SIGTERM, and GHCR docker/metadata-action semver/lowercase tagging. - Sync all 4 targets to v3.1.0 and add cross-platform invariant regression tests.
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.
Summary
Full-repository 100% source-file consolidation audit and hardening across all 4 targets (Android, Web, Chromium/Firefox Extension, Self-Hosted Backend + Docker + CI), bumping all artifacts to
v3.1.0.Highlights
DurableTranscriptStore& symlink Zip-Slip inZipExtractor; migrated Roomupsertto@Upsert+PRAGMA recursive_triggers = ON(preventing FTS4 corruption); chunked SQLiteINqueries (≤500); added DataStoreReplaceFileCorruptionHandler; reconciled Bilibiliav→BVvideoKeyand concurrent comment-badge race; persisted OpenRouter PKCE verifier in Keystore; made OkHttp LLM calls cancellable; fixed aliased model cache keys (openrouter/free); fixed non-blocking Snackbar +taskId-keyed Undo snapshots; fixed cold-launch Share & rotation re-trigger.availableTracksswitcher, Unicode-safe search highlight, raw commentLazyColumnduplicate keys, WebView/Bitmap leaks, Bilibili HTTP 412 direct fallback, invalid manual cookie crash, WBI+/%2Bencoding, YouTube native ASR classification whenlanguageis null, SRV3 XML<pen>/self-closing tag parsing, andLinkResolverchannel-URL prefix / offlineb23.tv/BV.../ trailing!handling.tabs.onActivated/onUpdatedauto-refresh; unified URL detection for YouTube/shorts/,/live/, Bilibiliav, and/list/watchlater; decoupled YouTube backend fallback fromyoutubeApiKey; deduplicated cross-platform JSON imports byvideoKey; prevented Web Settings typing from cancelling active extraction polling; preservedanalysison re-extraction; enabled keyless local LLM endpoints; added LAN HTTP clipboard fallback; fixedcurateCommentsshort-reply filter andresolveChatUrl(/v4,/compatible-mode)."top": nullcomment loss, WBInavnull-safety, malformed?p=, empty/403 subtitle guard, bounded cancellable YouTube fallback loop, POSIX process-group reaping onyt-dlptimeout/cancel, cachedyt-dlp --version, same-origin default CORS,.dockerignore,exec uvicornSIGTERM, and GHCRdocker/metadata-action@v5.Local Verification
pytest -v backend/tests/test_backend.py— 4/4 passednpm test— 6/6 passednpm run typecheck && npm run build— 0 errorstsc --noEmit && npm run build— Chromium + Firefox ZIPs built cleanly./gradlew :core:model:test :core:link:test :core:transcript:test :engine:bilibili:test :engine:youtube:testDebugUnitTest :app:testDebugUnitTest :app:assembleDebug—BUILD SUCCESSFUL