Repository navigation
fix(flow): reconcile scene clips in store and timeline - #34
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Derive float scene aspect ratio and collection ID from clip 0 - Select target clip on flow-scene-timeline without video clicks - Reconcile active scene clips in place and keep store bound - Check scene and video IDs before mutations and confirm clips
|
|
|
Acknowledged — Leaving PR #34 closed as requested so the scene clip addition confirmation work continues in #28. |
Summary
Align
flow_scenesandflow_videowith Google Flow buildboq_labs-ai-sandbox-frontend_20261120.00_p0without adding minifiedsuorB6controller symbols toVERIFIED_BUILDS:ts/angular.ts): Normalize clip0fromgetMap()withlegacyTile, derive float width-to-heightaspectRatio(0.5625for9:16clips and16 / 9for16:9clips or empty scenes), and pass the parent collection ID (Dc) viaFcandwcfromcollectionIdOf,parentCollectionId, or the active/collection/<cid>route.ts/video_ops.ts,ts/project_store.ts): Inspect own component-slot data properties infindProjectStoreInViewforProjectStore(GO) on cold scene loads, pollflow-scene-timelineuntil.clip.selectedorAdd clipsettles, removevideofrom click selectors soprepare_extendnever clicks<video>inflow-scene-editor-canvas, match target clips viaresolveLViewandpickerAssetMatches, select unselected target clips, and openAdd clipthenExtend.ts/read_store_snapshot.ts,src/scenes.rs): Reconcile activesceneTile.Ucclips (clip !== null) in place on matchingVIDEOentries, skip trailingCghistory entries sohist[0]does not revertprimary_media_id,url, orduration, clearurlwhile status ispendingorscheduled(or whenprimary_media_idchanges without an inline URL), copy error states, preserveOcandYffallbacks ints/scene_tiles.ts, and keep the store bound inrun_video_extendso ready extends finish without 420-second timeouts.ts/scene_ops.ts,src/scenes.rs): Reject non-SCENEtargets and non-VIDEOasset IDs beforehelper.mutateruns, and pollsceneContents(tile).clipsfor up to 6 seconds to confirm clip insertion before returningok: true.Verification
cargo xtask cipasses with zero warnings (CI: OK).RUSTFLAGS="-D warnings" cargo build --release --locked --bin flow-mcpsucceeds with zero warnings.flow_runtime.js) and MCP stdio check (initializeandtools/liston compiledflow-mcp) pass.Automated PR initiated by user @byteland-app via Stitch Loop.