Skip to content

Add a Flow web worker example for assistant video jobs - #92

Merged
crisng95 merged 1 commit into
crisng95:mainfrom
8Avalon8:example/flow-ui-assistant-worker
Nov 27, 2026
Merged

crisng95 merged 1 commit into
crisng95:mainfrom
8Avalon8:example/flow-ui-assistant-worker

Conversation

@8Avalon8

Copy link
Copy Markdown
Contributor

Description

With the Flow Kit browser extension enabled, a video submitted from the regular Flow UI failed with an unusual-activity warning and a reCAPTCHA connection error. After disabling the extension and reloading the same project, generation succeeded with the same prompt, model, and frame inputs. This suggests that the extension or its interaction with the browser session triggered the check in this setup.

Add an opt-in example that renders an Omni first/last-frame scene through Flow's signed-in web composer. A normal /api/requests/batch video request with provider: assistant produces the job. The example takes an explicit job ID, maps the two existing Flow assets, and uses the visible composer and download controls. It validates and returns the local MP4 through the existing provider-job completion endpoint, so FlowKit writes the result back to the scene that requested it.

The example records submit intent before the browser click and stops on warnings, ambiguous results, or mismatched settings. It supports pre-uploaded assets and the Simplified Chinese Flow UI, and requires an active browser operator. The change is confined to the example and its tests; existing providers, defaults, and extension behavior stay the same.

Validation

  • Live smoke: submitted one request through /api/requests/batch with provider: assistant. The generated provider job carried two distinct scene frame IDs and URLs. Flow's web UI displayed a 4-credit Omni 1.1 Flash render at 360p, four seconds, and one output. The MP4 passed full ffmpeg decoding.
  • The provider job reached SUCCEEDED; the original batch request and the same scene reached COMPLETED, with matching file URLs and media IDs between the request and scene. The worker did not patch the scene.
  • 49 focused tests passed, including the assistant producer's two-frame payload and the submit-intent guard. Browser helper syntax and git diff --check passed.

@crisng95
crisng95 merged commit 0ff5b5e into crisng95:main Nov 27, 2026
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.

2 participants