Commit Graph

2433 Commits

Author SHA1 Message Date
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
dennyho0917
8972c8786a feat: add API Route LLM gateway provider 2026-09-30 14:01:30 +08: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
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
XZH
71265554b6 test(mastery): guard the review trail scroll cap (#1566)
Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 15:35:54 -07:00
XZH
0e260130be feat(web-source): add bilingual source pairing (#902)
Add bilingual page pairing and language variant alignment for web sources:
- Detect page language variants via hreflang alternate links and URL language prefix patterns.
- Record pairing relations in durable SQLite repository and KB web-source metadata.
- Expose pairing relations via GET /api/knowledge-bases/{kb_name}/web-source/{source_id}/pairings and WebSourceInfo.
- Display bilingual pairing indicator in the KB web sources section with localization across en, zh, de, fr, uk.
- Add targeted tests for pairing detection, repository persistence, and API exposure.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 14:58:51 -07:00
XZH
fc8ef2f360 test(settings): persist restored subagent drafts 2026-09-28 14:57:07 -07:00
XZH
482d62a0f6 fix(web-source): scope crawl seeds to their parent directory
Sibling pages of a page seed now count as internal: /intro/home seeds
/intro/*, so nav-relative links on docs sites are no longer dropped.
A root URL still scopes the whole host, and a trailing-slash seed stays
scoped to its own directory.

Derived with pure URL-path rules instead of pathlib: Path("/intro/")
.parent is "/", which would silently widen a section seed to the entire
host, and WindowsPath renders "\" separators that break prefix matching.

Adds regression tests for sibling scope, root scope, cross-directory
rejection, and directory-index scope.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 14:45:39 -07:00
Thibault Jaigu
21de8bf0c8 test: cover Requesty provider registry and runtime resolution 2026-09-28 20:20:13 +01:00
Thibault Jaigu
cf75b1047e feat: add Requesty as an LLM provider 2026-09-28 20:20:13 +01:00
Mohammad Hijjawi
ec79b40996 fix: keep BibTeX entries with accented author names
_scan_entry treated every double quote as the start of a quoted value,
even inside a braced one. An accent such as {\"u} in
author = {M{\"u}ller, Hans} therefore opened a "quoted" run that swallowed
the entry's closing brace, and the whole entry was silently dropped from
the converted bibliography. Only treat a double quote as a delimiter at
the entry's top level, as BibTeX does.
2026-09-28 13:53:27 +01: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
Mohammad Hijjawi
ef3742daf2 fix: consolidate web search results up to the configured max_results
web_search() fetched max_results results from the provider but built
the AnswerConsolidator with its default max_results=5. For providers
without their own answer, the template and LLM consolidation kept only
the first five results, so a search profile set to 6-10 results still
gave the model five sources while the footer reported all of them.

Pass the resolved max_results to the consolidator.
2026-09-28 09:48:40 +01:00
Mohammad Hijjawi
dbdecf114b fix: keep recycled sessions out of question bank counts
The question bank list hides entries whose session is in the recycle
bin, but question_bank_stats, list_question_bank_materials and
list_categories still counted them. The filter chips, material chips and
category badges then reported entries the list could not show.

Share one NOT EXISTS fragment between the list filter and the three
count queries so they apply the same rule.
2026-09-28 09:47:31 +01:00
Mohammad Hijjawi
f3e2407e48 fix(sessions): keep recycled chats out of history search
Moving a chat to the recycle bin hides it from the session list, but
history search still matched it: the SQLite search condition and the
PocketBase search filter only excluded imported sessions, not soft-deleted
ones. Search results (and the total used for paging) therefore included
chats the user had already deleted.

Exclude rows with deleted_at set in both stores, matching list_sessions.
A restored chat becomes searchable again.
2026-09-27 11:12:56 +01:00
Bingxi Zhao (Frank)
ef2d9e5c3c release: v1.6.12
Document workspace knowledge-base moves, connected Kiwix archives, source
figures, and the Task Board in the release notes and README. Sync all eleven
README translations and the version badge. Fix lint-only type annotations and
a duplicate French locale key found by the release gate.

See assets/releases/ver1-6-12.md for the full release notes.
v1.6.12
2026-09-27 13:34:05 +08:00
Bingxi Zhao (Frank)
55b1b14769 test(update): isolate positive flows from runner systemd service 2026-09-27 11:38:29 +08:00
Bingxi Zhao (Frank)
ffe74e2fbc fix(chat): handle direct RAG kwargs and isolate tool settings test 2026-09-27 11:17:47 +08:00