Skip to content

Protect stage-2 audio exports from missing selections and file collisions - #245

Merged
LauraGPT merged 1 commit into
mainfrom
codex/audio-clip-output
Dec 2, 2026
Merged

LauraGPT merged 1 commit into
mainfrom
codex/audio-clip-output

Conversation

@LauraGPT

@LauraGPT LauraGPT commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

On current main, selecting text absent from the saved transcript writes the entire input WAV and an empty SRT with exit 0. A source named result.wav in the state directory can also be overwritten by its own clip.

  • Export WAV/SRT only for a nonempty selection, with fresh names for both files, including defaults. Validate the extension before writing and roll back reservations on failure.
  • Preserve interactive no-match preview and existing video naming/overwrite policy. No changes to recognition, matching or subtitle timeline calculations (the latter are separate in fix: keep subtitle timing continuous across concatenated audio clips #217).
  • Document saved-state use in English and Chinese. Exercise the real stage-2 CLI in CI and from both source archive formats.

Verification: The old CLI failed six new regressions; the positive control passed. The no-match result contained all 32,000 original PCM samples. On the candidate the full Shanghai offline suite passed (126 passed, one optional live test skipped), including exact selected PCM, SRT text and timing. Synthetic WAV and saved state only; no model or external service. Prepared with Codex assistance.

…ions

Do not export the original recording or an empty result when stage 2 selects no samples. Reserve the WAV and SRT destinations together, including default paths, and keep the UI preview fallback unchanged.

Signed-off-by: zhifu gao <zhifu.gzf@alibaba-inc.com>
@LauraGPT
LauraGPT merged commit 7652e60 into main Dec 2, 2026
2 checks passed
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.

1 participant