Commit Graph

230 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
Remove course pages, APIs and the course_study capability. Add anchored note
threads and reviewed learning-block generation, queued and withdrawable chat
messages, quote attachments, side chats, and the calendar/favorites/navigation
updates.

Keep preview's existing backend architecture. Wire the new features through
its Python application and existing chat engine, retain legacy selected-text
requests, persist mid-turn messages in replay, and restore note context when
regenerating. Leave stored user data intact.

Validate frontend contracts, dependency boundaries, types, 1290 node tests,
840 rendered tests, lint, localization and the production build. Exercise
session/notes/API regressions, 53 chat-engine tests and 20 Python/native
integration tests with isolated runtime data.
2026-10-26 22:13:34 +08:00
Bingxi Zhao (Frank)
a31d82624c release: v1.6.15
Document Guided Learning improvements, chat and parsing recovery, retrieval comparisons, and native Gemini speech in assets/releases/ver1-6-15.md.

Synchronize README prose and 11 translations, archive older release notes, and bump the version. Resolve release-gate typing diagnostics, a prompt-only Bandit false positive, and SVG formatting.
2026-10-19 04:12:56 +08:00
Bingxi Zhao (Frank)
0aa12fdfb6 fix(mastery): explain failed source repair in the session language (#1902) 2026-10-19 03:44:57 +08:00
Bingxi Zhao (Frank)
4fe1b5b24a fix(mastery): finish bounded memory and count preparation usage (#1920, #1926) 2026-10-19 03:44:51 +08:00
Bingxi Zhao (Frank)
c49d130d5c fix(mastery): stream localized lesson preparation progress (#1902) 2026-10-19 03:29:21 +08:00
Bingxi Zhao (Frank)
784de5fa6d fix: align integrated mastery catalog and regression fixtures 2026-10-19 01:17:50 +08:00
Bingxi Zhao (Frank)
8b73efbaeb Merge PR #1958: stabilize cached prefixes with bounded sources and complete summary accounting 2026-10-19 00:59:30 +08:00
Bingxi Zhao (Frank)
1497994c9f Merge PR #1938: bound tutoring history and retain exact recall when condensation fails 2026-10-19 00:57:48 +08:00
Bingxi Zhao (Frank)
9aae961412 Merge PR #1957: separate private source evidence from explicit public presentation 2026-10-19 00:53:44 +08:00
Bingxi Zhao (Frank)
3196b6d792 Merge PR #1954: prepare source evidence through a generic capability prerequisite contract 2026-10-19 00:48:43 +08:00
Bingxi Zhao (Frank)
0fd8dc8384 Merge PR #1953: source-bound assessment with portable lexical page lookup 2026-10-19 00:43:33 +08:00
Bingxi Zhao (Frank)
59cdd81170 Merge PR #1943: preserve grouped questions through reviewed outline revisions 2026-10-19 00:40:44 +08:00
Bingxi Zhao (Frank)
ba899ffc68 Merge PR #1939: review outline changes before atomic commit 2026-10-19 00:38:00 +08:00
Bingxi Zhao (Frank)
61719b18de Merge PR #1952: verify teaching delivery alongside durable feedback 2026-10-19 00:36:32 +08:00
Bingxi Zhao (Frank)
9ca096b456 fix(mastery): localize learner profile persistence notices 2026-10-19 00:35:33 +08:00
Bingxi Zhao
f976208e2c Merge pull request #1936 from yepyhun/contrib/mastery-teaching-guide
feat(mastery): retain scoped teaching feedback and strategy outcomes
2026-10-19 00:35:25 +08:00
Bingxi Zhao (Frank)
3a3cb277c1 fix(runtime): localize incomplete turn notices 2026-10-19 00:33:38 +08:00
Bingxi Zhao
29545b06f7 Merge pull request #1898 from georgelichen/fix/reading-locator-citations-backtick-split
fix(reading): unwrap backticked locator citations and split multi-locator links
2026-10-19 00:28:13 +08:00
Bingxi Zhao
078435778c Merge pull request #1854 from dajiaohuang/fix/obsidian-backlink-paths
fix(obsidian): resolve backlinks using canonical note paths
2026-10-19 00:23:37 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions.

Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo.

Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
2026-10-17 23:15:23 +08:00
wangkai
a40c6469fb fix(solve): keep the remaining plan in view after each step fold
solve_finish_step folds the finished step's tool chatter, and the same cut
dropped the solve_plan result and the step's own `next` pointer, leaving the
model only "[S1] ... — done.". Pass SolveSession.progress_text() as the
checkpoint state so every fold keeps the current plan (done / next / todo) in
view, including after a replan, and the persisted model turn carries it into
follow-up turns.

Closes #1968
2026-10-15 13:00:06 +08:00
zane-i
c04598bfae perf(explore-context): read the source ahead of the per-turn question
The exploring pre-pass re-read the same attached source on every turn -
39,627 characters, byte-identical across six turns - but put the
per-turn question first in the user message, so the longest shared
prefix with the previous request ended a handful of tokens in and the
whole re-read missed cache. That call ran 24,778 prompt tokens for
1,024 cached (4.1%), which is most of the misses in a turn.

Split the message the way the answer loop already splits everything
stable from everything per-turn: mode, manifest and the preloaded
source text go ahead of it and the question becomes the last message,
so the repeatable part is a byte-identical prefix across turns.

The preload stays capped (two sources, 120,000 characters) so a wide
manifest cannot spend the budget on its own; the document digest is
still the primary evidence path.

After both commits, on the same session: the exploration call runs
24,566 prompt tokens for 24,448 cached (99.5%), every call in the turn
reports first_change=append, and the turn reaches 94.0% cached, up
from 54.7%.
2026-10-13 23:47:21 +08:00
yepyhun
b8fccb92b2 fix(mastery): validate visual hints and select original source excerpts 2026-10-13 17:24:37 +02:00
yepyhun
755686264d fix(mastery): separate source inspection from assessment delivery 2026-10-13 13:49:35 +02:00
yepyhun
b081d97f64 fix(mastery): defer failed profile notice until response finish 2026-10-13 13:39:42 +02:00
yepyhun
3175b812e2 fix(mastery): make source delivery demand-driven and preserve partial teaching 2026-10-13 12:33:44 +02:00
yepyhun
a15c14bbf9 fix(mastery): describe concept cards as practice with separate gates 2026-10-13 12:31:39 +02:00
yepyhun
ccac56eec1 fix(mastery): bind semantic assessment to verified question evidence 2026-10-13 12:21:04 +02:00
yepyhun
36fc20196d perf(mastery): project working brief and defer outline schemas 2026-10-13 12:05:42 +02:00
yepyhun
1a2cdb5a25 fix(mastery): preserve profile fields and bound save recovery 2026-10-13 12:05:23 +02:00
yepyhun
6532c8c2a7 fix(mastery): resume pending cards and guard Markdown assessments 2026-10-13 10:18:07 +02:00
yepyhun
539bd80f06 fix(mastery): align memory accounting with routed image replay
Forward the optional route into native replay and measure duplicate-image projection in final accounting without rewriting retained history. GREEN: 20 focused tests pass in clean PR1938 worktree; corresponding local suites pass 22 tests.
2026-10-13 09:06:52 +02:00
yepyhun
cc079776c4 fix(mastery): bind teaching records to visible delivered explanation 2026-10-13 08:29:46 +02:00
yepyhun
9cfa5cb8fd fix(mastery): retain incremental grouped replies and partial feedback 2026-10-13 08:24:38 +02:00
yepyhun
f4b0197b7f fix(mastery): expose bounded actionable teaching focus 2026-10-13 08:24:00 +02:00
yepyhun
982615faaf feat(mastery): reorder existing modules through reviewed commits 2026-10-13 00:34:59 +02:00
yepyhun
c3301c0055 feat(mastery): support independently graded question groups 2026-10-12 21:03:14 +02:00
yepyhun
e6853db336 feat(mastery): retain scoped teaching feedback with learner evidence 2026-10-12 13:12:50 +02:00
yepyhun
c510b13363 feat(mastery): add reviewed outline previews and retry-safe commits 2026-10-12 11:23:32 +02:00
yepyhun
499e6bc75f feat(mastery): bound tutoring memory with exact branch recall 2026-10-12 11:16:34 +02:00
XZH
cf37be0f5e fix(mastery): apply coordinated multi-module revisions atomically (#1929)
mastery_revise accepted one module per call, so a coordinated outline
adjustment across several modules cost one call, one transaction and one
full-outline snapshot echo per module. Add a modules=[{module_id,
rewrite, add, remove}, ...] form that validates every entry against a
shared id space, refuses the whole request on any rejection (unknown
ids, mastered waypoints, cross-module cycles), and commits all modules
in a single revision with one result payload. The single-module form
keeps its exact contract and payload shape.
2026-10-11 16:38:54 -07:00
李晨
2a68d2405f fix(reading): unwrap backticked locator citations and split multi-locator links
- Unwrap standalone locator citations enclosed in backticks (e.g. `[p.12]`)
  originating from prompt formatting artifacts so they linkify cleanly while
  preserving inline code spans
- Split comma-separated multi-locator citations (e.g. [p.12, 17]) into
  independent clickable links for precise per-page navigation
- Clarify reading prompt instructions in zh/en to omit backticks around citations
- Add unit tests for backticked citations and split multi-locator links
2026-10-08 21:21:05 +08:00
dajiaohuang
f91ab621aa Merge commit '6cf793bd868ba5ecbe64722936d4be8fab5a01df' into fix/obsidian-backlink-paths 2026-10-08 12:35:41 +08:00
dajiaohuang
dc2b50355a fix(obsidian): resolve qualified backlink targets 2026-10-08 12:35:41 +08:00
Bingxi Zhao (Frank)
6cf793bd86 release: v1.6.14
Ship original-source visual practice, recoverable indexing, unified video
Reading, scientific research tools, managed plugins, and a learning journal
as summarized in assets/releases/ver1-6-14.md.

Improve provider setup and protocol-aware endpoints. Restore missing
localized setup and Ukrainian UI text, keep plugin loading in the plugin
layer, harden research XML parsing, and repair isolated test fixtures and
type-checking errors found by the release gate.

Sync README prose and all eleven translations, bump the package version,
and update the stable release announcement.

Validation: 10180 Python tests and 8 subtests passed (28 skipped); 1303
Node tests passed on Node 22; 24 provider UI tests passed. All pre-commit
hooks, ruff, translation checks, documentation checks, and docs build passed.
2026-10-08 11:34:42 +08:00
Bingxi Zhao (Frank)
7885daa98a feat(plugins): add reviewed managed lifecycle and revocable runtime gates (#1307)
Adapt the Phase 1 foundation from PR #1309 and complete scoped API lifecycle, pre-import approval, artifact-bound revocation, recovery, bounded workers and frontend isolation. Keep the stronger ecosystem roadmap explicit in the RFC.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 08:50:05 +08:00
Bingxi Zhao (Frank)
2350ea2dba feat(mastery): complete source-grounded visual practice and evidence (#1611)
Bind original visual sources and keys to supported tasks; verify accepted model pixels, preserve cues/assistance and canonical attempts, keep uncertainty ungraded, expose challenge/repair, and separate required visual evidence from generic text mastery.
2026-10-08 05:25:05 +08:00
Bingxi Zhao (Frank)
8986c31580 feat(reading): complete Watching convergence with safe legacy migration (#1378)
Adapted the migration foundation from PR #1384 while preserving current workspace, caption and turn-admission safeguards.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 02:48:50 +08:00