Skip to content

fix: VideoTranscript v3.1.0 — Full-Repo 100% Audit & Cross-Platform Hardening - #4

Merged
roclee2692 merged 1 commit into
mainfrom
fix/v3.1.0-full-hardening
Dec 4, 2026
Merged

roclee2692 merged 1 commit into
mainfrom
fix/v3.1.0-full-hardening

Conversation

@roclee2692

Copy link
Copy Markdown
Owner

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

  • Android Storage, Security & Concurrency: Blocked path traversal in DurableTranscriptStore & symlink Zip-Slip in ZipExtractor; migrated Room upsert to @Upsert + PRAGMA recursive_triggers = ON (preventing FTS4 corruption); chunked SQLite IN queries (≤500); added DataStore ReplaceFileCorruptionHandler; reconciled Bilibili av→BV videoKey and 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.
  • Android UI & Engines: Fixed Library swipe-delete Undo stuck-red state, "新建并移入" group creation, non-downloaded availableTracks switcher, Unicode-safe search highlight, raw comment LazyColumn duplicate keys, WebView/Bitmap leaks, Bilibili HTTP 412 direct fallback, invalid manual cookie crash, WBI +/%2B encoding, YouTube native ASR classification when language is null, SRV3 XML <pen>/self-closing tag parsing, and LinkResolver channel-URL prefix / offline b23.tv/BV... / trailing ! handling.
  • Web, Browser Extension & Shared-Core: Replaced Chrome-only callbacks with Promise wrappers for full Firefox MV3 compatibility; added Side Panel tabs.onActivated/onUpdated auto-refresh; unified URL detection for YouTube /shorts/, /live/, Bilibili av, and /list/watchlater; decoupled YouTube backend fallback from youtubeApiKey; deduplicated cross-platform JSON imports by videoKey; prevented Web Settings typing from cancelling active extraction polling; preserved analysis on re-extraction; enabled keyless local LLM endpoints; added LAN HTTP clipboard fallback; fixed curateComments short-reply filter and resolveChatUrl (/v4, /compatible-mode).
  • Backend, Docker & CI: Fixed Bilibili "top": null comment loss, WBI nav null-safety, malformed ?p=, empty/403 subtitle guard, bounded cancellable YouTube fallback loop, POSIX process-group reaping on yt-dlp timeout/cancel, cached yt-dlp --version, same-origin default CORS, .dockerignore, exec uvicorn SIGTERM, and GHCR docker/metadata-action@v5.

Local Verification

  • Backend: pytest -v backend/tests/test_backend.py — 4/4 passed
  • Shared Core: npm test — 6/6 passed
  • Web: npm run typecheck && npm run build — 0 errors
  • Browser Extension: tsc --noEmit && npm run build — Chromium + Firefox ZIPs built cleanly
  • Android (all 6 modules): ./gradlew :core:model:test :core:link:test :core:transcript:test :engine:bilibili:test :engine:youtube:testDebugUnitTest :app:testDebugUnitTest :app:assembleDebug — BUILD SUCCESSFUL

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.
@roclee2692
roclee2692 merged commit 11fc66e into main Dec 4, 2026
4 checks passed
@roclee2692
roclee2692 deleted the fix/v3.1.0-full-hardening branch December 4, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Assignees

Couldn't load assignees.