Repository navigation
Conversation
#17221) ## Summary Follow-up to #17211, for the same GitHub release-asset outage. The frontend CI step `Typecheck through bun check` downloads the pinned Bun zip with `curl --retry 5 --retry-delay 3`, which gives up after about 15 seconds of waiting. GitHub served bursts of 504s for release assets for over two hours today, and #17208's `Frontend build + bundle sanity` went red with six `curl: (22) The requested URL returned error: 504` lines in a row. This drops the fixed `--retry-delay` and raises `--retry` to 8. Without a fixed delay, curl backs off exponentially (1, 2, 4, ... 128 s), so the step now waits about four minutes in total before failing. A healthy download is unchanged, and a download that never recovers still fails the job. The SHA-256 check and the `UNSLOTH_TYPECHECK=bun` gate are untouched. ## Changes - `.github/workflows/studio-frontend-ci.yml`: `--retry 8 --retry-connrefused --retry-all-errors`, no `--retry-delay`. - `tests/test_bun_download_retries.py`: reads the step's `curl` line from the workflow and checks that `--retry-all-errors` is set (curl does not retry a 504 without it) and that the total backoff is at least 240 s. A second test pins the backoff arithmetic against curl's documented behaviour. ## Testing - Against a local server that always answers 504, `curl --retry 3` without `--retry-delay` waits 7 s (1 + 2 + 4), which matches the arithmetic in the test. - `pytest tests/test_bun_download_retries.py`: 2 passed. Against the old step from `main` it fails with `assert 15 >= 240`. - The other tests that read `studio-frontend-ci.yml` pass (98 passed), and `scripts/lint_workflow_triggers.py` is clean.
|
@codex review |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ddeb6e921f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| else render_image_columns( | ||
| to_preview_jsonable_row(results.dataset.to_dict(orient = "records")), | ||
| image_column_names(recipe), | ||
| ) |
There was a problem hiding this comment.
Preserve original image cells for preview downloads
When an image recipe runs in preview mode, this replaces the dataset sent to JobManager with JPEG thumbnails capped at 384 px, retaining only the first image in each cell. The existing Download action exports those same rows through _build_in_memory_job_dataset_download() or its client-side fallback, so downloading a preview silently exports thumbnail objects rather than the original generated images, shrinking larger images and discarding additional ones. Preview runs have no artifact directory from which export can recover the originals; retain the raw image cells separately and derive thumbnails only for display.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 2063276: the job keeps the original image cells, the SSE event and /dataset pages get thumbnails, and the in-memory download reads the raw rows.
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
WalkthroughRun at 8c58910 in Studio on an RTX 3090 with 1. Data Recipes page
2. Product Photos recipe
3. Step catalog
4. Image model preset
5. AI image step
6. Test run, 4 rows
7. Recipe using the chat model and the image model together This recipe is not part of the PR. It was imported with Paste recipe JSON to exercise both model types in one run.
8. Full run, 6 rows
Both models were loaded on one 24 GB card with Keep multiple models loaded set to When they fit. In this run, loading the chat model with an 8192 context evicted the image model; with a 2048 context both stayed loaded. Follow-ups
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |








Problem
Data Recipes can't generate images. Data Designer already has an image column (
ImageColumnConfigin the pinned 0.5.4), but Recipe Studio has no block for it, and the backend wouldn't run one anyway:dall-e-,stable-diffusion,sd-,imagenorgpt-image-to/images/generations. Studio's own image models (sdxl-turbo, Z-Image, FLUX) match none of them, so an image column on the local provider goes to/v1/chat/completionsand fails with "No image data found".llm-columns counted as using a model, so an image-only recipe on the local provider never got the internal key (401) and never checked that a model was loaded.images/<column>/<uuid>.pngpaths (full run), and both showed up as raw text in the run tables.Change
AI image block: a new step under AI generation. Its prompt can use other fields like
{{ subject }}, and each row gets one image from an image model preset. It wires up like AI text (connecting a preset sets its model, connecting a field adds its reference, renames and deletes stay in sync) and saves, imports and exports with the recipe.Image model presets: a Model preset gets a Generates: Text / Image switch. Image presets send
generation_type: "image"with size, steps and guidance, and AI text steps only list text presets (and the other way around). On the local provider an image preset uses whichever image model is loaded on the Images page.Results: generated images show as thumbnails in test runs and full runs, and the download and Hugging Face publish include the
images/folder (both already handled it, nothing produced one before).Product Photos learning recipe: two category fields (subject, style) and one AI image step, set up for sdxl-turbo (512x512, 1 step, guidance 0). It doesn't need a chat model, so it runs with just an image model loaded.
Backend:
service.py: wraps Data Designer'sis_image_diffusion_modelso model names on Studio's local provider go to/images/generations. Every other name keeps the stock check, so cloudgpt-image-1and chat-route image models behave the same as before. Image columns also count for the "Add a Provider connection block" error.routes/data_recipe/jobs.py: image columns get the internal key, a recipe with a local image column fails early with "No image model loaded. Load one on the Images page, then run the recipe.", and the request getsresponse_format: b64_json, the loaded model's repo id and a 600 s timeout (Data Designer waits 60 s by default). Theenable_thinkinginjection skips image presets.jsonable.py,worker.py,manager.py: image cells turn into 384 px JPEG thumbnails for the tables, and image columns count toward column progress.Safety
imageare read as images, so a text column that happens to look like base64 is left alone.images/folder:.., absolute paths and symlinks that point outside are left as text, and every read goes throughaccount_pathlike the existing seed image previews. Anything that won't decode (truncated, not an image, a decompression bomb) stays as text.Testing
studio/backend/tests/test_data_recipe_image_column.py(12), with real Data Designer against a fake provider:/images/generationswith the rendered prompt,b64_json, size, steps and guidancegpt-image-1still goes to imagesimages/photo/*.png, pages show thumbnails, and the JSONL and parquet zips include every imageimages/aren't readtest_data_recipe_*,test_account_recipe_*,test_mcp_tools_recipe.py): 395 passed. The 1 failure istest_github_validate_skips_live_access_with_honest_note, which fails the same way on main on my machine (the GitHub seed plugin isn't installed in my env).tests/recipe-studio-image-block.test.ts(7). It covers:npm test: 15,290 pass. The 4 failures are the HTML/TextEdit charset and time zone tests, which fail the same way on main on my machine.npm run typecheck,npm run build, andnpm run bundle:check(within budget) all pass. eslint has no findings on changed lines. Prettier is clean on the files that were clean on main.scripts/run_ruff_format.pyandruff checkare clean.stabilityai/sdxl-turboloaded (MPS, bf16):.jsonl.ziphad 100 rows and 100 PNGs (512x512), each row's path pointing at a real file.Not covered
multi_modal_contexton the image column)