fix: skip image regeneration on upload retry to save credits - #1
Merged
Merged
Conversation
When upload fails after successful image generation, the worker was retrying the entire generation (burning credits each time). Now it checks for existing reference_image_url first and only retries the upload. Falls back to extracting UUID directly from the GCS URL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks done
crisng95
added a commit
that referenced
this pull request
Apr 5, 2026
Security: - Add X-Callback-Secret auth to /api/ext/callback (shared secret via WS) - Fix _extract_media_id: don't return CAMS mediaGenerationId (Rule #1) - Fix _save_raw_bytes: use absolute path, add 500MB size guard Features: - Save inline rawBytes (4K video) from upscale responses to output/4k_raw/ - Re-poll on retry for video/upscale (prevents duplicate API calls) - Transient WS errors don't burn retry count - Extension side panel: ID column, updated badge labels (sent/gen.../done/fail) - Extension popup: request details with headers, payload, response Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
sethliao
added a commit
to sethliao/flowkit
that referenced
this pull request
Jul 27, 2026
Per HANDOVER_CURSOR.md P0 crisng95#2 — Veo models consume significant credits. All video gen types (i2v, r2v, start-end, edit) now use Omni Flash via abra_t2v_8s across both PAYGATE_TIER_ONE and PAYGATE_TIER_TWO. Note: P0 crisng95#1 (NARWHAL for images) was already correct in flow_client.py. stop_motion material already exists as a built-in. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
uploadImagefails after successfulbatchGenerateImages, the worker now retries only the upload instead of regenerating the image (which burned credits on each retry)Test plan
🤖 Generated with Claude Code