fix(wizard): no cancelar ni generar ante preguntas de stop o de etiqueta - #282
Draft
cursor[bot] wants to merge 1 commit into
Draft
fix(wizard): no cancelar ni generar ante preguntas de stop o de etiqueta#282cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
Las preguntas "How do I stop video generation if it fails?" y "What does the generate video button do?" caían en cancel/explicit generation y mataban el job activo o encolaban GPU. Tratar how/when/what y etiquetas de UI como how-to, y rechazar cancel cuando lo son. Co-authored-by: ignaciodelcano+dcl <ignaciodelcano+dcl@gmail.com>
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. |
Code healthQuality score: 57.1/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
Warnings
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
El Wizard ya no trata como orden una pregunta educativa sobre cancelar/parar ni una pregunta sobre la etiqueta «generate video». Esas frases vuelven a ser how-to: no cancelan el job activo y no encolan GPU.
Para qué sirve
Tras #279, «How do I launch the video?» ya no genera, pero «How do I stop video generation if it fails?» seguía emitiendo
cancel_task, y «What does the generate video button do?» seguía emitiendoprepare_video+start_generationsi había prompt en Studio.Impacto para el usuario
Riesgo
Estado
Summary
isHowToGenerateQuestiononly covered generate/create/launch/start/make. Englishstop/canceland Spanishcancelarstill matched inside questions, andreconcileAgentTurnWithRequestforcedcancel_taskwithconfirm: true, whichexecuteAgentActionssends to the canonical queue.UI-label questions («What does the generate video button do?», «¿Qué hace el botón genera el video?») still matched
EXPLICIT_VIDEO_REQUESTS/isResumePreparedStudioVideoRequestbecause they containgenerate/genera+video.This PR extends the how-to window with stop/cancel questions and UI-label generate questions, and
isExplicitCancelRequestnow rejects how-to text. Imperative cancel and generate commands are unchanged.Overview
Wizard text classification only. No backend, receipts, persistence, or Studio form changes.
cancel_task.start_generation.Detailed changes
Backend
Unchanged.
UI and Wizard
agentActions.ts: how-to patterns for stop/cancel questions and generate-button labels;isExplicitCancelRequestreturns false when how-to matches.agentActions.test.mjs: locks both directions (question vs command).Data, provenance and compatibility
No storage, receipt or workspace-name contract change.
Files and ownership
ui/src/features/agent/agentActions.ts— classifiersui/tests/agentActions.test.mjs— regression testsIntentionally untouched: workflow persist, DramaBox duration, image commands, MCP, launchers.
Validation
Date (UTC): 2026-09-09
Base SHA: d88c85d
Head SHA: bf94304
Validation scope: focused
python3 scripts/verify_clean_repo.py— PASSpython -m compileall— N/A (no Python files in this PR)Focused Python tests: N/A
cd ui && npm run i18n:check— not required; no copy catalog changeUI tests:
npx tsx --tsconfig tsconfig.app.json --import ./tests/setupI18n.ts --test tests/agentActions.test.mjs— 73 pass / 0 faileslint on changed files
--max-warnings=0— PASScd ui && npm run build— pending CIgit diff --check— PASSE2E/smoke checks: N/A (classifier unit coverage; no real generation)
Code quality
main: pending CICI and review
CI of this HEAD: pending
Independent agent review of this HEAD: pending
Human merge click (operational, not code review): pending
Reviewed at current HEAD
Earlier review; HEAD has changed since (stale)
Pending
Unavailable
Coste de la tarea
Notes and limitations
localStoragepending image command can hide every other pending recovery row.Follow-up work
pendingImageGenerationCommandsso one bad key cannot hide the rest.Checklist