Manual translations now run in the background. POST /api/media-files/{id}/subtitles/translate validates as before, then answers 202 with the run and translates as its own task. A second request for a language already running is a 409.
Subtitle status (movie, episode, series) gains translations: runs that are running, or failed with a detail. A finished run drops off once its sidecar shows up on subtitles. The panel reads that, so a run started before leaving the page still shows when you come back, and it re-reads every 5 s until the run settles.
State is in memory only (§8). A restart mid-run loses it and writes nothing.
Why
A Coyote vs. Acme translation through the local qwen-14b took 7.5 minutes. The old handler was dropped when the page closed, so the work was lost with nothing reported.
Verification
just ci passes: 828 tests, biome, tsc. New tests cover a failure reported on status with nothing written, and a running translation that answers at once and refuses a second request. I have not checked the panel in a browser.
<!-- claude-projects-attribution: {"github_login":"naps62"} -->
_Requested by **naps**_
Manual translations now run in the background. `POST /api/media-files/{id}/subtitles/translate` validates as before, then answers `202` with the run and translates as its own task. A second request for a language already running is a `409`.
Subtitle status (movie, episode, series) gains `translations`: runs that are `running`, or `failed` with a `detail`. A finished run drops off once its sidecar shows up on `subtitles`. The panel reads that, so a run started before leaving the page still shows when you come back, and it re-reads every 5 s until the run settles.
State is in memory only (§8). A restart mid-run loses it and writes nothing.
<details><summary>Why</summary>
A Coyote vs. Acme translation through the local qwen-14b took 7.5 minutes. The old handler was dropped when the page closed, so the work was lost with nothing reported.
</details>
<details><summary>Verification</summary>
`just ci` passes: 828 tests, biome, tsc. New tests cover a failure reported on status with nothing written, and a running translation that answers at once and refuses a second request. I have not checked the panel in a browser.
</details>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The translate endpoint now checks the request, answers 202 with the
run, and translates as its own task. A slow local model takes minutes,
and the old handler was dropped as soon as the page closed, losing the
work. The run reports on the file's subtitle status until it lands or
fails, and the panel polls that instead of holding the request open.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Requested by naps
Manual translations now run in the background.
POST /api/media-files/{id}/subtitles/translatevalidates as before, then answers202with the run and translates as its own task. A second request for a language already running is a409.Subtitle status (movie, episode, series) gains
translations: runs that arerunning, orfailedwith adetail. A finished run drops off once its sidecar shows up onsubtitles. The panel reads that, so a run started before leaving the page still shows when you come back, and it re-reads every 5 s until the run settles.State is in memory only (§8). A restart mid-run loses it and writes nothing.
Why
A Coyote vs. Acme translation through the local qwen-14b took 7.5 minutes. The old handler was dropped when the page closed, so the work was lost with nothing reported.
Verification
just cipasses: 828 tests, biome, tsc. New tests cover a failure reported on status with nothing written, and a running translation that answers at once and refuses a second request. I have not checked the panel in a browser.🤖 Generated with Claude Code