Skip to content

feat(video): headless download-menu upscales by default (#1554) - #1601

Merged
ffroliva merged 3 commits into
developfrom
feature/1554-headless-video-upscale
Nov 29, 2026
Merged

ffroliva merged 3 commits into
developfrom
feature/1554-headless-video-upscale

Conversation

@ffroliva

Copy link
Copy Markdown
Owner

Summary

Surface 7 of #1554: the video download-menu upscales run headless by default.

  • Measured: video upscale --scale 720p and --scale 270p (GIF) drive the download menu in a
    headless browser under auto on flow.google.com, on the CLI and on gflow_upscale_video.
  • By decision, unmeasured: video upscale --scale 4k (Ultra only; no Ultra account was
    available) follows the same menu path headless. Risk: 4K bills on the click; a refusal
    after it is never retried (unchanged), so a headless refusal like the image one would cost the
    credits of that run. --browser-visibility headed shows the window.
  • Stays headed: every image upscale (fix(image): image upscale, upload and batch stay headed, with evidence (#1554) #1593), and 1080p planned through the menu (a clip outside
    the measured direct shape). A planned direct 1080p that falls back to the menu stays in the
    headless browser it launched (unchanged behaviour, unmeasured, documented).
  • upscale_visibility is one rule for the download-menu path of both kinds and accepts an
    already-planned route, so the MCP upscale tools read the catalog row once.

Evidence

  • Spike (2026-11-29-headless-video-upscale.md,
    script scripts/dev/spike_headless_video_upscale.py): 720p 2/2 and 270p 2/2 headless against a
    2/2 headed control each; 4K exit 22 in both modes (not offered on a Pro account); 1080p through
    the menu exit 22 in both modes (not offered on the clip tried). Balance unchanged (50): the
    720p and 270p exports spend no credits.
  • The same account passed the 270p and 720p exports headless in a window where it refused
    headless 2K image upscales, so the image refusal does not extend to the video menu.
  • Live e2e under auto: the 270p GIF export (now launched through the production rule) and the
    new MCP 720p export — results in the PR thread.
  • Offline: 9705 passed, coverage 94%; all 12 gates green.
  • Reviews: /code-review xhigh and /ponytail-review xhigh (fresh agents); their findings (an
    MCP.md contradiction, the 1080p wording, the spike date and context, a fragile e2e, a stale
    memory note) are fixed in the second commit.

Refs #1554

🤖 Generated with Claude Code

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, spent
no credits, and passed headless on an account that was refusing headless image
upscales at the time (docs/superpowers/spikes/2026-11-30-headless-video-upscale.md).
`video upscale --scale 4k` (Ultra only) follows the same path by decision,
recorded as unmeasured. 1080p through the menu and every image upscale stay
headed.

upscale_visibility applies one rule to the download-menu path for both kinds
and takes an already-planned route, so the MCP upscale tools read the catalog
row once. The 270p GIF e2e launches through the production rule, and a new MCP
720p e2e asserts the headless launch.

Refs #1554
MCP.md no longer contradicts itself; the 1080p wording names a menu route
planned from the start (a planned direct 1080p that falls back stays in its
headless browser); the spike record carries the same-window image refusal and
its correct date; the MCP 720p e2e skips a clip whose menu offers no 720p; a
memory note listing these scales as headed is updated.

Refs #1554
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e01a652a-ed9c-4dd3-ba74-d07d291e8ed0
Commits

Reviewing files that changed from the base of the PR and between 1ee4d52 and 1b624a0.

Files selected for processing: 21

  • AGENTS.md
  • CHANGELOG.md
  • README.md
  • README.zh-CN.md
  • docs/ACCOUNT_SAFETY.md
  • docs/ARCHITECTURE.md
  • docs/BROWSER_MODES.md
  • docs/CONFIGURATION.md
  • docs/MCP.md
  • docs/superpowers/memory/real-browser-auth-mandatory.md
  • docs/superpowers/spikes/2026-11-29-headless-video-upscale.md
  • scripts/dev/spike_headless_video_upscale.py
  • src/gflow_cli/_cli_helpers.py
  • src/gflow_cli/mcp/tools.py
  • tests/e2e/test_migrated_upscale_e2e.py
  • tests/test_cli_browser_visibility.py
  • website/docs/ACCOUNT_SAFETY.md
  • website/docs/ARCHITECTURE.md
  • website/docs/BROWSER_MODES.md
  • website/docs/CONFIGURATION.md
  • website/docs/MCP.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The gflow_upscale_video tool description and the MCP.md visibility paragraph
named every menu upscale headed; they now name 720p, 270p and the unmeasured 4K
as headless under auto and 1080p planned through the menu as headed. The
CHANGELOG and README say 4K spends credits on the click; the spike script
measures the free scales unless 4K is named.

Refs #1554
@ffroliva

Copy link
Copy Markdown
Owner Author

PR #1601 — Council Review Verdict

Reviewed at 2fcd35ed; follow-up in the next commit on this branch.

Consensus: 🟢 GREEN (after one must-fix, applied)

Dimension Verdict
D1 Correctness · D2 Quality · D14 YAGNI · D15 Parity · D8 CLI UX YELLOW → fixed
D3 Security · D4 Tests · D6 e2e GREEN
D5 Conventions · D9 Docs · D13 Scripts YELLOW → fixed

Must-fix (1, found by two dimensions, applied)

The gflow_upscale_video tool description and the MCP.md "Browser visibility" paragraph still
said every menu upscale opens a visible browser. They now name 720p, 270p and the unmeasured 4K
as headless under auto, and 1080p planned through the menu as headed.

Nice-to-have (applied)

  • The spike script measures 720p and 270p by default; 4K, which bills on Ultra, must be named.
  • The CHANGELOG and README 4K rows say it spends credits on the click.
  • MCP.md moves the visibility sentence after the tool's description; the README 1080p (menu) row
    says "as a measured direct source".

Confirmed good

Image upscales are headed at every scale; video 720p / 270p / 4K headless under auto; 1080p
headless on the direct route and headed on a menu route; the kill switch (environment or
--transport) and an explicit labs.google host keep it headed; the MCP per-call
browser_visibility still wins; no retry or relaunch added after a billed click; the new tests
fail on develop's code; the e2e launches through the production rule.

Evidence

Spike 720p 2/2 and 270p 2/2 headless against a 2/2 headed control each, 0 credits; live e2e
270p (in-process) and 720p (MCP) passed headless under auto; 9705 offline tests passed.

@ffroliva

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ffroliva
ffroliva merged commit 57e5306 into develop Nov 29, 2026
22 checks passed
@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Action not completed

Pull request is closed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant