Commit Graph

449 Commits

Author SHA1 Message Date
evan188199-tech
61a2cad184 feat(visualize): add Mermaid mindmap visualizer (#1295)
Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:24:02 +08:00
Bingxi Zhao (Frank)
f07029cfcf release: v1.6.13
Ship the reading, listening, question-bank, parsing, and provider updates
summarized in assets/releases/ver1-6-13.md.

Make speech timeouts configurable, report actionable synthesis failures,
and keep chat attachments discoverable in their selected workspace while
preserving earlier uploads and URLs. Keep reply playback cancellation and
single-audio ownership intact.

Sync README prose and all eleven translations, update the stable install
note, and archive release notes older than one week. Repair stale reading
test fixtures and spawned test imports, and clear the Partner type error.

Validation: 9252 Python tests and 8 subtests passed (28 skipped); 518 web
unit tests, 1253 Node tests, and 62 browser audits passed. Pre-commit, ruff,
typecheck, contracts, architecture, i18n, production build, route budgets,
and the docs build passed.
2026-10-04 21:35:00 +08:00
Bingxi Zhao (Frank)
8ccca47bac fix(reading): track EPUB text progress within chapters (#1673) 2026-10-04 18:20:29 +08:00
Bingxi Zhao (Frank)
ed3f9e9b4e fix(chat): distinguish unconfirmed replies from expired questions (#1648) 2026-10-04 18:14:40 +08:00
Bingxi Zhao
c30449895e Merge pull request #1661 from ChinskiKaczynski/feat/polish-language
feat: add Polish localization
2026-10-04 15:13:29 +08:00
Bingxi Zhao
90d2d06366 Merge pull request #1655 from evan188199-tech/codex/feat/reading-natural-tts
feat(reading): add material-scoped natural read-aloud audio (#1654)
2026-10-04 15:04:37 +08:00
Bingxi Zhao (Frank)
2700105923 Merge dev into PR #1664 and preserve integrated behavior 2026-10-04 14:41:40 +08:00
Bingxi Zhao (Frank)
6327c41d55 fix(settings): match GLM reasoning choices to the model contract 2026-10-04 14:37:31 +08:00
Bingxi Zhao
6a734e356c Merge pull request #1653 from yizhang-dream/feat/glm-reasoning-effort
feat(web): offer reasoning effort levels for GLM models under openai binding
2026-10-04 14:35:20 +08:00
Bingxi Zhao (Frank)
5cff0b3e90 fix(chat): compute continuation depths without recursion 2026-10-04 14:35:08 +08:00
Bingxi Zhao
440eed2dac Merge pull request #1619 from evan188199-tech/codex/fix/chat-long-session-branching
fix(chat): preserve long-session branch path (#1614)
2026-10-04 14:33:49 +08:00
Bingxi Zhao
df724000ca Merge pull request #1558 from AoHanBei/feat/1512-group-chat-export
feat(partners): export group conversations as Markdown
2026-10-04 14:32:22 +08:00
Bingxi Zhao (Frank)
c160ad5cf7 Merge dev into PR #1645 and preserve integrated behavior 2026-10-04 14:26:07 +08:00
Bingxi Zhao (Frank)
dfeb2fb4f3 Merge dev into PR #1657 and preserve integrated behavior 2026-10-04 14:22:45 +08:00
Bingxi Zhao
891493b7b1 Merge pull request #1686 from evan188199-tech/codex/fix/epub-toc-anchors
fix(reading): preserve EPUB outline anchors (#1673)
2026-10-04 14:20:41 +08:00
Bingxi Zhao
952fbf28d8 Merge pull request #1668 from evan188199-tech/fix/ask-user-submit-retry-budget
fix(web): keep submits alive across the full reconnect ladder (#1648)
2026-10-04 14:09:36 +08:00
Bingxi Zhao
cc015d3eaf Merge pull request #1627 from maximilianfeix/fix/multiline-display-math-fences
fix(web): render display math whose $$ hug a multi-line formula
2026-10-04 14:08:06 +08:00
Bingxi Zhao
ef7b700261 Merge pull request #1621 from MohammadHijjawi97/fix/reading-save-to-notebook-route
fix: post reading workspace "Save to notebook" to the backend route
2026-10-04 14:05:02 +08:00
XZH
95e913a787 fix(reading): preserve EPUB outline anchors 2026-10-01 17:26:44 -07:00
XZH
356c60c3ec fix(history): search full conversation transcripts 2026-10-01 07:42:37 -07:00
XZH
80921f24ae fix(web): keep submits alive across the full reconnect ladder (#1648)
The outbound submit gates waited only 10 x 200ms (2s) for the WebSocket
to connect, while the transport reconnect ladder waits up to 8s per
rung. A Submit clicked mid-reconnect therefore gave up before the
socket could come back and reported a false server-side expiry while
the parked turn still held the session lease.

Move the shared budget into web/lib/send-retry.ts (60 x 200ms = 12s,
above the 8s rung cap plus jitter) and use it at all four gates:
QuizFollowupContext, ChatStateAdapter, BookChatPanel and the whisper
page. A guard test pins the budget above the worst-case reconnect
rung, and the failed-submission recovery spec now derives its fake
timer budget from the same constants.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-29 14:41:54 -07:00
ZyPulse
cbb742a141 feat(parsing): select an independent image description model 2026-09-30 00:01:29 +08:00
ChinskiKaczynski
f446ac6715 fix: complete Polish language integration 2026-09-29 16:33:11 +02:00
XZH
cd474bc824 feat(reading): add server-owned quiz star rewards (#1656) 2026-09-29 06:17:54 -07:00
XZH
eeb360f66a feat(reading): add material-scoped natural read-aloud audio (#1654) 2026-09-29 05:56:41 -07:00
flower-moon
d610f4f4d1 feat(web): offer reasoning effort levels for GLM models under openai binding
GLM models served via an OpenAI-compatible binding fell through the
model-family allowlist in tableReasoningEffortOptions, so the Reasoning
Effort selector stayed hidden for them. Recognize "glm" in the
OPENAI_PROVIDERS branch and offer minimal/low/medium/high.

"none" is deliberately excluded: it maps to "omit the parameter", and
GLM's endpoint keeps server-side thinking fully on when the parameter
is omitted - minimal is the actual lightest level. All four levels were
verified against the Zhipu coding endpoint (reasoning output length
increases monotonically minimal -> high).
2026-09-29 17:24:41 +08:00
AoHanBei
75cb0edf25 Merge remote-tracking branch 'origin/dev' into feat/1512-group-chat-export
# Conflicts:
#	web/app/(workspace)/partners/groups/[groupId]/page.tsx
#	web/components/partners/group/PartnerGroupChat.tsx
2026-09-29 12:29:49 +08:00
XZH
7e45ab851e feat(video-learning): add timestamped watching marks
Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 21:27:04 -07:00
Maxi
a2eb9acd36 fix(web): render display math whose $$ hug a multi-line formula (#1623)
processMarkdownContent only moved $$ onto their own lines when the whole
block fit on one line. $$a \\\\ ... $$ spread over several lines kept its
fences glued to the formula and remark-math left it as text. Now a line
that opens with a lone $$ is matched to the next line ending in $$ and both
fences are put on their own lines; blank lines stop the search.
2026-09-28 17:28:22 +02:00
Mohammad Hijjawi
151a7292fe fix: post reading workspace "Save to notebook" to the backend route
sendReadingToNotebook posted to /api/reading/workspaces/{id}/notebooks,
but the backend only registers POST /api/reading/workspaces/{id}/notebook
(capture_reading_to_notebook), so saving a reading workspace to a notebook
always failed with 404 Not Found. Point the client at the real route and add
a test that checks the path against the generated OpenAPI contract.
2026-09-28 13:50:05 +01:00
XZH
0b9de7eb40 fix(chat): preserve long-session branch path 2026-09-28 02:41:01 -07:00
Bingxi Zhao (Frank)
b0385a315d feat(knowledge): choose storage and move individual bases 2026-09-27 11:04:33 +08:00
Bingxi Zhao (Frank)
64c2316093 Add connected Kiwix ZIM knowledge sources 2026-09-27 11:01:04 +08:00
Bingxi Zhao (Frank)
5b4c15afec fix(mastery): show teach-first guidance and localized next step (#1527) 2026-09-27 10:29:17 +08:00
Bingxi Zhao (Frank)
3a0ed2b560 fix(turns): surface and retry orphaned worker loss (#1570) 2026-09-27 04:55:15 +08:00
Bingxi Zhao (Frank)
348176291e fix(web): preserve failed chat submissions across retries and storage races 2026-09-27 04:14:19 +08:00
Bingxi Zhao (Frank)
68a9de1255 Merge remote-tracking branch 'origin/dev' into codex/pr1602-fix 2026-09-27 03:27:16 +08:00
Bingxi Zhao (Frank)
0e6761bc35 fix(web): recover every unaccepted chat submission 2026-09-27 03:27:08 +08:00
Bingxi Zhao (Frank)
0a116bce22 fix(web): preserve unsent repeated text and quota fallback 2026-09-27 03:03:11 +08:00
Bingxi Zhao (Frank)
038b6513ed fix(auth): surface teacher and student roles in web UI 2026-09-27 03:02:21 +08:00
Bingxi Zhao (Frank)
1ee39c4e9e Merge remote-tracking branch 'origin/dev' into codex/pr1602-fix 2026-09-27 02:55:36 +08:00
Bingxi Zhao
848037549c Merge pull request #1580 from krxi/codex/task-board
feat: add a workspace-scoped task board
2026-09-27 02:35:23 +08:00
XZH
ae0daa9a48 fix(web): keep failed chat submissions recoverable and retryable (#1594)
A submission that never reached the server looked like an ordinary sent
message, its connection error rendered as if it were an assistant reply,
and both vanished after a reload because nothing was persisted.

- Mark the optimistic user row "Not sent" when the transport never
  connected; drop the empty assistant placeholder so the failure cannot
  read as an errored reply. The connection error now surfaces in a
  banner next to the composer with a Resend action.
- Persist the last unproven submission of each session locally and
  restore it after a reload as an unsent, retryable row. The record is
  cleared by any evidence the server took the turn over (done, terminal
  error, cancel), or when the server transcript already holds the text.
- Server-accepted-but-disconnected turns keep the existing reconcile-
  before-resend path; drafts can now retry without a server session.
2026-09-26 06:35:23 -07:00
Philipp Eisbacher
9b139a772f feat(i18n): add German as a full interface language
Adds `de` alongside en/zh/fr/uk, following the seams the Ukrainian locale
established: the interface-language normalizers (settings + launcher), the
Settings language list, APP_LANGUAGES / normalizeLanguage, the lazy bundle
loader, the date locale, the CLI banner labels, the quiz-judge prompt and
the i18n audit's required locales. German already existed as a reply
language; this makes it selectable for the UI as well.

`web/locales/de/app.json` covers all 5200 English keys (audit: 3850/3850
used keys, strict). `language.german` is added to every catalog.

Tests: `tests/i18n/test_german_locale.py` pins each seam, and
`web/tests/german-locale-quality.test.ts` guards terminology (informal
"du", one term per concept, no context-free machine translations such as
"Lappen" for RAG). Three existing tests used `de` as their example of an
unsupported language; they now use `xx`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 22:00:58 +02:00
krxi
2eb2f2de96 feat: add a workspace-scoped task board 2026-09-24 16:10:03 +03:00
Bingxi Zhao (Frank)
a053fecf6e release: v1.6.11
The interface ships in French and Ukrainian alongside English and
Chinese, and /language pins a reply language for one conversation.
Immersive reading organizes collections as colored folders, adds a
fullscreen learning mode, and turns Explain / Translate / Guide me on a
selection into ordinary messages in the reading chat; "Quiz me on this
page" runs one quiz turn without changing the conversation's mode, which
retires the reading-openers endpoint and its task model. Images embedded
in DOCX, PPTX and PDF are extracted in place and reach vision models.

Office files preview as paged PDFs through LibreOffice (now in the Docker
image), falling back to the in-browser renderers without it. Web sources
re-sync on a durable schedule, linked folders sync on demand, .bib files
index, and a zotero_search tool queries Zotero. Settings gains Learning
progress and credential-free presets; admins import users from CSV;
split deployments can hand a session to a public device. Grok CLI joins
the subagents, Unifically the providers, ChatGPT exports the importers.

Gate cleanup: mypy/bandit findings in the new launcher, audio-overview,
web-source, reading-store and textbook modules; the task-model copy test
follows the retired reading_openers kind.

See assets/releases/ver1-6-11.md for the full notes, and the README
Releases row plus its eleven translations.
2026-09-24 09:59:56 +08:00
Bingxi Zhao (Frank)
53436f8190 feat(reading): collections as colored folders; rework reader interactions
Collections vs workspaces: a workspace holds many collections, and a
collection's files and reading conversations live in the workspace it
was created in. The library now shows collections as folders grouped
under their workspace, and creating one asks which workspace it goes
into.

- Folder page at /learning/reading/folders/[folderId]: breadcrumb,
  files, the collection's conversations, and "Start reading" that opens
  the whole folder in the reader. The reader's back link returns to it.
- Collections carry a user-picked color (new `color` column, migrated);
  tones are --folder-* tokens with dark variants.
- One shared "New collection" / "Edit collection" dialog with consistent
  type sizes.
- Selection popover gains AI actions; results land as cards at the foot
  of the companion. Read-aloud is a single header toggle.
- The three ⋯ menus (collection, document, conversation) merge into one.
- Outline toggle moves to the left and starts closed; navigator has
  Outline / Annotations tabs.
- Reading conversations live in the main sidebar (with a page-shaped idle
  mark) instead of a history dropdown in the companion.
- Fix sidebar rows never showing a selected state
  (bg-[var(--background)]/60 compiled to nothing).
- Composer floats over the conversation (no divider, bottom fade); the
  toolbar wraps by content instead of splitting under 420px.
2026-09-23 18:59:17 +08:00
Bingxi Zhao (Frank)
0558356d14 Add opt-in cross-browser Partner conversation continuity 2026-09-23 13:34:08 +08:00
Bingxi Zhao (Frank)
f363e5f119 fix(chat): persist explicit reply language per conversation 2026-09-23 13:07:39 +08:00
Bingxi Zhao (Frank)
55490af65e Merge issue fixes into PR synthesis
Combine knowledge bootstrap coverage and preserve later progress-isolation tests, native notebook tooltip, and locale-aware tool-hint fallback. Regenerate frontend contracts and align test fixtures with merged APIs.
2026-09-23 12:06:19 +08:00