- security_utils: accept only is_global addresses (100.64.0.0/10, the
Tailscale range, went through is_private), judging IPv4-mapped / 6to4 /
Teredo / NAT64 IPv6 by the IPv4 inside.
- /api/process validates the URL (public host, one YouTube video) before
anything fetches it, and the quality probe now runs after the metering
step (balance, job limit, hourly probe cap); a low-quality confirm or a
too-short source hands the reservation back. quality_probe.py checks the
same itself, passes noplaylist and no longer disables TLS verification.
- Metered whole-video URL jobs carry SOURCE_CAP_MINUTES = reserved minutes
(job env + resume manifest); main.py cuts a download clearly longer than
that, so a server cannot answer the probe short and the download long.
- main.py / quality_probe.py get child_env(): the server secrets (Stripe,
JWT, DB, SMTP, Telegram, R2, AgentLedger, managed keys) are dropped; a
test fails if the pipeline ever reads one.
- /api/social/user no longer logs the whole Upload-Post profile list.
- Owner checks on /api/thumbnail/generate, /api/thumbnail/publish/status
(dashboard now polls with apiFetch) and /api/render/{id}; /video/{id}
and /gallery escape every interpolated value and drop non-http URLs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Most subscribers use OpenShorts on one day and cancel. Autopilot makes the
value recur: once switched on, every new upload on the user's YouTube channel
(listed through the existing Upload-Post connection, no scraping) is sent
through the normal /api/process pipeline, the user gets an email when the
clips are ready, and with autopublish on the best clips are scheduled on
their socials, one a day.
- cloud/autopilot.py: poller, in-process job submission as the user,
completion hook, autopublish, and /api/autopilot{,/videos,/run}
- guard rails: only videos published after switching on, max 3 days old,
1 automatic job per user per day, first N minutes per video, Shorts skipped,
paid plans only, dedupe by (user, video) across the deploy handover
- dashboard: new Autopilot tab (sidebar + mobile menu, #app?tab=autopilot)
- connect page can return to the Autopilot tab
- analytics: ClipsDelivered/JobFailed now report source=url and the plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Feedback from a real run: thumbnails were 'face + two words' and the
person did not look like the presenter. The concept planner now has to
show the subject (product, number, result) with props and depth, and may
use the plain face only once. Frames are kept at native resolution so the
face crop sent as reference is ~800px instead of ~500px, and the image
prompt demands the exact same real person (no idealizing, no caricature).
Refining titles in another language now updates the session language and
returns paired thumbnail texts, so the thumbnail follows the title.
Browser run on a real video surfaced three defects:
- references were one PIL Image shared by the worker threads; the SDK's
encoder raced and every generation died. Now each reference is an
immutable JPEG byte part.
- Gemini's image model refuses recognisable public figures, by reference
photo and by name alike (IMAGE_OTHER). The concept planner no longer
writes real names or brands into scene prompts, and a blocked render is
retried once without the person; the card says so.
- the frames effect listed its own state as a dependency, so setting it
re-ran the effect and the cleanup discarded the response in flight.
Titles: transcript + 10 frames instead of uploading the whole video (an hour
was ~1M tokens), a brainstorm across fixed styles then a critic that scores,
dedupes by angle and pairs each title with a 1-4 word thumbnail hook. Mobile
rules: payoff inside 50 chars, keyword first. Text model moves to
GEMINI_MODEL_THUMBNAIL (default gemini-3.5-flash); flash-lite is the weakest
tier and this is the one creative step.
Thumbnails: a text call designs N different concepts, one image call each in
parallel. Default burns the hook text with PIL (Anton, black stroke) over
negative space the image model is told to leave, so accents are never wrong;
'AI painted' toggle keeps the old behaviour. Outputs cover-cropped to
1280x720 under YouTube's 2 MB. GET /api/thumbnail/frames/{session} picks
frames with a large, sharp face spread across the runtime and the dashboard
offers them as the person reference. Phone-size preview row in the UI.
JSON parsing now uses raw_decode: flash appended a stray ]} once.
The dashboard was a desktop layout that merely survived a narrow viewport.
The changes below are interface only; no backend behaviour, request shape or
data changes.
Navigation. Below md the 80px icon rail is gone. It cost a fifth of a 360px
screen to show seven unlabelled glyphs. In its place: a bottom tab bar with
the four everyday destinations plus "more", and a drawer behind the header's
menu button carrying the full list. All three surfaces read one `navItems`
array, so they cannot drift. The tab bar is a flex sibling of the scrolling
pane rather than a fixed overlay, so no pane needs compensating padding and
nothing hides behind it. The header gains the section name the rail used to
carry, so a phone still knows where it is.
Shell. h-dvh where supported (100vh hides its own bottom bar behind mobile
browser chrome), body overflow-x hidden, and safe-area padding for the iOS
home indicator via viewport-fit=cover.
Touch and legibility. Inputs render at 16px below sm so iOS stops zooming on
focus and never zooming back; the shared button pills get a 44px floor on
coarse pointers; the 10.5px mono labels come up to 11.5px on phones.
Density. The clip-generator hero no longer fills the fold on its own. The log
terminal starts collapsed on phones. Result cards cap the 9:16 preview so the
title, captions and actions stay on the same screen as the clip. Modals become
bottom sheets below sm — a centred dialog with 4px side margins was wasting the
only width there was. Banners, the results toolbar and the social nudge stack
instead of crushing.
Also fixes three <div>-inside-<p> blocks in Settings that the browser was
silently tearing apart.
Issue #68: publishing a video to YouTube from the Studio now offers
'create clips from this video'. /api/process accepts a
thumbnail_session_id, hardlinks the session's source under the job's
name (so /api/source, the clip editor and retention treat it like a
normal upload) and forwards the session's transcript via a new
main.py --transcript flag, so the pipeline skips a second Whisper pass.
Any problem with the forwarded transcript (missing file, no segments,
silent source) falls back to transcribing normally, and empty
transcripts are not forwarded at all. Contract pinned by six endpoint
tests plus a fallback case; verified end to end locally against the
running app (speech video: 'Reusing precomputed transcript (4
segments)' in the job log).
Full visual rework to a single locked design system (design.md, Lumen
Night Foundry): dark violet canvas, molten-brass accent, Instrument
Serif + Geist + JetBrains Mono, hairline cards, zero gradients and
zero glassmorphism.
- Landing: marquee hero with real vertical demo clip in an instrument
bezel, meter strip, smart-crop before/after section, cloud-first
copy (start free trial primary, self-host demoted to secondary),
text density cut, SEO surfaces preserved (single h1, ids, FAQs,
comparison table intact)
- App: workbench restyle — sidebar with mono ordinals, unified header,
settings/ai-agent/dashboard views on shared tokens; per-feature
gradient identities retired
- Shared UI: new Modal, SegmentedControl and StepIndicator replace 8+
duplicated modal shells and 2 wizard steppers
- New pricing paywall page (#/pricing): demo proof strip, honest trust
signals, billing FAQ
- Routing: app logo links back to landing via #landing without
resetting the skip-landing preference
- Responsive: audited and fixed at 320/375/414/768px (no horizontal
scroll, tables scroll in-container, single-line CTAs)
- ScheduleWeekModal translated to English; ProcessingAnimation comment
noise removed
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Thumbnail generation errors were silently swallowed, returning an empty
200 response and leaving the UI stuck on "Your thumbnails will appear here".
Now surfaces actual error messages to the user. Switched model from
gemini-3-pro-image-preview to gemini-3.1-flash-image-preview.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Landing page with hero, features, how-it-works, comparison table, FAQ, and CTA sections
- Full SEO meta tags, Open Graph, Twitter Cards, and JSON-LD structured data (SoftwareApplication, FAQPage, Organization)
- GEO-optimized content targeting AI search engines (citations, statistics, authoritative tone)
- API Keys section highlighting free tiers for Gemini (required), ElevenLabs and Upload-Post (optional)
- AI YouTube Thumbnail Studio feature showcased in landing and FAQ
- Gemini API key validation in ThumbnailStudio (blocks UI with warning when not configured)
- Landing page link in dashboard sidebar for easy navigation
- All references updated to Gemini 3.0 Flash and correct GitHub repo URL
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>