Feat/agent harness - #31
Merged
Merged
Conversation
The companion ends grammar/learning answers with the source YouTube URL, which
previously opened externally on youtube.com. Route those links into our own tip
interface instead, mimicking the Discover flow.
Backend: add resolve_curated_video + GET /api/collection/resolve/{video_id}.
It resolves a video_id to its curated home by checking standalone tips and
scanning the curated tip playlists' membership (reusing get_cached_playlist —
no reverse YouTube endpoint exists). Three-way outcome distinguishes a definitive
"not curated" (404) from a transient fetch failure (503) so an API blip never
misclassifies a curated video as external.
Frontend: extractYouTubeVideoId helper; RecommendedVideoLink resolves a chat
YouTube link to /tips/playlist/<pid>?lesson=<vid> or /tips/video/<id> (new tab),
falling back to the external URL while pending / on 404; session-cached, dropped
on 503 for retry. MessageMarkdown's link override is now always-on so the global
companion surface is covered. CourseSidebar scrolls the active lesson into view
when arriving via ?lesson=.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…le/source Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… resume Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ress accessor Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace LLM-based word splitting with jieba for Chinese lessons. The vocab LLM call no longer decides word boundaries or romanization — it only fills meaning + usage for a fixed, pre-segmented token list, so it can no longer omit or inconsistently split words. - add jieba dep + segmentation_provider (Chinese only, LLM fallback elsewhere) - enrich_vocabulary: jieba tokens + deterministic pypinyin, LLM meaning/usage; coverage guaranteed (missed words kept blank, never dropped) - wire into _shared_pipeline; extract_vocabulary retained as fallback - output shape unchanged so frontend buildWordSpans is unaffected Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When TipProgress.title is empty (legacy records pre-dating title persistence), look up the UserMaterial by courseId and use its name as the continue-item title. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Reasoning steps are now individually collapsible (intended) and share the 'Thinking' label with the trace header, so assert the outer trace exists and is open rather than requiring exactly one match.
…e item Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.