Commit Graph

3584 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
ea17bc4147 Merge #2307 from rudycelekli 2026-11-06 01:56:22 +08:00
Bingxi Zhao (Frank)
c5c15c90eb Merge #2299 from Antonio-Faure 2026-11-06 01:56:22 +08:00
Bingxi Zhao (Frank)
f626cf069b Merge #2298 from Antonio-Faure 2026-11-06 01:56:22 +08:00
Bingxi Zhao (Frank)
b680f1d208 Merge #2296 from tanishqbaweja 2026-11-06 01:56:22 +08:00
Bingxi Zhao (Frank)
d362ecef2d Merge #2288 from remote-controlled-man 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
22277b10b9 Merge #2287 from erhanurgun 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
ae0fd1c999 Merge #2285 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
0695809be2 Merge #2284 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
864bd40c59 Merge #2283 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
e588f3a834 Merge #2282 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
de6bbfca0e Merge #2278 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
cd22516f3c Merge #2277 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
d47cd88b13 Merge #2276 from Plastic-time 2026-11-06 01:56:21 +08:00
Bingxi Zhao (Frank)
fcd5b62e05 Merge #2274 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
0d7023c338 Merge #2273 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
46624fa4a8 Merge #2270 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
b819aa7b1b Merge #2269 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
27a2ab5ce0 Merge #2268 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
fb459b2aee Merge #2267 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
923e127a43 Merge #2262 from AleFlyX 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
bb2e1d5b58 Merge #2397 from Antonio-Faure 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
2bdf2e5bcd Merge #2272 from Plastic-time 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
b201d1af31 Merge #2442 from yuleihaotong 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
1c709964a8 Merge #2266 from cgycorey 2026-11-06 01:56:20 +08:00
Bingxi Zhao (Frank)
c22c668cc7 docs: lead the contributing guide with maintainer recruiting and add a Chinese version
Move the join-the-team section to the top of CONTRIBUTING.md, add
CONTRIBUTING_CN.md with a language switch in both files, and point the
README contribution note at the recruiting section.
2026-11-06 01:44:41 +08:00
Bingxi Zhao (Frank)
bfd0788224 docs: rewrite the contributing guide and add triager and maintainer roles
Replace the outdated guide with a shorter one: where to file each kind of
report, pull request expectations, a minimal setup that defers to
docs-for-dev, and the two project roles with their GitHub permissions,
rules and how to join. Drop the stale multi-user branch, product-internal
security notes and the core.hooksPath step that stops pre-commit install.
2026-11-06 01:35:33 +08:00
Bingxi Zhao (Frank)
0eabacceb9 docs: use sentence case on the badge labels and tighten padding 2026-11-05 19:29:34 +08:00
Bingxi Zhao (Frank)
45ac0b4199 docs: move trending badges up and put downloads with docs in one row
Give the Intel and Windows download badges their own colors (graphite and Windows blue).
2026-11-05 19:27:28 +08:00
Bingxi Zhao (Frank)
9e1dfc7390 docs: round the README badge corners 2026-11-05 19:21:18 +08:00
Bingxi Zhao (Frank)
f79a7d7621 docs: tidy README header badges
Color the Intel download badge differently, merge the shields into one row without Python and Next.js, drop the Collaborate badge, and add a branded Docs badge below the shields.
2026-11-05 19:06:36 +08:00
Bingxi Zhao (Frank)
7d14a97346 docs: redesign desktop download badges
Split macOS into Apple Silicon and Intel badges, match the header button style, and drop the extra caption line.
2026-11-05 19:01:32 +08:00
Bingxi Zhao (Frank)
fe385a8e54 docs: add direct-download badges for the desktop apps
Add macOS and Windows download badges (light/dark SVGs) to the README
header, linking to releases/latest/download/<stable name>. The desktop
release workflow now also uploads copies of each installer without the
version in the file name, so those links always resolve to the newest
build once the next release is published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 18:55:45 +08:00
yuleihaotong
9417f76f43 test(web_source): make the lease-renewal test assert renewal, not scheduling speed
`test_scheduler_renews_lease_during_a_long_sync` ran a 200 ms lease with a 40 ms
renewal and then compared the deadline against `time.time()`. On the Python 3.12
runner the event loop was delayed past the deadline and the assertion read
`1793772763914 > 1793772763951` — 37 ms short. The test was really asserting that
the runner schedules an asyncio task within 200 ms, which it does not promise.

The lease is now 5 s with a renewal every 0.5 s, and the check runs after 1.2 s
with the database left alone in between. That still proves the lease is extended
while a sync is running, and it cannot lose the race.

Reproduction before the change: 0/20 failures idle, 1/10 with four busy loops on a
2-vCPU box. After: 0/20 idle and 0/20 under the same load.

Found while debugging, deliberately not changed here: `_renew_lease()` does not
catch exceptions from `renew_lease()`, and the task's exception is swallowed by
`asyncio.gather(..., return_exceptions=True)` in `_run_job`'s `finally`. One
transient SQLite error therefore ends the renewal loop silently, and the sync
loses its lease with nothing logged. That deserves its own change and its own
test.
2026-11-05 01:55:44 +00:00
Antonio-Faure
db30952722 ci: cancel superseded runs for the same PR or branch 2026-11-02 23:09:54 +01:00
Antonio-Faure
a7703bd3c7 ci: cancel superseded runs for the same PR or branch 2026-11-02 23:04:51 +01:00
Rudy Celekli
b71c2b7e3a fix(rag): count LightRAG docs from the native workspace store
The LightRAG index probe reported doc_count=None for every native-layout
index. _lightrag_doc_count read kv_store_doc_status.json from the version
root, but native LightRAG keeps its KV stores under a deeptutor_<hash>
workspace subdir; every other reader (has_output, failure_summary,
document_error) resolves that subdir via storage._store_root first.

Move the count into the storage module as a public doc_count() that
resolves the store root the same way, and have index_probe delegate to it.
A ready native index now reports its real count instead of None, so the KB
version list, last_indexed_count and linked-folder probe stop falling back
to a raw-file guess.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 09:10:24 -05:00
Antonio-Faure
5acbfcb014 style: format data migration test 2026-11-01 10:10:00 +01:00
Antonio-Faure
48a9826a52 style: format data migration test 2026-11-01 10:09:58 +01:00
Antonio-Faure
e0f195bd92 test: move knowledge-base detach coverage to its own file 2026-11-01 10:00:59 +01:00
Antonio-Faure
a24660da38 test: move turn-event transfer coverage to its own file 2026-11-01 10:00:57 +01:00
Antonio-Faure
b4b1564200 style: format dependency closure test 2026-11-01 09:49:17 +01:00
Antonio-Faure
d6ecffd74e style: format workspace transfer test 2026-11-01 09:49:07 +01:00
Antonio-Faure
bc680bd762 fix(workspace): keep an explicit knowledge-base detach detached 2026-11-01 09:39:18 +01:00
Antonio-Faure
8a89f68f82 fix(workspace): renumber turn-event ids when moving a conversation 2026-11-01 09:39:15 +01:00
Tanishq
aa4b6ec252 fix(question): keep a quiz question whose Markdown carries a fenced code sample
_parse_quiz_payload swapped the reply for the body of its first ``` fence
before parsing anything. The quiz FINISH schema asks for a bare JSON object
whose `question` is Markdown and whose coding answer is code, so that fence
is usually a code sample inside a string value. The parser decoded the
sample instead, got {}, and the question was lost: after one repair round
that hit the same parser, the learner got "[Generation failed] <topic>"
with N/A as the answer and the explanation.

Take a reply that is one complete JSON object as it is first, the order
parse_json_response already uses for the same case (#825). Wrapped replies
still go through the fence; when a fence inside a field cuts the wrapper's
body short, the first object in the whole reply is used instead.
2026-11-01 11:38:02 +05:30
Steven Huang
a065f7049f test: populate tray capability catalog in browser fixture 2026-11-01 12:41:02 +08:00
Steven Huang
6fd9505891 fix: keep composer tray menus above the input card 2026-11-01 12:10:58 +08:00
Erhan ÜRGÜN
b5dc296e39 test(i18n): guard against inline copy that bypasses the catalogs
Fails when a zh branch picks the English text without t(), when it pairs
Chinese text with a raw English literal, when a date switches between
zh-CN and en, or when inline English copy next to Chinese copy is
missing from any catalog. Unused legacy settings editors are exempt, as
are the voice preview sample sentence and the stored default model name,
which are not interface copy.
2026-11-01 05:41:55 +03:00
Erhan ÜRGÜN
5eadf4e1de fix(i18n): format dates in the interface language
CLI app install dates, the About page update check and the mastery
dashboard's relative and calendar times were formatted as zh-CN or
en-US, so every other language got US dates. They now use getLocale()
from lib/datetime, which already knows each interface language.
2026-11-01 05:41:48 +03:00
Erhan ÜRGÜN
9f16a42fbc fix(i18n): keep source picker fallback labels in the interface language
BookCreator and CreateTopicWizard passed i18next's t to
useTopicSourceLibrary, which calls its translator as (zh, en). i18next
read the Chinese text as the key and the English text as the default, so
labels such as "Untitled question" stayed English even in Chinese.
catalogTranslate() builds the (zh, en) translator from t for all three
callers, and the message and file counts become interpolated keys.
2026-11-01 05:41:48 +03:00