Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ In v0.108.0:
direct once the file is uploaded, launches headless under `auto`, including the UI fallback (measured, #1554).
- **`image upscale` stays headed:** a headless 2K upscale was refused as unusual activity on one of
two accounts while headed passed (#1554).
- **`video upscale` 720p / 270p GIF** drive the download menu headless (measured, 0 credits); 4K
video follows that path headless by decision (Ultra only, unmeasured; #1554).
- **The remaining UI surfaces stay headed** (`ui_automation`: `image batch`, `movie run`, r2v, edit, end-frame i2v,
4K/720p/GIF upscale, scene/character create, instructions, the agent composer,
1080p menu upscale, scene/character create, instructions, the agent composer,
other credit-capped video; on an account served flow.google.com, gflow cannot drive
instructions, scenes or characters yet in either mode, #639/#1587). Headless UI is tracked in #1554.
- **`auth login`** is interactive and needs a display once; `auth renew` and the credits read
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- **The video download-menu upscales run headless by default** ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). Under `auto` on
flow.google.com, `video upscale --scale 720p` and `--scale 270p` drive the download menu in a
headless browser, on the CLI and on `gflow_upscale_video`: each ran twice headless matching a
headed control and spent no credits, including on an account that was refusing headless image
upscales at the time. `video upscale --scale 4k` (Ultra only) follows the same path headless by
decision; it was not measured, as no Ultra account was available, and it spends credits on the
click, which is never retried. 1080p planned through the
menu (a clip outside the measured direct shape) and every image upscale stay headed.
`GFLOW_CLI_TRANSPORT=ui_automation`, an explicit `GFLOW_CLI_FLOW_HOST=labs.google` and
`--browser-visibility headed` keep the window. The MCP upscale tools now plan from the route
they already computed, so the catalog row is read once.
- **`image upscale`, `image upload` and `image batch` stay headed, with the evidence recorded**
([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). A 2K upscale passed headless 5/5 on two accounts until, after a day of runs on
one of them, Flow refused three headless 2K upscales as `PUBLIC_ERROR_UNUSUAL_ACTIVITY`
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ Which commands open a browser, with the default `GFLOW_CLI_BROWSER_VISIBILITY=au
| `video extend` | headless on `flow.google.com`; headed on labs.google | Drives Flow's Extend control; a billed headless extend was measured ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). `GFLOW_CLI_TRANSPORT=ui_automation` keeps it headed |
| `media trash` | none or headless | Sent with no browser when the direct read is available; otherwise from a flow.google.com page, measured headless ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). Also `media restore`. `GFLOW_CLI_TRANSPORT=ui_automation` keeps the page fallback headed |
| `image i2i --ref` | headless with one local file | One local reference file in an existing project, on a request that would go direct once the file is uploaded: a new file is uploaded and generated directly, a file already in the project is attached through Flow's UI, both from a headless browser ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). More files, another reference, a character or an unmeasured model keep it headed |
| `video upscale --scale 720p` | headless on `flow.google.com` | Drives the download menu; 720p and the 270p GIF measured headless, 0 credits ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 4k` | headless on `flow.google.com` (not measured) | Ultra only; spends credits on the click; follows the measured menu path by decision ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |

**Headed** (Flow's UI)

Expand All @@ -65,7 +67,7 @@ Which commands open a browser, with the default `GFLOW_CLI_BROWSER_VISIBILITY=au
| `video r2v` | headed | Reference-to-video is not measured over direct HTTP |
| `video edit` | headed | Not measured over direct HTTP |
| `video i2v --end-frame` | headed | An end frame, or a start frame that is already in the project, is not a measured shape |
| `video upscale --scale 4k` | headed | 4K, 720p and the 270p GIF, and 1080p of a clip the local catalog does not hold, drive the download menu |
| `video upscale --scale 1080p` (menu) | headed | 1080p of a clip the local catalog does not hold as a measured direct source drives the download menu; not measured headless |
| `scene create` | headed | Scenes are built in the UI |
| `scene show` | headed | Reads the scene in the UI |
| `character create` | headed | Character creation is a UI surface |
Expand Down Expand Up @@ -399,7 +401,7 @@ These keep the labs driver until they are ported: other UUID media references, a
**Remaining limits.**

- The one-time `auth login` is interactive and needs a display.
- Reference-to-video, `video edit`, image-to-video with an end frame, the 4K, 720p and GIF upscales, `scene create`, `character create`, `instructions`, the agent-only composer, and any other video run with a credit cap (`--max-credits`, MCP `max_credits`) still drive Flow's interface in a headed browser; `video extend` on flow.google.com drives it headless, `media trash`/`restore` run with no browser or in a headless one, image-to-image from one local `--ref` file in an existing project runs headless when the request would otherwise go direct. Headless operation of these surfaces is tracked in [#1554](https://github.com/ffroliva/gflow-cli/issues/1554).
- Reference-to-video, `video edit`, image-to-video with an end frame, 1080p upscales of clips outside the measured direct shape, `scene create`, `character create`, `instructions`, the agent-only composer, and any other video run with a credit cap (`--max-credits`, MCP `max_credits`) still drive Flow's interface in a headed browser; `video extend` on flow.google.com drives it headless, `media trash`/`restore` run with no browser or in a headless one, image-to-image from one local `--ref` file in an existing project runs headless when the request would otherwise go direct, and the 720p, GIF and (unmeasured) 4K video upscales run headless. Headless operation of these surfaces is tracked in [#1554](https://github.com/ffroliva/gflow-cli/issues/1554).
- Request shapes that have not been measured fall back to the interface path.
- The headless mint was measured on Windows only, on accounts served flow.google.com. macOS, Linux and accounts Flow serves on labs.google are unmeasured.
- The headless browser reports itself as `HeadlessChrome`. It is not a stealth technique, and Google may treat it differently in future.
Expand Down
6 changes: 4 additions & 2 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
| `video extend` | 在 `flow.google.com` 上为 headless;labs.google 上为 headed | 驱动 Flow 的扩展控件;已测量一次计费的无头扩展([#1554](https://github.com/ffroliva/gflow-cli/issues/1554))。`GFLOW_CLI_TRANSPORT=ui_automation` 保持有头 |
| `media trash` | 无浏览器或 headless | 直接读取可用时不使用浏览器发送;否则从 flow.google.com 页面发送,已测量可无头运行([#1554](https://github.com/ffroliva/gflow-cli/issues/1554))。`media restore` 同样。`GFLOW_CLI_TRANSPORT=ui_automation` 使页面回退保持有头 |
| `image i2i --ref` | 单个本地文件为 headless | 在已有项目中仅使用一个本地参考文件、且文件上传后的请求可直接发送时:新文件直接上传并生成,项目中已有的文件通过 Flow 的 UI 附加,两者均在无头浏览器中运行([#1554](https://github.com/ffroliva/gflow-cli/issues/1554))。多个文件、其他参考、角色或未测量的模型则保持有头 |
| `video upscale --scale 720p` | 在 `flow.google.com` 上为 headless | 驱动下载菜单;720p 和 270p GIF 已测量可无头运行,0 积分([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |
| `video upscale --scale 4k` | 在 `flow.google.com` 上为 headless(未测量) | 仅 Ultra;按决定沿用已测量的菜单路径([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)) |

**有头**(Flow 的界面)

Expand All @@ -57,7 +59,7 @@
| `video r2v` | headed | 参考图生视频尚未通过直接 HTTP 测量 |
| `video edit` | headed | 尚未通过直接 HTTP 测量 |
| `video i2v --end-frame` | headed | 结束帧,或已在项目中的起始帧,不是已测量的形态 |
| `video upscale --scale 4k` | headed | 4K、720p、270p GIF,以及本地媒体库中没有的片段的 1080p,都驱动下载菜单 |
| `video upscale --scale 1080p` (menu) | headed | 本地媒体库中没有的片段的 1080p 驱动下载菜单;未测量无头运行 |
| `scene create` | headed | 场景在 UI 中构建 |
| `scene show` | headed | 在 UI 中读取场景 |
| `character create` | headed | 角色创建是 UI 界面 |
Expand Down Expand Up @@ -433,7 +435,7 @@ gflow CLI / MCP server
**其余限制:**

- 一次性的 `auth login` 是交互式的,需要图形界面。
- 参考图生视频、`video edit`、带尾帧的图生视频、4K/720p/GIF 放大、`scene create`、`character create`、`instructions`、仅 Agent 编辑器,以及其他任何设置了积分上限的视频运行(`--max-credits`、MCP `max_credits`),仍在有头浏览器中驱动 Flow 界面;`flow.google.com` 上的 `video extend` 以无头方式驱动界面,`media trash`/`restore` 不使用浏览器或在无头浏览器中运行,在已有项目中基于单个本地 `--ref` 文件、且请求本可直接发送的图生图以无头方式运行。这些界面的无头运行在 [#1554](https://github.com/ffroliva/gflow-cli/issues/1554) 中跟踪。
- 参考图生视频、`video edit`、带尾帧的图生视频、超出已测量直连形态的 1080p 放大、`scene create`、`character create`、`instructions`、仅 Agent 编辑器,以及其他任何设置了积分上限的视频运行(`--max-credits`、MCP `max_credits`),仍在有头浏览器中驱动 Flow 界面;`flow.google.com` 上的 `video extend` 以无头方式驱动界面,`media trash`/`restore` 不使用浏览器或在无头浏览器中运行,在已有项目中基于单个本地 `--ref` 文件、且请求本可直接发送的图生图以无头方式运行,720p、GIF 和(未测量的)4K 视频放大以无头方式运行。这些界面的无头运行在 [#1554](https://github.com/ffroliva/gflow-cli/issues/1554) 中跟踪。
- 未测量的请求形态会回退到界面路径。
- 无头令牌生成只在 Windows 上、在 Flow 提供 flow.google.com 服务的账号上测量过。macOS、Linux 以及 Flow 在 labs.google 上提供服务的账号尚未测量。
- 无头浏览器会以 `HeadlessChrome` 标识自己。这不是隐身技术,Google 将来也可能区别对待它。
Expand Down
2 changes: 1 addition & 1 deletion docs/ACCOUNT_SAFETY.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Chromium is treated as a **fatal error**, not a fallback (#222). For the measure
request shapes, Chrome runs headless only to mint the reCAPTCHA token, and the request
goes to Flow over direct HTTP. The commands that still drive Flow's interface run it
headed, except `video extend` on flow.google.com, the page fallback of `media trash` /
`media restore`, and image-to-image from one local `--ref` file in an existing project on an otherwise direct request, which run headless under `auto` (`GFLOW_CLI_TRANSPORT=ui_automation` keeps them headed); `GFLOW_CLI_BROWSER_VISIBILITY=headed` shows the window for every command. The
`media restore`, the video download-menu upscales (4K unmeasured), and image-to-image from one local `--ref` file in an existing project on an otherwise direct request, which run headless under `auto` (`GFLOW_CLI_TRANSPORT=ui_automation` keeps them headed); `GFLOW_CLI_BROWSER_VISIBILITY=headed` shows the window for every command. The
per-command list is in [BROWSER_MODES](BROWSER_MODES.md). The headless mint was
measured as accepted on two accounts on Windows
([spike](superpowers/spikes/2026-11-27-direct-video-and-headless-mint.md)); macOS,
Expand Down
5 changes: 4 additions & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,12 @@ used only where it is strictly necessary.
- **Image upscale stays headed.** A headless 2K upscale was refused as unusual activity on one of
two accounts while headed passed, so no image upscale scale is in `HEADLESS_UI_SURFACES`;
`upscale_visibility` still decides the launch for the CLI and the MCP tool.
- **The video download-menu upscales run headless.** 720p and 270p were measured headless (0
credits) and are in `HEADLESS_UI_SURFACES`; 4K video (Ultra only) follows them by decision,
unmeasured. 1080p through the menu stays headed.
- **The UI transport (`ui_automation`) for the other surfaces.** `image batch`, `movie run`,
reference-to-video,
edit, end-frame image-to-video, the 4K/720p/GIF upscales, scene and character create,
edit, end-frame image-to-video, the 1080p menu upscale, scene and character create,
instructions, the agent-only composer and other credit-capped video still drive Flow's page in a headed browser. Headless operation of these
surfaces is tracked in [#1554](https://github.com/ffroliva/gflow-cli/issues/1554).
- **`auth login`** is interactive and needs a display once.
Expand Down
4 changes: 3 additions & 1 deletion docs/BROWSER_MODES.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ browser has been measured, so `auto` runs them headless.
| `video extend` | headless on `flow.google.com`; headed on labs.google | Drives Flow's Extend control. A billed extend in a headless browser completed, with Flow's own quote read and enforced by `--max-credits` ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). The labs.google path is unmeasured. `GFLOW_CLI_TRANSPORT=ui_automation` keeps it headed |
| `media trash` | none or headless | Sends Flow's trash mutation (`pGCYOe`) with no browser when the direct read is on and available (`GFLOW_CLI_WIRE_READS`; skipped while a proxy is configured); otherwise sends it from a flow.google.com page, which clicks nothing and was measured headless, trash and restore 2/2 in each mode ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). Also `media restore`. `GFLOW_CLI_TRANSPORT=ui_automation` keeps the page fallback headed |
| `image i2i --ref` | headless with one local file | When the only reference is a local file, `--project` names an existing project, and, with each file in the shape an upload produces (one in-project reference), the request would go direct (for example `nano2`), the browser starts headless: a new file is uploaded and generated directly, and a file the catalog already holds in the project is attached through Flow's UI in that headless browser. Two quota runs of the UI attach matched a headed control ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). Two or more files, a UUID reference or a character beside the file, a new project, an unmeasured model, or another reason for the UI keeps it headed. `GFLOW_CLI_TRANSPORT=ui_automation` keeps it headed |
| `video upscale --scale 720p` | headless on `flow.google.com` | Drives the video's download menu; 720p and the 270p GIF (`--scale 270p`) each ran twice in a headless browser matching a headed control, 0 credits, including on an account that was refusing headless image upscales at the time ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). `GFLOW_CLI_TRANSPORT=ui_automation` or an explicit `GFLOW_CLI_FLOW_HOST=labs.google` keeps it headed |
| `video upscale --scale 4k` | headless on `flow.google.com` (not measured) | Ultra only, so not measured: it follows the measured video download-menu path by an explicit decision ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554)). It spends credits on the click, and a failure after the click is never retried. `--browser-visibility headed` shows the window |

## Headed (Flow's UI)

Expand All @@ -52,7 +54,7 @@ browser has been measured, so `auto` runs them headless.
| `video r2v` | headed | Reference-to-video is not measured over direct HTTP |
| `video edit` | headed | Not measured over direct HTTP |
| `video i2v --end-frame` | headed | An end frame, or a start frame that is already in the project, is not a measured shape |
| `video upscale --scale 4k` | headed | 4K, 720p and the 270p GIF, and 1080p of a clip the local catalog does not hold, drive the download menu |
| `video upscale --scale 1080p` (menu) | headed | 1080p of a clip the local catalog does not hold as a measured direct source is planned through the download menu and launches headed; not measured headless (the menu offered no 1080p on the clip tried). A planned direct 1080p that falls back to the menu at run time stays in the headless browser it launched |
| `scene create` | headed | Reads the retired labs.google session token; refused identically headless and headed on an account served flow.google.com (HTTP 410), so headless is unmeasured ([#1554](https://github.com/ffroliva/gflow-cli/issues/1554), [#639](https://github.com/ffroliva/gflow-cli/issues/639)) |
| `scene show` | headed | As `scene create` |
| `character create` | headed | On an account served flow.google.com, gflow cannot drive it yet in either mode ([#1587](https://github.com/ffroliva/gflow-cli/issues/1587)), so headless is unmeasured |
Expand Down
2 changes: 1 addition & 1 deletion docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ GFLOW_CLI_HISTORY_PROMPTS=redacted gflow image t2i "confidential brief"
**Default:** `auto`. A request the direct transport can send (a measured shape) launches Chrome
**headless**, and that browser only mints the reCAPTCHA token; a surface that still needs Flow's
UI launches **headed**, except the surfaces measured headless (`video extend` on flow.google.com,
the page fallback of `media trash` / `media restore`, and image-to-image from one local `--ref`
the page fallback of `media trash` / `media restore`, the video download-menu upscales (720p, 270p, and 4K unmeasured), and image-to-image from one local `--ref`
file in an existing project on an otherwise direct request), which launch headless. A run that holds any UI item launches headed for the whole run. A
refusal Flow did not charge is retried once from a new headless browser process. The
per-command list is [BROWSER_MODES](BROWSER_MODES.md).
Expand Down
Loading