Skip to content

Cache subtitle quality analysis instead of running it on project open - #30

Merged
red-avtovo merged 3 commits into
mainfrom
cursor/cache-subtitle-quality-34d2
Aug 21, 2026
Merged

red-avtovo merged 3 commits into
mainfrom
cursor/cache-subtitle-quality-34d2

Conversation

@red-avtovo

@red-avtovo red-avtovo commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Hallucination / quality-rule analysis was running for every detected subtitle whenever the project page loaded GET /api/projects/{id}/videos. That made opening large projects slow.

What changed

  • Persist quality results in a new subtitle_quality SQLite table.
  • Analyze once during file scan (and backfill once for projects that were scanned before this change).
  • Re-analyze when a subtitle is regenerated or a cue is edited; drop cached rows when a dub reset deletes generated subs.
  • GET /videos only reads the cache — it does not parse SRT files or run heuristics.
  • Quality tooltips use a solid opaque background. Completed file-grid rows no longer apply opacity to the whole row, which had made the tooltip see-through.
  • FileGrid folder section headers are left-aligned (they previously inherited centered text from the page root).
  • Version bumped to 2.3.1.

Testing

Backend: 439 passed. Frontend: tsc, oxlint, 166 vitest tests passed. Version tests confirm /api/health reports 2.3.1.

Opaque quality tooltip:

quality_tooltip_opaque_on_replaced_row.mp4

Opaque quality tooltip on a replaced FileGrid row

Left-aligned folder section headers:

filegrid_folder_headers_left_aligned.mp4

FileGrid folder names left-aligned

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Storybook preview

Updated for commit d1f40b7.

cursoragent and others added 3 commits August 21, 2026 12:53
Hallucination/quality heuristics now run during scan, subtitle generation,
and cue edits, then persist in subtitle_quality. Listing videos reads the
cache only, so opening a project no longer re-parses every sidecar.

Quality tooltips use an opaque background and completed rows no longer
apply opacity to the whole row, which had made the tooltip see-through.

Co-authored-by: Aleksandr <red-avtovo@users.noreply.github.com>
Folder labels inherited centered text from #root; regular cells already
override that. Match them so section names sit on the left.

Co-authored-by: Aleksandr <red-avtovo@users.noreply.github.com>
Patch bump for cached subtitle quality analysis, opaque quality tooltips,
and left-aligned FileGrid folder headers.

Co-authored-by: Aleksandr <red-avtovo@users.noreply.github.com>
@red-avtovo
red-avtovo marked this pull request as ready for review August 21, 2026 13:32
@red-avtovo
red-avtovo merged commit e34ad82 into main Aug 21, 2026
7 checks passed
@red-avtovo
red-avtovo deleted the cursor/cache-subtitle-quality-34d2 branch August 21, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants