Commit Graph

17 Commits

Author SHA1 Message Date
open-design-crew[bot]
f9054f9108 fix(cloud): persist saving failure state and harden retry_save recovery (#1119)
* 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>
2026-11-26 08:37:10 +08:00
open-design-crew[bot]
5eb2d9f79e fix(cloud,studio): serialize remoteTerminal, improve balance failure UX, and show full gateway model catalog (#1078)
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-25 15:59:24 +08:00
open-design-crew[bot]
01105aea9b fix(cloud,studio): remove hardcoded audio model fallback and guide empty-catalog workspaces to upgrade (#1020)
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-24 23:16:06 +08:00
Haoran Zhou
150356af44 fix(studio): support multi-image reference upload on Character reference and normalize Cloud reference limits (#847)
Some checks failed
Motion standalone checks / Template library policy (push) Has been cancelled
Motion standalone checks / Maintainability report (push) Has been cancelled
Motion standalone checks / Source checks (push) Has been cancelled
Motion standalone checks / Workspace reliability (macos-15) (push) Has been cancelled
Motion standalone checks / Workspace reliability (windows-2025) (push) Has been cancelled
Motion standalone checks / Studio regression (1/2) (push) Has been cancelled
Motion standalone checks / Studio regression (2/2) (push) Has been cancelled
Motion standalone checks / Distribution browser regression (push) Has been cancelled
Motion standalone checks / Distribution regression (push) Has been cancelled
Motion standalone checks / standalone (push) Has been cancelled
DSH integration / Optional DSH plugin (push) Has been cancelled
Motion release controls / controls (push) Has been cancelled
Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
2026-11-23 12:41:50 +08:00
Haoran Zhou
8b1c76dc80 feat(studio): unify image creation with fixed OpenDesign models and image features (#734)
* 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>
2026-11-20 19:36:31 +08:00
open-design-crew[bot]
7621018d2a fix(media): recover interrupted account image downloads and task history layout (#666)
* fix(media): resume account image downloads and preserve task row heights

* fix(media): restart original image after an unsatisfiable range

* fix(media): reconcile recovery outputs and clean cancelled queued downloads

---------

Co-authored-by: stevenguotj <stevenguotj@stevengotjdeMBP.lan>
2026-11-19 19:38:16 +08:00
open-design-crew[bot]
2b57cf6908 revert(assets): withdraw saved voices and native speech providers (#596)
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.
2026-11-18 18:14:08 +08:00
open-design-crew[bot]
dc01084107 feat(assets): add reusable voices and regional speech connections (#552)
* feat(assets): add reusable voices and regional speech providers

* fix(speech): preserve native settings and replay existing jobs safely

* fix(voices): align tracking and Studio regression fixtures

* fix(speech): keep queued voices stable across metadata updates

* fix(speech): retain account boundaries after voice rechecks

---------

Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-18 14:36:51 +08:00
Haoran Zhou
664be50861 Clarify multimodal entitlement and Plus onboarding (#545)
* Clarify multimodal entitlement and Plus onboarding

* Address follow-up review notes on asset chat refresh and account UI

---------

Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
2026-11-18 01:26:20 +08:00
Haoran Zhou
ad9abe0716 Fix Cloud model capability sync for asset references (#501)
Co-authored-by: Awek-015 <zhouhaoran@refly.ai>
2026-11-17 11:31:42 +08:00
Haoran Zhou
cc30111582 Support OpenDesign Cloud edits, image-to-video and speech timestamps (#495)
* 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>
2026-11-17 02:24:44 +08:00
open-design-crew[bot]
210bfdcebc refactor: centralize provider management and hide text-only entries (#442)
* 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>
2026-11-16 19:16:01 +08:00
open-design-crew[bot]
890d56328d Save generated media to workspace assets with local save recovery (#448)
* 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>
2026-11-16 18:55:42 +08:00
Tom Huang
acb80e4095 feat: add an asset workspace with generation, versions, and editor import (#413)
* 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.
2026-11-15 23:24:33 +08:00
Tom Huang
61ee4787c8 Unify Home navigation, provider settings, and local Agent selection (#393)
* 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>
2026-11-15 11:56:47 +08:00
open-design-crew[bot]
235d9fbedb Add BYOK media provider settings and generation tool (#369)
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.
2026-11-13 19:23:29 +08:00
罗高
4250e10dbb feat(motion): replace legacy app with standalone OpenMotion 2026-11-06 12:31:58 +08:00