Walkthrough
-
Scout now accepts YouTube video, playlist, and channel links as discovery sources. It validates and submits the links, retrieves and selects up to 20 videos, and passes them through the discovery pipeline. The changes also update transcript retrieval messages and Gemini model settings.
Changes: Scout source-link discovery
Layer / File(s) Summary Source-link input and validation
apps/web/src/lib/scout/source-links.ts,apps/web/src/lib/scout/source-copy.ts,apps/web/src/views/studio/scout.tsx,apps/web/src/lib/scout/api-client.ts,apps/web/src/routes/api/scout/start.tsThe form accepts multiline source links. The parser recognizes supported YouTube video, playlist, and channel inputs, removes duplicate links, and reports invalid lines. The form and endpoint enforce the 10-link limit. YouTube link listing
apps/web/src/lib/scout/discovery/youtube.ts,apps/web/src/lib/scout/__tests__/youtube-feed.test.tsVideo, playlist, and channel links use API, oEmbed, or RSS paths. Playlist retrieval is paginated, video details are fetched in batches of up to 50, and channel ID extraction checks canonical links and other page fields. Link-based video selection
apps/web/src/lib/scout/discovery/from-links.ts,apps/web/src/lib/scout/__tests__/source-links.test.tsSingle-video results take priority over playlist and channel candidates. Discovery deduplicates results and selects up to 20 videos, using ranking when the candidate pool exceeds available slots. Tests cover parsing and selection behavior. Discovery pipeline and resource reset
apps/web/src/lib/scout/pipeline.ts,apps/web/src/lib/scout/pack.ts,apps/web/src/lib/scout/__tests__/unread-reset.test.tsThe pipeline uses link-based discovery when links are present and retains goal-based discovery otherwise. Before attaching discovered resources, it resets failed unread resources to pending. Transcript retrieval messages
apps/web/src/lib/scout/fetch/transcripts.ts,apps/web/src/lib/scout/__tests__/transcripts-python.test.ts,apps/web/src/lib/scout/source-copy.tsPython transcript retrieval distinguishes a missing transcript module from Python execution failures and returns the corresponding message. Tests cover both cases. Gemini model updates
Layer / File(s) Summary Gemini defaults, presets, and guidance
apps/web/src/lib/ai-config.ts,apps/web/src/lib/ai-policy.ts,apps/web/src/lib/__tests__/personal-learning.test.ts,apps/web/.env.example,docs/syllo-setup.mdThe default Gemini model changes to Gemini 3.5 Flash Lite. The presets and free-model allowlist include Gemini 3 models, and the setup documentation describes their free-tier limits. Estimated code review effort: 3 (Moderate) | ~30 minutes
Change: Feature
Sequence Diagram(s)
mermaid1 sequenceDiagram 2 participant ScoutPage 3 participant ScoutStartEndpoint 4 participant startPack 5 participant handleDiscover 6 participant discoverFromLinks 7 participant listLinkVideos 8 ScoutPage->>ScoutStartEndpoint: Submit source links 9 ScoutStartEndpoint->>startPack: Pass validated links 10 startPack->>handleDiscover: Queue discovery payload 11 handleDiscover->>discoverFromLinks: Discover from parsed links 12 discoverFromLinks->>listLinkVideos: List videos for each link
Merge Risk: Moderate · up to aa508
-
The YouTube links feature is mostly sound, but users with a newly created Gemini key who enter only a goal will hit a failed pack, because the web-search step still targets a model that new keys cannot use. Several smaller gaps also remain. Some valid channel links or handles are rejected or return nothing. Shorts can appear in channel packs. Some service failures show a generic "no videos" or "install Python" message. Resolve the goal-search model issue before merging; the rest can be follow-ups.
Pre-merge checks: 4
-
Check name Status Explanation Title check The title "feat(scout): build a roadmap from a youtube channel, playlist or videos" matches the main change. The PR adds an optional YouTube links box to Scout. Scout then builds a pack from supplied … Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Description Check Check skipped - CodeRabbit’s high-level summary is enabled. Full details: Title check
-
Explanation
The title "feat(scout): build a roadmap from a youtube channel, playlist or videos" matches the main change. The PR adds an optional YouTube links box to Scout. Scout then builds a pack from supplied videos, playlists, and channels. The changeset includes link parsing, link-based discovery, pack-start wiring, and the API and UI changes that support them. The title omits secondary changes, such as the Gemini model default update, transcript error reporting, and retry reset. That omission is expected for a short title.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- 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.
I’m a rabbit, ears held high,
I paste a link and watch it fly.
Videos gather, neat in a row,
Twenty may join the pack to go.
Gemini’s models find their place,
I nibble clover, pleased with pace.