Skip to content

refactor: move Studio prepare, start, references and LoRAs to the slice - #51

Merged
IAnMove merged 1 commit into
refactor/paso3-workspaces-to-mainfrom
refactor/paso3-studio-generate
Sep 1, 2026
Merged

refactor: move Studio prepare, start, references and LoRAs to the slice#51
IAnMove merged 1 commit into
refactor/paso3-workspaces-to-mainfrom
refactor/paso3-studio-generate

Conversation

@IAnMove

@IAnMove IAnMove commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Qué

Apilado sobre #50 (workspaces en main). Codex: PR pequeño de Studio sin queue_sfx_pack.

  • prepare_video / prepare_image / prepare_audio / prepare_3d
  • start_generation
  • attach_studio_references / configure_studio_loras

van a features/studio (CommandResult) y context.adapters.studio.*.

Legacy 10→3 (queue_sfx_pack + 2 canciones alternativas). setState agent sigue 0.

Mezclar después de #50. Dueño del merge: humano.

Verificación

agentCapabilityPorts + agentActions + agentContract + storyComicProgress locales verdes. Reuse de start_generation conserva executionKey.


Note

Medium Risk
Refactors paths that mutate Studio state and enqueue GPU jobs; behavior is mostly relocated, but regressions in adapter presentation or execution reports could affect agent reuse and queue correlation.

Overview
Moves Wizard Studio form prep, queueing, references, and LoRAs out of agentActions into features/studio, with shared logic in actions.ts, typed commands in commands.ts, and thin entry points in adapters.ts. Outcomes are now CommandResult slices (summary/title/mode metadata) instead of ad‑hoc strings.

The legacy action runner and registered Studio capabilities both go through defaultApplicationAdapters.studio.* (prepareVideo/Image/Audio/3d, startGeneration, attachReferences, configureLoras), with presentStudioSliceResult navigating to Studio and mapping entities to studio_form / generation_task targets. studioCapabilities no longer lazy‑bridges to agentActions (except queue_sfx_pack); studioGuidance and audioActions.prepareAudio delegate to the studio slice.

agentActions drops ~260 lines of inline Studio UI mutation and removed *ForAgent bridges; agentCapabilityPorts legacy allowlist shrinks 10 → 3 (SFX pack + two videoclip song actions). start_generation still builds executionKey in the adapter for reuse.

Reviewed by Cursor Bugbot for commit 982d419. Configure here.

prepare_video, prepare_image, prepare_audio, prepare_3d, start_generation,
attach_studio_references and configure_studio_loras execute through
context.adapters.studio. queue_sfx_pack stays legacy for a follow-up PR.
Legacy executors drop from 10 to 3.
@IAnMove

IAnMove commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 982d419. Configure here.

@IAnMove
IAnMove merged commit 290d7cf into refactor/paso3-workspaces-to-main Sep 1, 2026
1 check passed
@IAnMove
IAnMove deleted the refactor/paso3-studio-generate branch September 5, 2026 11:54
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