Franklin icon indicating copy to clipboard operation
Franklin copied to clipboard

Pure image/video tools + local-first history

Open KillerQueen-Z opened this issue 5 months ago • 0 comments

What

  • Remove the LLM "media router" from ImageGen/VideoGen. It made a second LLM call (on a free NVIDIA model) to rewrite the prompt + pick a model, which hit the gateway's 120s provider timeout and made video generation appear broken to customers. Tools now use exactly the caller's model + prompt.
  • VideoGen keeps a pure price-math cost confirm (no LLM) — only when an onAskUser bridge exists (CLI/agent). Direct callers (desktop) generate immediately.
  • ImageGen is pure direct generation.
  • Delete src/agent/media-router.ts and its local tests.
  • Cloud sync is now opt-in (FRANKLIN_CLOUD_SYNC=on) instead of default-on → desktop is local-first like Claude Code / Codex.

Why

Customer reported 'video generation broken' — root cause was the media-router's free-NVIDIA call timing out at 120s, not the video pipeline (Seedance → token360 is fine).

Verified

  • npm run build clean; 446 local tests pass (media-router tests removed)
  • Live smoke: ImageGen (nano-banana) 8s OK; VideoGen (seedance-2.0-fast) 5s video downloaded OK — both zero LLM, zero NVIDIA

KillerQueen-Z avatar Jun 15 '26 22:06 KillerQueen-Z