* Fix cloud media save retry after CAS write failure
* Address review feedback on retry_save state transition, cancellation, requestId, and docs
- Transition retry_save rows atomically from failed to queued (stage=saving) before enqueuing so cancel before worker pickup marks the row cancelled and prevents worker claim.
- Require and propagate caller requestId for BullMQ jobId deduplication (clearing stale terminal BullMQ entries on explicit re-retry).
- Finalize cancelling rows cleanly to cancelled when CAS throws after a missed Redis cancel notification instead of stranding in cancelling or publishing a false failed event.
- Update skills/openmotion-media/references/jobs.md to document Cloud gateway recovery for retry_save.
* Harden cancel/retry_save concurrency, claim-epoch dedupe, and gateway docs
- Guard cancelJob transitions with optimistic state checks and check cancelled state in the worker commit transaction.
- Scope retry_save BullMQ jobId by claimToken epoch and record retrySaveRequestId so same-requestId retries recover cleanly after API restarts and Studio repeated retries never collide with a still-finishing BullMQ active job.
- Guard upstream failed poll transitions against overwriting cancelling rows.
- Update docs/model-gateway.md retry_save Cloud recovery guidance.
* Guard retry_save enqueue-failure rollback against racing replays
* fix(cloud): guard retry_save rollback by state/stage and clear failureStage on resume/completion
* fix(cloud): return 400 for retry_save missing requestId and align timeout hint
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* feat(studio): unify image creation with fixed OpenDesign models and image features
- Image menu and creation page list a fixed model set (OpenDesign models first,
Codex Image last), with provider then model pickers.
- Open background removal, relight and character consistency as image scenes,
following the measured OpenDesign image model capabilities: per-model
reference limits, GPT Image 2.6 quality and transparent background, Seedream
sizes, and a 2 MiB reference limit.
- The OpenDesign account submits image jobs the connector cannot express
(transparent background, several references) to the same media API with its
control key, so signed-in users get the same features as an API key.
- Transparent results preview on a checkerboard; remove the creation page back
arrow; add missing translations.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
* fix(studio): address PR #734 review feedback on library BYOK preservation, featureMode scope, MCP handbook, and architecture docs
---------
Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Reverts dc01084107 (#552).
Withdraw Fish Audio, MiniMax Speech, and the saved-voice UI and MCP action. Preserve the existing MCP tools, provider configuration, audio-version editing, and streamed response limits. Existing audio files and saved voice records remain on disk.
* Support OpenDesign Cloud edits, image-to-video and speech timestamps
The Cloud adapter only sent text requests, so edit-capable image models,
first-frame video and returned speech timings were unreachable through the
MCP Tools even though the Cloud API supports them.
- Discovery marks edit-capable image models with supportsImageReference
and maxInputImages, video models with maxInputImages, and returns the
provider's native options as nativeOptions.
- Queued references are uploaded (create, credential-free PUT, commit) and
sent to /images/edits, or as one first_frame on /videos/tasks; the
per-model maximum replaces the fixed one-reference rule.
- Speech result metadata (alignment, word timings) is kept as job.result
and returned by status.
- Video jobs get a 30-minute local timeout; Wan can exceed 15 minutes.
- Read-only polling and media downloads retry transient failures, so a
dropped connection no longer discards a paid, finished task.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Address review: keep key verification, per-model reference caps and agent guidance accurate
- A storage rejection of the presigned reference upload no longer marks
the Cloud API key rejected.
- References are limited by the selected model (up to 16), not a fixed
eight, in both the library validation and the Tool schema.
- Video discovery exposes one input image, matching the implemented
first-frame role; the provider maximum stays in nativeOptions.
- Download failures keep their HTTP status, and retries cover only
network errors, timeouts, 429 and 5xx.
- MCP initialization, the connection guide and the Tool/architecture docs
describe per-model image references and first-frame video.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Clamp video references to one first frame and keep referenceAsset image-only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Resume original Cloud media tasks and align reference consumers
Add explicit guarded recovery without upload or paid resubmission, preserve redacted result metadata, save every output, and apply model reference limits consistently across MCP and Studio.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep cancelled and Cloud-terminal jobs out of resume
- A save-only retry that finds no retained output now leaves a cancelled
job cancelled instead of turning it into a resumable failure.
- Jobs recorded by the earlier adapter carry a confirmed Cloud failure or
cancellation only in their error text; treat that as remote-terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Persist legacy Cloud-terminal provenance before save-only retry rewrites the error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Track the resume asset action and reuse the shared reconnecting label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* refactor: centralize provider registration and configuration
* fix: hide text-only providers in settings
* test: keep the OpenAI provider fixture visible in navigation coverage
The provider list now hides text-only entries. The navigation regression
fixture overrode the OpenAI preset with text-only kinds and no media models,
so the provider disappeared from the list and the click target no longer
existed. Mirror the registry preset (text, image and audio kinds) so the
history restoration coverage still exercises a visible provider.
Generated-By: looper 0.16.2 (runner=fixer, agent=pi)
* fix(providers): expose only public connection fields
* test: handle macOS process reaping in cancellation coverage
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* Save generated media to workspace assets with local save recovery
* Fix POSIX cancellation test state and fixture publication races
* Align unified asset schema checks and recovery documentation
* End unrecoverable save retries as terminal task failures
When the retained outputs manifest is missing, unreadable or no longer
references staged bytes, retry_save previously threw without persisting
anything, so a failed job kept savePending and offered a retry that could
never succeed.
- Validate the retained manifest and its staged bytes before queueing a
save retry.
- Record a terminal failure and clear savePending when nothing is left to
save.
- Apply the same check when a claimed recovery worker starts, so a
vanished manifest cannot recreate the stuck state.
- Assert the cleared state alongside the rejection, and document the
terminal outcome.
Generated-By: looper 0.16.2 (runner=fixer, agent=pi)
* Stop offering save retries for unavailable retained outputs
* Use decodable account music fixtures for automatic asset saving
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
* feat: add a shared asset workspace with generation and version history
Unify direct model jobs and embedded Codex conversations around shared asset operations exposed through MCP. Add reusable media uploads, pinned references, version browsing, trash undo, and verified project imports.
Refine compact creation controls, persistent task history, solid menus, and stable resizable preview layouts. Integrate asset navigation with main's history and deep links, and align onboarding, tracking, documentation, and distribution.
* test: exercise openmotion_assets in the packaged phase-one e2e
The phase-one profile now exposes openmotion_assets, but the packaged
distribution smoke test still asserted that every public Tool was called
without ever invoking it, so the Distribution regression lane failed.
Import a real audio file into the library, read it back by asset and
version, list it by modality, and import the pinned version into the
project so the new Tool is covered end to end.
Generated-By: looper 0.16.2 (runner=fixer, agent=pi)
* fix: preserve asset request receipts and pending draft edits
Exercise asset library replay in the packaged MCP smoke test and align compact control documentation with verified shared geometry.
* Unify Studio navigation, provider settings, and local Agent workflows
* Serve the public provider notice from the editor file handler
The provider icon set added by this branch publishes
packages/design-system/providers/NOTICE.md through publicDesignFiles, but
serveEditorFile rejected .md because its MIME table only knew application
assets. The distribution regression test requests every public design file
and got 404 for the notice, so the attribution file was unreachable in the
editor package.
Map .md like the existing application server does (text/plain, UTF-8) so
the published notice is served with its bytes intact.
Generated-By: looper 0.16.2 (runner=fixer, agent=pi)
* Include the provider icon manifest in the bundled adapter fixture
export-adapters.ts and the bundled runtime import
packages/design-system/index.js, which now also imports provider-icons.js to
publish the provider artwork. The adapter fixture copied every runtime file
the export reads except that new module, so the bundled launch failed with
ERR_MODULE_NOT_FOUND for provider-icons.js in the distribution regression
job.
Copy the icon manifest into the fixture alongside index.js, matching the
runtime distribution list that already ships it.
Generated-By: looper 0.16.2 (runner=fixer, agent=pi)
---------
Co-authored-by: pftom <pftom@pftomdeMacBook-Pro.local>
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
Add editor BYOK settings, provider reference guides and the media-use MCP tool. Preserve inline video work rounds and shared design-system integration. All eight checks passed on the exact reviewed integration head.