Franklin
Franklin copied to clipboard
Pure image/video tools + local-first history
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
onAskUserbridge exists (CLI/agent). Direct callers (desktop) generate immediately. - ImageGen is pure direct generation.
- Delete
src/agent/media-router.tsand 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 buildclean; 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