Skip to content

Drive Google Flow from Claude, Codex or a local control panel, on Mac or Windows — using your Google AI subscription credits instead of the pay-per-use video API. No browser extension.

Flow: list and download from the project grid even when a scene or clip is open

GTAI-1b74553413a71
diff --git a/CLAUDE.md b/CLAUDE.md
index 3792f90..a98e6cc 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -261,6 +261,8 @@ The preview tool could not read the project while it lived in ~/Desktop; check t
the picker to its All tab (it reopens on the last tab used, e.g. Characters). Verified with a real free still:
"asset:Juno" + an uploaded file -> both attached, the generated still (not the upload) downloaded.
Also noted: getByRole("button", { name: "Ingredient" }) also counts a hidden button outside the composer.
+- listAssets/downloadAsset now go to the project grid first: with a scene (or clip/character) view open, the scan
+ found nothing and flow_assets reported "no scenes" while one was on screen.
- Gemini TTS: a LONG `style` note makes the model ramble - a 45-word line with a 25-word delivery note produced 674
SECONDS of audio. The same line with no style note is 20.5 s, with a short note 32 s. Keep style notes to a few
words, and sanity-check the returned duration against the expected one before using it.
diff --git a/src/flow.ts b/src/flow.ts
index 8233ab4..53ca8e6 100644
--- a/src/flow.ts
+++ b/src/flow.ts
@@ -860,6 +860,9 @@ export async function listAssets(): Promise<FlowAsset[]> {
const state = await getFlowState();
if (!state.signedIn || !state.inProject) throw new Error(state.hint);
const page = await getFlowPage();
+ // From a scene, clip or character view the grid is not on screen, and the scan found nothing at all (2026-10-12:
+ // a scene open in Flow listed as "no scenes"). Go back to the project's All media first.
+ await ensureProjectGrid(page);
const assets = await scanGrid(page);
await scrollToTop(page);
return assets;
@@ -870,6 +873,7 @@ export async function downloadAsset(name: string, targetStem: string, quality: D
const state = await getFlowState();
if (!state.signedIn || !state.inProject) throw new Error(state.hint);
const page = await getFlowPage();
+ await ensureProjectGrid(page);
const matches = (a: FlowAsset) => a.name.toLowerCase().startsWith(name.toLowerCase());
const found = (await scanGrid(page, (assets) => assets.some(matches))).find(matches);
if (!found) throw new Error(`No asset whose title starts with "${name}". Use flow_assets to list titles.`);