fix(studio): boost quiet clips and persist agent previews - #3280
Open
miguel-heygen wants to merge 16 commits into
Open
fix(studio): boost quiet clips and persist agent previews#3280miguel-heygen wants to merge 16 commits into
miguel-heygen wants to merge 16 commits into
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes both issue families reported in the six screenshots:
0 dB/ linear gain1at its midpoint, and supports up to+12 dBconsistently in browser preview and FFmpeg render.npx hyperframes previewnow starts or reuses a managed persistent preview; human TTY sessions keep the familiar foreground/Ctrl+C behavior.Managed previews expose exact Studio deep links and structured start/status/list/stop/kill-all state.
--backgroundand--foregroundremain explicit overrides.Why
The audio control previously treated unity as the maximum, so an agent could attenuate a loud clip but could not boost a quiet one. Matching control values, peaks, or cached metadata also do not prove equal perceived loudness.
The localhost timeout was not caused by browser refresh or by the shared project. Reproduction through the real
npx hyperframes previewpath showed that the foreground listener could disappear when the agent/tool-owned launcher session ended; the already-open page then failed on its next request. The same exact user-shared project survived repeated hard reloads while its listener remained alive.Agents need a lifecycle that survives launcher exit, is safely discoverable and reusable, and cannot kill an unrelated process from a stale PID record.
How
+12 dBceiling across Studio, Web Audio, runtime media, the engine mixer, and FFmpeg render.−∞ / −60 dB … 0 dB … +12 dBfader with unity at the center.HTMLMediaElement.volumeclamped while applying above-unity gain through Web Audio.--foregroundfor an explicitly attached process and retained--backgroundas an explicit managed override.--foreground --jsonemits readiness once and then remains attached.--force-newrecords its successor, including custom-port and GPU-policy changes, so the prior listener cannot become orphaned.taskkill /T /F). A saved wrapper is terminated only when both its persisted process-birth identity and the live server's ancestry prove ownership; otherwise stop targets only the live server PID.Compatibility is preserved: existing
data-volume="1"clips remain at unity, and interactive human preview remains foreground by default.Test plan
npx hyperframes previewpath when its foreground owner disappeared.--foreground --json: emitted one readiness document, stayed attached, served HTTP 200, and cleaned up on interruption. Occupied-port fallback also emitted only that JSON document.banana,0,70000) fail before detach with one validation document and no process/listener/session leak; lifecycle actions combined with--force-newfail without performing the action.--force-newpreview on another: the old process/port closed and exactly one replacement record/listener remained.#,?, and%produce the correct encoded Studio route.hyperframes-clipreview reference cover managed agent defaults, foreground human behavior, JSON contracts, exact deep links, reuse, status, logs, and cleanup.