Skip to content

Studio: show progress during audio generation - #10081

Merged
Imagineer99 merged 3 commits into
unslothai:mainfrom
Etherll:codex/inline-audio-progress-17329e3c7910
Aug 31, 2026
Merged

Imagineer99 merged 3 commits into
unslothai:mainfrom
Etherll:codex/inline-audio-progress-17329e3c7910

Conversation

@Etherll

@Etherll Etherll commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds an accessible indeterminate progress bar to the Studio Audio page while speech or music generation is active. The status moves through preparing, generating, stopping, and finishing without inventing a percentage or ETA.

Motivation

Audio generation can take long enough that the page appears stuck. The existing button changes to Stop only after a request begins, but there was no explicit task indicator or announced phase.

Changes

  • Reuse the shared Progress component in the Speak footer and give it a stable accessible name.
  • Keep the existing busy state as the task owner while projecting truthful presentation phases around request preparation, generation, cancellation, and gallery reconciliation.
  • Enable Stop only while the request-local AbortController can still cancel the generation.
  • Add policy and source-contract coverage for phase transitions, early exits, cancellation, error recovery, and existing queued-download behavior.

How to test

cd studio/frontend
node --experimental-strip-types --test tests/audio-page-policy.test.ts tests/audio-generation-stop.test.ts tests/audio-tts-download-manager.test.ts
npm run typecheck
npm test
npm run build

The focused Audio set passes 69 tests. The full frontend suite passes 6,090 tests, and the production build succeeds.

Screenshots

Notes for reviewers

The Audio generation endpoint returns a completed response rather than numeric progress events. The bar is intentionally indeterminate, and Stop stays disabled during preparation, cancellation settlement, and final gallery reconciliation.

A focused Biome comparison reports no new diagnostics: the target has 11 inherited errors across the five touched files versus 13 on the exact base.

Related

Refs #8794

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-31T15:29:26.795318Z ccd7679 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Etherll

Etherll commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator Author

Audio generation lifecycle validation

Exact head: ccd7679

The change adds status feedback and an indeterminate progress bar during preparation, generation, stopping, and finishing. Stop remains available.

Exact-SHA UI A/B against merge base 1400031 used one identical held-open supported-TTS request per side:

Check Before After
progressbar_count 0 1
Status empty Generating audio…
Stop visible visible
Stop action request aborted request aborted

Audio lifecycle before and after

Validation completed:

  • Focused Audio lifecycle tests: 70/70
  • Full frontend tests: 6091/6091
  • Typecheck passed
  • Production build passed
  • Review Team V2: zero findings
  • Exact-head security scan: no_static_findings
  • Codex review completed at the exact head with no inline findings

CI note: Two Backend CI jobs are red on tests unrelated to this five-file Audio frontend diff. Current main c47645f reproduces the same failures. Pending checks may remain, so this does not claim the PR is ready or CI green.

@Imagineer99

Imagineer99 commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Reviewed and tested this at ccd7679d against merge base 1400031e.

Close-up

Close-up BEFORE/AFTER audio generation progress

Full-page context

Full-page BEFORE/AFTER audio generation progress

This fixes a real UX gap: before the change, a long-running generation showed only Stop and could look stuck. Afterward, Studio shows a truthful live phase and an indeterminate progressbar without inventing a percentage or ETA.

  • All 70 focused Audio tests and the full 6,091-test frontend suite passed on both Windows and WSL2/Linux.
  • Typecheck and production builds passed in both environments.
  • Browser A/B passed in Chromium, Chrome, Edge, Firefox, and Playwright WebKit, covering success, keyboard cancellation, and delayed gallery reconciliation.
  • The finishing state disables Stop until reconciliation completes, then returns cleanly to Generate.

The diff stays within frontend presentation and request-phase state; it does not change the Audio API, inference backend, persistence, dependencies, installers, or hardware paths. I did not find a PR-specific regression.

@Imagineer99

Imagineer99 commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Quick CI update. Everything related to this Audio UI change is passing including the frontend tests and build, lint, cross platform Studio checks and the pinned base vs head validation.

The remaining failures are also present on main. They are the same backend installer tests and the same Core jobs timing out after 35 minutes. This PR only changes five frontend Audio files so it did not introduce them.

@Imagineer99
Imagineer99 merged commit 5bc670e into unslothai:main Aug 31, 2026
32 of 37 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.

2 participants