Re-translate on Interpreter model change — artist-scoped + global (m146) #202
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refresh stored post translations after switching the Interpreter model — aimable at specific artists so already-English artists are left alone. Builds on m143 (post translation), which is already on main. No migration (reuses the m143 translation columns).
What it does
retranslate_posts(artist_ids, _reset_done)(tasks/translation.py): resets the 5 translation columns to NULL for a scoped set of posts (all, orWHERE artist_id IN ids), then reuses the untranslated sweep to re-run them, chasing the tail until drained (run-until-done, bounded ~300/chunk). The reset only happens after the service passes enabled + base-URL + health, so translations are never wiped when they can't be rebuilt. The Interpreter cache keys on engine_version → a changed model re-translates, an unchanged one is cache-fast.POST /settings/translation/retranslate—{artist_id}(one artist) or{all:true}(every artist; must be explicit so an empty body can't wipe everything).Deploy note
No migration — the translation columns already exist on main (from m143). Head =
1f6d94f, CI run 2041 green on dev.🤖 Generated with Claude Code
Post translation via Interpreter (m143) + re-translate on model change (m146)to Re-translate on Interpreter model change — artist-scoped + global (m146)