test(studio): proteger referencias Music con voces Speech guardadas - #283
Merged
Conversation
Añadir una voz en Speech deja audio_prompt_type (y Load Settings puede restaurar audio_guide) en el formulario compartido. El comando cerrado de música fallaba o usaba el clon TTS como referencia ACE. Neutralizar ese residuo antes del builder. Co-authored-by: ignaciodelcano+dcl <ignaciodelcano+dcl@gmail.com>
This was referenced Sep 9, 2026
IAnMove
marked this pull request as ready for review
September 9, 2026 21:30
Author
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_77fd9d09-9a30-4a10-86a6-7b231478986b) |
# Conflicts: # ui/tests/musicGenerationCommands.test.ts
IAnMove
changed the base branch from
feat/shared-tool-commands
to
development
September 9, 2026 21:43
PR Review — Loreframe StudioRisk: low Automated review from Findings
Changed files
CONTRIBUTING checklist
Posted by the repo PR review workflow. Re-runs on each push to the PR. |
25 tasks
Code healthQuality score: 58.6/100Higher is better. The score is a trend dashboard; the independent ratchet below remains the CI gate.
Change vs PR base: +0.0 points.
Markdown, JSON catalogs and tests are out of this table. Only Most complex functions
Trend vs baseline
Ratchet passed. |
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.
Resumen ejecutivo
Qué cambia
Protege la referencia elegida en Music cuando Speech conserva voces en su propio borrador. El PR se actualiza sobre development, donde #280 ya separa las referencias por pestaña. El diff final añade pruebas; el código de producto coincide con development.
Para qué sirve
La propuesta anterior infería el origen de una referencia a partir del contador de voces Speech. Con voces guardadas, podía borrar una referencia Music válida o convertir una selección incompleta en un envío sin referencia. Se elimina esa heurística y se comprueba la solución explícita ya integrada.
Impacto para el usuario
La referencia musical mantiene su archivo y workspace fuente, y aparece en la presentación previa al envío. Una selección incompleta sigue siendo un error visible. Las voces Speech quedan disponibles al regresar a esa pestaña.
Riesgo
Estado
Summary
Music references must not be classified by the hidden Speech voice count. This branch includes current development and removes the obsolete count-based sanitizer from the original proposal. The explicit tab reference ownership landed in #280; no production delta remains against development.
Overview
The added admission test keeps two Speech voices in memory and supplies Music's own canonical reference from another workspace. It verifies reference resolution, the visible one-reference ACK before POST, one correlated queued receipt, exact lyrics/caption and unchanged source parameters/voice state. A second regression keeps an incomplete Music selector invalid instead of converting it into unconditioned generation.
Detailed changes
Backend
No delta against development. Native command schemas and workers are unchanged.
UI and Wizard
The final diff adds two admission/presentation regressions and direct-builder rejection assertions. It uses the integrated audio tab isolation; no alternative form sanitizer is introduced.
Data, provenance and compatibility
The reference URL retains its original workspace. Literal lyrics and caption survive. The original params and saved Speech voices are unchanged. Direct MCP/Wizard commands still reject active TTS metadata and missing references.
Files and ownership
ui/tests/studioMusicCommandPresentation.test.tsx: valid-reference ACK/admission and incomplete-reference rejection.ui/tests/musicGenerationCommands.test.ts: closed-builder rejection controls.Validation
06f8ea246fde9487b97c1d4dd1199f898dda5c6e(development)a4756399e56ffdc8328825c72412a923ca428b44The full local check and browser used
46bc5e27; the final commita4756399only triggers CI after retargeting. Both have the same Git treeb94ace77d8e1d919dcddd8c9c86d76c5042fb6d4.Both new regressions fail with the original PR sanitizer after updating its base: it replaces the valid URL with null and the incomplete selector with an empty string. Both pass after removing that sanitizer. Original failure log retained locally.
git diff --check.CI and review
CI required.70ebf84fdoes not cover this HEAD.Notes and limitations
This PR protects the integrated reference behavior. Full text/duration drafts per Audio tab and restored upload labels remain separate work. The admission tests use a simulated API/receipt and a real DOM; they do not claim newly generated media.