Commit Graph

2450 Commits

Author SHA1 Message Date
Bingxi Zhao
412fdf4dd0 Merge pull request #1651 from evan188199-tech/codex/feat/learner-assigned-books
feat(learner): expose assigned interactive books
2026-10-04 14:15:04 +08:00
Bingxi Zhao (Frank)
33f2f2b4b0 fix(auth): allow learner knowledge list proxy reads 2026-10-04 14:14:52 +08:00
Bingxi Zhao
f56dfb476e Merge pull request #1599 from dxhome/codex/fix-knowledge-list-proxy
fix: knowledge base listing through proxy
2026-10-04 14:13:31 +08:00
Bingxi Zhao (Frank)
0378bc7810 fix(chat): retry history searches and scope archived restores 2026-10-04 14:13:19 +08:00
Bingxi Zhao
af8ec78467 Merge pull request #1626 from maximilianfeix/fix/mastery-card-answer-kb-seed
fix(mastery): don't pre-search the KB with a quiz card answer
2026-10-04 14:11:12 +08:00
Bingxi Zhao
b3ee1c7ca9 Merge pull request #1682 from evan188199-tech/codex/fix/tutor-latex-selection
fix(session): ground rendered LaTeX selections (#1676)
2026-10-04 14:10:53 +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
befbf68c78 Merge pull request #1666 from evan188199-tech/fix/chat-kb-ref-labels
fix(chat): label sent-message knowledge-base references with catalog names
2026-10-04 14:06:25 +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
Bingxi Zhao
a26bd95d7e Merge pull request #1636 from evan188199-tech/test/mastery-review-trail-scroll-cap
test(mastery): guard the review trail scroll cap (#1566)
2026-10-04 14:04:03 +08:00
Bingxi Zhao
bb1fcdb8e7 Merge pull request #1634 from evan188199-tech/codex/test/subagent-settings-draft
test(settings): persist restored subagent drafts (#1630)
2026-10-04 14:03:15 +08:00
Bingxi Zhao
0cad9ee116 Merge pull request #1663 from larryluozhang/fix/http-random-uuid
fix(learning): mint quiz submission ids via randomUuid on plain HTTP
2026-10-04 14:02:31 +08:00
Bingxi Zhao
d9aa28ef30 Merge pull request #1615 from MohammadHijjawi97/fix/question-bank-counts-skip-recycled
fix: keep recycled sessions out of question bank counts
2026-10-04 14:02:14 +08:00
Bingxi Zhao
8535d86689 Merge pull request #1683 from evan188199-tech/codex/fix/chat-history-search
fix(history): search full conversation transcripts (#1678)
2026-10-04 14:01:26 +08:00
Bingxi Zhao
fe8d4fa01d Merge pull request #1609 from MohammadHijjawi97/fix/session-search-skip-recycled
fix(sessions): keep recycled chats out of history search
2026-10-04 14:01:08 +08:00
Bingxi Zhao
86aea7b4c5 Merge pull request #1635 from evan188199-tech/codex/feat/bilingual-source-pairing
feat(web-source): add bilingual source pairing (#902)
2026-10-04 14:00:11 +08:00
Bingxi Zhao
014da5d388 Merge pull request #1632 from evan188199-tech/fix/crawler-seed-scope
fix(web-source): scope crawl seeds to their parent directory
2026-10-04 13:59:52 +08:00
Bingxi Zhao
37a73cdb6f Merge pull request #1616 from MohammadHijjawi97/fix/web-search-consolidation-max-results
fix: consolidate web search results up to the configured max_results
2026-10-04 13:59:34 +08:00
Bingxi Zhao
240e18cfab Merge pull request #1622 from MohammadHijjawi97/fix/bibtex-quote-inside-braces
fix: keep BibTeX entries with accented author names
2026-10-04 13:59:17 +08:00
Bingxi Zhao
9c74fa8ea3 Merge pull request #1684 from uxidev/add-futureinfra-provider
feat: add FutureInfra as an LLM provider
2026-10-04 13:59:00 +08:00
Bingxi Zhao (Frank)
be4c144171 Merge dev while preserving futureinfra and existing provider contracts 2026-10-04 13:58:31 +08:00
Bingxi Zhao
3e1d4c7764 Merge pull request #1674 from DennyHo0917/feat/api-route-provider
feat: add API Route as an LLM gateway provider
2026-10-04 13:56:18 +08:00
Bingxi Zhao (Frank)
6a236e7b62 Merge dev to retain Requesty and API Route provider registrations 2026-10-04 13:54:09 +08:00
Bingxi Zhao
6395a3d273 Merge pull request #1631 from Thibaultjaigu/add-requesty-provider
feat: add Requesty as an LLM provider
2026-10-04 13:49:50 +08:00
Bingxi Zhao
97b5b7350d Merge pull request #1638 from huiq777/fix/telegram-fenced-code-blocks
fix(partners): render every fenced code block as code in Telegram HTML
2026-10-04 13:49:33 +08:00
Bingxi Zhao
a5a966590f Merge pull request #1637 from huiq777/fix/markdown-outline-fence-length
fix(reading): close a Markdown fence only on a matching bare run
2026-10-04 13:49:15 +08:00
Bingxi Zhao
a5cdc8cae5 Merge pull request #1692 from evan188199-tech/fix/mastery-quiz-answer-shuffle
fix(mastery): shuffle choice options so the correct answer moves (#1691)
2026-10-04 13:48:06 +08:00
Bingxi Zhao (Frank)
e3ae36f5bd fix(doctor): preserve resolved provider configuration in probes 2026-10-04 13:47:14 +08:00
Bingxi Zhao
3991f5f0d4 Merge pull request #1694 from OrdoAbChao7/codex/fix-doctor-probe-budget
fix(cli): respect configured token budget in doctor probe
2026-10-04 13:43:13 +08:00
Bingxi Zhao
995ccde3c3 Merge pull request #1690 from OrdoAbChao7/codex/fix-runtime-log-errors
fix: handle process probe decoding failures and false-positive LLM retries
2026-10-04 13:42:33 +08:00
XZH
df5bc6e86b test(codebuddy): make credential fixture expiry relative to now
test_load_credentials_parses_session wrote a hard-coded expiresAt of
1791055241000 (2026-10-03 15:40:41 UTC) and asserted is_expired() is
False. Once that instant passed the assertion flipped, so the test now
fails on every Python version for every branch.

Derive expiresAt / refreshExpiresAt from time.time() so the fixture
always describes a live session, and assert against the value written.
2026-10-03 20:36:12 -07:00
XZH
af52086ddc fix(mastery): keep quiz prompts from citing option letters
The option shuffle (#1691) re-renders every choice question with a fresh
option order, so a question or explanation that names a letter can
contradict the card the learner is actually looking at. Tell the model
in the en/zh mastery loop prompts that the order it sends is shuffled
before the learner sees the card, and that question and explanation must
reason about the answer's content, never its position.
2026-10-04 10:11:24 +08:00
OrdoAbChao7
6c04a51a7e fix: trust explicit HTTP status in retry classification 2026-10-04 09:51:43 +08:00
XZH
cb00376260 test(mastery): resolve the factually-true label from the shuffled card
The repair-integrity test answered a hardcoded label, so whenever the
shuffle parked the wrong-key body on that same label the grader agreed
with the answer and the fixture flaked (CI Python 3.12 red while 3.11
and 3.13 stayed green on one commit). Read the rendered label of the
true statement off the persisted card instead — the registered wrong
key follows a different body and can never collide with it, so the
assertion is deterministic under any permutation.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-03 13:23:40 -07:00
OrdoAbChao7
57dc901c8a fix(cli): respect configured token budget in doctor probe 2026-10-03 22:58:24 +08:00
XZH
cb4c25db26 fix(mastery): shuffle choice options so the correct answer moves (#1691)
Models register the correct option first almost every time, and the
registration order is exactly what the answer card renders — so quiz
after quiz read A = correct.

Shuffle the options at mastery_quiz registration, after validation and
echo stripping: bodies stay unique, labels are re-issued positionally,
and the expected answer follows its body to the new label, so the
interactive card and the deterministic grader keep comparing the same
representation. Mastery-tools tests now assert through option bodies
instead of registration order.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-03 03:33:54 -07:00
OrdoAbChao7
8b03d2ab56 fix: tolerate process probe decoding errors and avoid spurious LLM retries 2026-10-03 12:38:47 +08:00
uxidev
cce8292ecc feat: add FutureInfra as an LLM provider
Register FutureInfra as an OpenAI-compatible gateway provider (env FUTUREINFRA_API_KEY, base URL https://futureinfra.ai/v1/ai, alias future_infra) with tests mirroring the Cheaper Inference provider.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 00:25:03 +09:00
XZH
885f0a91d9 test(history): cover stale search cancellation 2026-10-01 07:52:30 -07:00
XZH
356c60c3ec fix(history): search full conversation transcripts 2026-10-01 07:42:37 -07:00
XZH
3dad78fcbc fix(session): ground rendered LaTeX selections (#1676) 2026-10-01 03:35:43 -07:00
dennyho0917
8972c8786a feat: add API Route LLM gateway provider 2026-09-30 14:01:30 +08: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
XZH
8079dd8def fix(chat): label sent-message KB references with catalog names
The reference chips under a sent message printed the stored
request-snapshot entry verbatim, so workspace-owned knowledge bases
showed their qualified ref (workspace:<id>:kb:<name>) instead of the
readable name the composer shows for the same selection.

Thread the catalogs' ref-to-name resolution into ChatMessageList/
UserMessage and use it for the Knowledge chip label, keeping the
qualified ref as identity and fallback. Wired from the chat workspace
catalog and Mastery study topic sources, with a regression test for
both the resolved label and the fallback.

Fixes #1647

Co-authored-by: multica-agent <github@multica.ai>
2026-09-29 11:14:09 -07:00
larryluozhang
c764de69ed fix(learning): mint quiz submission ids via randomUuid on plain HTTP
Two quiz submit paths still called crypto.randomUUID() directly, which
exists only in secure contexts. Over plain HTTP (LAN box, VPS without
TLS) the call throws inside the click handler before the request is
staged — the save silently never happens. PracticeSession already mints
ids via lib/random-uuid for exactly this reason; switch the two
remaining call sites to the same helper:

- BooksRoute recordQuizAttempt (book page quiz blocks)
- ReadingExtensionBar submitReadingQuizAnswers (reading quiz answers)
2026-09-29 23:27:49 +08:00
XZH
cc7d1987c9 test(learner): format assigned books regressions 2026-09-29 02:17:28 -07:00
XZH
c90fe4d047 feat(learner): expose assigned interactive books
Closes #1650
2026-09-29 02:14:47 -07:00
Hui
7fdadd76cf fix(partners): render every fenced code block as code in Telegram HTML
The Telegram converter protected code with ```[\w]*\n?([\s\S]*?)```,
so an info string such as c++ left "++" as the first code line, a ~~~
block was formatted as prose ("# setup" lost its hash, __init__ became
bold "init"), and a ```` fence showing a ``` example closed at the inner
fence, leaving an empty <pre> and the example leaking out as text.

Replace fenced blocks line by line first: open on ``` or ~~~ and close
on a bare run of the same character that is at least as long. One-line
```code``` and unclosed fences keep the previous regex handling. The
streaming preview strips fences through the same helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 21:09:54 -04:00
Hui
6dd4542a0b fix(reading): close a Markdown fence only on a matching bare run
split_markdown_by_headings remembered only the fence character, so any
line starting with that character toggled the fence. A ```` fence showing
a ``` example closed at the inner ```, and a "```py" line inside a block
also closed it, so "#" lines inside code became outline sections, or the
rest of the document was swallowed and the outline fell back to flat.

Remember the whole opening run and close only on a bare run of the same
character that is at least as long, as CommonMark does. A backtick line
whose info string contains a backtick no longer opens a fence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 20:44:31 -04:00