Skip to content

Integrate reviewed October PRs with correctness and compatibility fixes - #2126

Merged
pancacake merged 108 commits into
devfrom
codex/pr-landing-oct29
Oct 28, 2026
Merged

pancacake merged 108 commits into
devfrom
codex/pr-landing-oct29

Conversation

@pancacake

@pancacake pancacake commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

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 dev history. 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; main remains 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):

PR Included head Title Decision / integration work
#2125 f06a84e95 fix: 暂存重试复用发生文件名冲突的文档 Accepted; current-dev integration and regression coverage
#2124 9fd2e88e1 fix(web): edited questions pick up the live model and reply language Accepted; current-dev integration and regression coverage
#2122 1eb6b3075 fix: use the current model and reply language when editing or resending Persist resend model selection and current response language; retain retry identity
#2121 586a0d943 fix(web): follow the OS theme by default and add a System option Accepted; current-dev integration and regression coverage
#2120 a3fc1fa95 fix: preserve request identity when retrying unsent messages Accepted; current-dev integration and regression coverage
#2117 8ed838771 fix(llm): keep streamed tool calls without an index apart Resolve interleaved and late streamed tool-call IDs through one accumulator
#2115 02f819038 fix: mask code and math spans in one pass before the CJK emphasis repair Accepted; current-dev integration and regression coverage
#2114 318c05fa7 test: unblock dev's red contracts (stale expectations + chat budget headroom) Synchronize focus test with React; retain original bundle budget
#2113 2f04d33a3 [codex] Add isolated native memory snapshot evaluation Accepted; current-dev integration and regression coverage
#2112 e1c05b852 fix(memory): size chunk windows by the stride overlap leaves Retain overlap-aware chunk sizing and align formatting
#2109 8b7e15df0 feat: add Claude Code provider backed by the Claude Agent SDK Isolate SDK sessions; bound startup/cancellation; share provider adapters
#2108 63a816d91 fix(web): let a scrollbar drag release chat auto-follow while streaming Accepted; current-dev integration and regression coverage
#2103 b53ee768c fix: Mastery Path concept objectives can never pass — every mastery_assess is refused as "teaching slice", so the tuto Accepted; current-dev integration and regression coverage
#2099 7f061c567 feat(notes): export flashcards for Anki Protect nested Anki code and math in one pass
#2098 d7fb17ebf feat(calendar): export calendars as .ics files Correct DST offsets, COUNT horizons and excessive-range errors
#2095 384080d3e fix(web): stop the mastery-goal source picker from trapping the mouse wheel Remove nested source-list scrolling; validate real browser wheel behavior
#2093 66ed91d13 fix(session): allow Little Tutor selections across Markdown markup and tables Project source Markdown without erasing selected numbers/operators
#2087 cf3a333e9 fix(subagent): discover Claude Code models through the official SDK Share isolated SDK model discovery and current modular install docs
#2086 042da74a3 feat(workspace): add a server-side folder picker for project workspaces Align workspace picker docs and locale keys with current dev
#2076 a603fbfe6 feat(search): add google-browser-scraper as a self-hosted Google provider Accepted; current-dev integration and regression coverage
#2071 151458a6b feat(pageindex): index with the Task model when one is configured Accepted; current-dev integration and regression coverage
#2069 b3c235fc1 fix(vision): track escapes when splitting GeoGebra command args Accepted; current-dev integration and regression coverage
#2068 cbed908f6 fix(textbook_struct): keep the higher-page chapter hit when deduping Accepted; current-dev integration and regression coverage
#2067 1e7bc227b fix(storage): escape LIKE wildcards in file library search Accepted; current-dev integration and regression coverage
#2066 2f96d4ed5 fix(rag): strip only list markers from generated queries Accepted; current-dev integration and regression coverage
#2065 3119cf2c5 fix(api): strip control chars from Content-Disposition ASCII fallback Accepted; current-dev integration and regression coverage
#2064 a0460192c fix(visualizers): normalize ids in lifecycle mutators like get() Accepted; current-dev integration and regression coverage
#2063 3008c58ef fix(learning): resolve 'lesson N' by rank, not 0-based order value Accepted; current-dev integration and regression coverage
#2060 22412bf07 fix(plugins): dedupe manifest dependencies by PEP 503 canonical name Accepted; current-dev integration and regression coverage
#2058 7842bafc0 fix(textbook_struct): keep two-char 单元 chapter token intact Accepted; current-dev integration and regression coverage
#2050 507ec7878 feat: manage generated output files Share file controls with correct fingerprint/confirmation behavior
#2048 ff28e0eb1 feat(providers): add Runcrate as an OpenAI-compatible gateway Accepted; current-dev integration and regression coverage
#2042 fdeb28ef9 fix(session): bound PocketBase latest-message reads Accepted; current-dev integration and regression coverage
#2029 9e9cebb40 fix(cron): keep server-local cron times on the wall clock across DST Accepted; current-dev integration and regression coverage
#2028 aa7d54bd7 feat(learning): add mastery review strategies (#1908) Preserve legacy review history; validate intervals strictly; make binding updates idempotent
#2026 8f131c4fd fix(cli): budget reasoning model probes (#1220) Accepted; current-dev integration and regression coverage
#2025 0d26c4b1f feat(search): add You.com provider (#1915) Require API key and use the supported You.com search endpoint

evan188199-tech and others added 30 commits October 22, 2026 13:40
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.
pancacake and others added 22 commits October 29, 2026 01:01
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
pancacake marked this pull request as ready for review October 28, 2026 17:40
@pancacake
pancacake merged commit 18aaa11 into dev Oct 28, 2026
18 checks passed
@pancacake
pancacake deleted the codex/pr-landing-oct29 branch October 28, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.