Repository navigation
Integrate reviewed October PRs with correctness and compatibility fixes - #2126
Merged
Merged
Conversation
A cron schedule without a tz was computed in a fixed UTC offset taken from the current time. The first run after a daylight saving change was then an hour off (a daily "0 9 * * *" reminder fired at 08:00 the day after DST ended). Compute it in naive server-local time instead, so the offset of the run time itself is used.
Mastery paths previously scheduled with one fixed interval template per knowledge type, which did not fit exam cramming, language drilling, science review, or learner-specific pacing. Add four built-in strategy presets and custom per-round interval templates with validated persistence, CRUD, duplication, and path bindings. Bound paths keep a frozen strategy snapshot, replay durable evidence when switching, and mastery tools follow the bound path scheduler. Expose strategy management in the mastery review trail, including custom interval editing and loading, empty, busy, invalid-input, and error states. Regenerate the OpenAPI contract and add focused backend and web regression coverage. Legacy paths without a binding continue to use the previous default scheduler.
The running-header normalizer's unit group used the character class [课章节单元], which matches a single character. A 单元 (unit) token was split: only 单 was captured and the orphaned 元 leaked into the chapter name, so 第1单元 导论 normalized to 第1单 元 导论. The malformed title then failed UNIT_RE_MAP[单元] matching, dropping header-embedded 单元 chapters during rebuild. The function docstring already promises the canonical 第N单元 章名 shape. Match the two-char token first: 单元|[课章节]. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
_dependencies tried to dedupe requirements via getattr(requirement, "canonical_name", requirement.name). packaging's Requirement has no canonical_name attribute, so this always fell back to the raw requirement.name (merely casefolded). Two spellings of the same PyPI project that differ only by '.', '-' or '_' (e.g. Flask.Thing and flask-thing) were treated as distinct, so both passed the duplicate guard and were handed to the isolated pip install, defeating the check and allowing conflicting pins. Use packaging.utils.canonicalize_name, which applies PEP 503 normalization. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
resolve_module matched a learner's 1-based 'lesson N' against the module 'order' field with int(module['order']) == position. But order is stored 0-based (topic_generation uses order=len(modules); service and outline_revision number with enumerate from 0), so 'lesson 1' matched the module whose order is 1 — the second lesson — and every lesson but the last resolved one too high, sending the learner's hand-off card to the wrong lesson. Take the Nth module by rank in the order sequence instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
VisualizerRegistry.get() normalizes the id (strip + lower) before the catalog lookup, but set_enabled/install_bundled/uninstall keyed the catalog with the raw id and forwarded it to the store. Catalog keys are always lowercase (VisualizerManifest._valid_id lowercases them), so a valid id in a different case or with surrounding whitespace — e.g. the raw path param from the visualizers router — was rejected as not installed/not found, or would have persisted store state under a key the catalog never matches. Normalize the id at the top of each mutator, matching get(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
content_disposition neutralized quotes and backslashes in the ASCII filename= fallback but left C0 control characters untouched. A filename containing CR/LF produced a header value with a raw newline — a malformed header / response-splitting shape that the ASGI server rejects (500). Strip control chars like the sibling partners.helpers.safe_filename already does. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
_generate_queries cleaned each LLM-returned line with
line.strip().lstrip("0123456789.-) "). str.lstrip takes a character SET, not a
prefix, so besides the intended "1. "/"2) " list markers it also ate any
leading digits of the query itself: "2024 budget forecast" -> "budget
forecast", "5G network rollout" -> "G network rollout". The KB was then
searched for a materially different query whenever a variant began with a
number (years, 5G, 3D, versions). Strip a real leading list marker with a
regex instead.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
search_files promises case-insensitive substring matching, but _search_files_sync interpolated the query into a LIKE pattern without escaping. SQLite LIKE treats '_' as any single character and '%' as any run, so a query like 'report_v1' matched 'reportXv1.pdf' too — filenames commonly contain '_', so the false positives are routine. Escape the query's LIKE metacharacters and add ESCAPE. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
_dedupe_keep_last documents 'keep the body hit (higher page)', but both branches assigned by_title[title] = chapter unconditionally, so it actually kept the last occurrence in list order. rebuild() iterates layout['pdf_info'] without sorting (unlike the sibling rebuild_from_headers_level, which sorts by page_idx), so when pdf_info is not ascending the TOC hit (lower page) could be listed last and win — giving the chapter the TOC start page and a wrong page range. Compare page_idx and keep the higher one. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
_split_command_args toggled its in-string state with a single-char check (current[-1] != '\\'), so a real closing quote preceded by an escaped backslash (\\") was misread as escaped. The parser stayed in-string, swallowed the following comma separators, and returned the whole remainder as one argument — e.g. Text["a\\", 1, 2] was reported as an unterminated string and its scalar-to-point repair was lost. Track escaping with a flag that flips on each unescaped backslash so an even run closes the string. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PageIndex OSS resolved its indexing model from the active chat LLM, so an OAuth-only chat provider (Codex) blocked indexing entirely. Resolve it from the Task model instead when one is set, and fall back to the chat LLM otherwise, so existing setups behave the same. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
litellm appends /v1/messages itself, so the default Anthropic base URL ending in /v1 made PageIndex OSS indexing 404 for any Anthropic API-key model. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Download one calendar or every visible calendar as an RFC 5545 .ics file, including recurring series, occurrence exceptions, reminders, and a rail action that fetches the file through the existing authenticated API.
Add a tab-separated Anki import from a note page and from the review queue so learners can File -> Import cards into a deck named after the note. Re-importing uses stable card GUIDs and does not include review scheduling.
…d client The new export.ics route needs a regenerated lazy-routing fingerprint. Move the .ics download helper out of the shared calendar transport so the workspace reminder runtime does not add blob-saving code to every layout.
Formatting pass with ruff 0.16.0 so the lint job stops asking for a reformat; no behaviour change: tests/services/memory/test_chunker.py still passes 15/15. Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
pancacake
marked this pull request as ready for review
October 28, 2026 17:40
This was referenced Oct 31, 2026
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.
Merged all 37 reviewed PRs opened during October 22–29 into
dev, retaining their contributor commits. Landing commit:18aaa1169. GitHub confirms all 37 original PRs are merged. The combined branch resolves overlapping chat changes and updates the new features for the current modular package layout.Correctness fixes before landing include interleaved streamed tool-call IDs, Markdown selection grounding that preserves numbers and operators, ICS timezone transitions and recurrence horizons, nested Anki code/math, preservation of legacy review history, idempotent strategy changes, bounded Claude SDK cancellation and transcript resets, and authenticated You.com REST search. Shared SDK message adaptation, shared file-management controls, route indexes, API contracts and translations are reconciled across the batch.
Original PRs: #2125 #2124 #2122 #2121 #2120 #2117 #2115 #2114 #2113 #2112 #2109 #2108 #2103 #2099 #2098 #2095 #2093 #2087 #2086 #2076 #2071 #2069 #2068 #2067 #2066 #2065 #2064 #2063 #2060 #2058 #2050 #2048 #2042 #2029 #2028 #2026 #2025.
Validation: local backend regression suite completed in process-isolated groups (over 11,000 passing tests); 1,306 Node contract tests; all 1,034 rendered unit tests across 203 files; all 64 production-browser audits; TypeScript, ESLint, locale parity, Ruff and architecture checks; production build and all route-size budgets. The chat budget stays at 1,100 KB (measured 1,069 KB). The complete GitHub Actions matrix passed on
308d99b16, including Python 3.11–3.14 and packaging on multiple platforms (run). The final history-only merge includes the author’s rebased #2076; its complete Git tree is identical to that tested commit (c6e80e2b779b6e18689d6c4578fcdeeadd7e6c34).Local environment note: the combined macOS/Conda Python 3.13 invocation stalled in SQLite connect/close after the API tests. The same application tests passed in an isolated process, and all groups completed separately. The Linux CI matrix passed the unsharded suite on all four Python versions. The optional external four-worker browser job was skipped because its target URL is not configured. A late contributor rebase of #2112 was included as well, with its 15 regressions passing.
Runtime limits: Claude SDK adapters require a separately installed, authenticated local Claude CLI; provider behavior was covered with SDK stand-ins, without a paid live request. You.com REST search requires an API key. ICS timezone observances cover finite recurrence ends (rejecting spans above 40 years), with a 15-year future horizon for unbounded recurrence rules.
The integration used a merge commit, preserving every original contributor commit in
devhistory. Five commits with unlinked author emails were re-attributed to their PR authors' verified GitHub account IDs without changing their file trees. Contributors graph visibility still follows GitHub's default-branch and indexing rules;mainremains release-only.#2116 was closed as a duplicate of #2115. #2044 remains open because the QTI/canonical question model needs a separate product and architecture decision.
Reviewed batch disposition (all included commit histories are retained):
mastery_assessis refused as "teaching slice", so the tuto