Commit Graph

764 Commits

Author SHA1 Message Date
ZQR1101
5b2b99fab9 fix(memory): aggregate account-level L1 across workspaces (#1799) (#1800)
Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
2026-10-07 20:36:53 +08:00
evan188199-tech
cc373762e4 fix(rag): log swallowed embedding/image progress and LightRAG meta failures (#1703)
* fix(embedding): log progress callback failures instead of swallowing them

embed/embed_contents wrapped progress_callback in 'except Exception: pass'.
A failing progress sink vanished without a trace while indexing continued,
making KB index progress untrustworthy (stalled reads with no diagnostics).

Keep the callback best-effort (embedding runs must not fail on UI feedback)
but log a warning with batch context and the underlying exception.

* fix: log image progress callback failures instead of swallowing them

_describe_one wrapped image_progress_callback in 'except Exception: pass',
so a broken progress sink silently dropped indexing progress updates with
no trace. Log a warning with completed/total context and keep the batch
running; add a focused test covering visible failure logging and
uninterrupted loading.

* fix(lightrag): warn when workspace meta.json exists but is unusable

workspace_for() swallowed OSError/ValueError when reading meta.json and
silently fell back to the path-hash workspace name, which can open an
empty store with no log trail. Missing files stay silent; unreadable or
corrupt meta now logs a warning with the path and exception type while
keeping the same fallback behavior.

* 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.

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:23:17 +08:00
evan188199-tech
18619e6fc6 fix(rag): classify invalid persisted index errors and include re-index steps (#1702)
* fix(rag): classify invalid persisted index errors and include re-index steps

Searching a knowledge base whose persisted vector store contains invalid
vectors (issue #440) was misclassified: the ValueError raised at index
load wraps a provider-facing "Details: ..." tail, so search_error_result
matched the embedding-provider branch first and returned
invalid_embedding_provider_response without needs_reindex, blaming the
provider instead of the damaged index.

Check the persisted-index diagnosis first, include the recorded failure
reason (which store file, which vector) in the user-facing answer, and
spell out recovery: run the knowledge base's 'Re-index' action; re-uploading
documents reuses the damaged store and cannot repair it.

* 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.

---------

Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:22:18 +08:00
evan188199-tech
409fa3c4e1 fix(services): surface fsync failures in atomic writers as rate-limited warnings (#1751)
Co-authored-by: XZH <cto@xzh.ai>
2026-10-07 20:21:30 +08:00
Jinguang Gu
faf0096c4b fix(crawler): ignore absurd robots.txt crawl-delay values (#1787)
A hostile robots.txt could park every request to a host (and the shared
per-host pace lock) on one unbounded sleep; delays beyond 60s are now
treated as "no directive" and the default interval applies instead
(RFC 9309 lets crawlers cap unreasonable values).
2026-10-07 20:20:48 +08:00
ZyPulse
f3b840ce46 perf(llm): deduplicate repeated inline user images per request (#1714)
* perf(llm): deduplicate repeated inline user images per request

* fix(llm): preserve image fallback and stable replay references
2026-10-07 20:18:56 +08:00
ZyPulse
07948c0385 fix(llm): avoid tokenizing image payloads in request fingerprints (#1712) 2026-10-07 20:18:43 +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)
fe003ddce5 fix(rag): retain textbook figures beyond the model image budget (#1610) 2026-10-04 18:39:02 +08:00
Bingxi Zhao (Frank)
428287fb16 fix(parsing): preserve failed MinerU attempts and usable outputs (#1612) 2026-10-04 18:38:56 +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 (Frank)
a3c76c9d27 fix(voice): preserve math and isolate reply playback lifecycle 2026-10-04 15:13:14 +08:00
Bingxi Zhao (Frank)
b83592a107 Merge dev into PR #1557 and preserve integrated behavior 2026-10-04 15:09:24 +08:00
Bingxi Zhao (Frank)
a5ad88c95f Merge dev into PR #1679 and preserve integrated behavior 2026-10-04 15:08:13 +08:00
Bingxi Zhao
0133f17b61 Merge pull request #1681 from octo-patch/octo/20261001-tts-tool-recvwLi0fA8hap
feat: add native MiniMax speech synthesis
2026-10-04 15:07:13 +08:00
Bingxi Zhao (Frank)
dcb157886d fix(rag-eval): discount duplicate gold and keep JSON output parseable 2026-10-04 15:04:24 +08:00
Bingxi Zhao
cae52da2e5 Merge pull request #1649 from Hi-Kung/feature/kb-retrieval-eval
feat: add kb eval command for RAG retrieval quality scoring
2026-10-04 15:03:22 +08:00
Bingxi Zhao (Frank)
74e6e154de Merge dev into PR #1675 and preserve integrated behavior 2026-10-04 15:02:45 +08:00
Bingxi Zhao
36e5ea1189 Merge pull request #1659 from ZyPulse-zy/fix/image-context-budget
fix(session): budget image blocks without tokenizing encoded payloads
2026-10-04 15:01:56 +08:00
Bingxi Zhao
a8077cb69d Merge pull request #1660 from ZyPulse-zy/fix/numbered-exercise-lookup
fix(rag): resolve numbered exercises from completed parse artifacts
2026-10-04 15:01:39 +08:00
Bingxi Zhao (Frank)
bb70aa2253 Merge dev into PR #1672 and preserve integrated behavior 2026-10-04 15:00:37 +08:00
Bingxi Zhao (Frank)
335301bff3 Merge dev into PR #1669 and preserve integrated behavior 2026-10-04 14:59:02 +08:00
Bingxi Zhao
aee3d0bd1c Merge pull request #1670 from Mikesad/fix/mineru-local-failure-reasons
Fix/mineru local failure reasons
2026-10-04 14:57:57 +08:00
Bingxi Zhao (Frank)
be29368733 fix(rag): cache successful image batches with complete request identity 2026-10-04 14:57:45 +08:00
Bingxi Zhao (Frank)
232f720e90 Merge dev into PR #1671 and preserve integrated behavior 2026-10-04 14:55:52 +08:00
Bingxi Zhao (Frank)
895c41999c Merge dev into PR #1665 and preserve integrated behavior 2026-10-04 14:47:52 +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)
dfeb2fb4f3 Merge dev into PR #1657 and preserve integrated behavior 2026-10-04 14:22:45 +08:00
Bingxi Zhao
a289eb03f7 Merge pull request #1677 from nextnowlabs/main
fix(partners): keep IM replies in step with the turn
2026-10-04 14:19:16 +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
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
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 (Frank)
be4c144171 Merge dev while preserving futureinfra and existing provider contracts 2026-10-04 13:58:31 +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 (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
OrdoAbChao7
6c04a51a7e fix: trust explicit HTTP status in retry classification 2026-10-04 09:51:43 +08:00
OrdoAbChao7
57dc901c8a fix(cli): respect configured token budget in doctor probe 2026-10-03 22:58:24 +08: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
3dad78fcbc fix(session): ground rendered LaTeX selections (#1676) 2026-10-01 03:35:43 -07:00
octo-patch
8ae821e41d feat: add native MiniMax speech synthesis 2026-10-01 17:51:29 +08:00
helloqhq
40182fcbab fix: support Xiaomi MiMo v2.5 preset speech 2026-09-30 22:53:31 +08:00
zhujia
d1fe4f637d fix(feishu): keep replies in step with the turn
The channel trailed the model by up to 20s and finished long after the WebUI.
Every sync SDK call opened a fresh connection (DNS + TCP + TLS ≈2s per call)
and the serial outbound lane paid it per message.

- route lark-oapi's sync calls through one keep-alive session per worker
  thread: measured 2.03s → 0.68s per call (0.55s warm)
- create the streaming card carrying its first text instead of pushing that
  text in a second API call
- ask CardKit for a printable pace (streaming_config) instead of the platform
  default of one character per 70ms
- stop retrying card creation on every delta; after three failures the reply
  falls back to a regular card instead of dribbling out
- throttle stream edits to 1s so the lane stays ahead of the model
- make group threading configurable, and always reply flat in single chats
- post a brief "thinking…" notice while the model reasons and retract it once
  the answer starts: reasoning events never reach a channel, so such a turn
  used to look dead
- close the SDK WebSocket client on stop, so a reload cannot leave a second
  listener subscribed to the same app
2026-09-30 16:25:08 +08:00
zhujia
1c1dc61fea fix(partners): merge queued outbound messages before delivery
A partner has one outbound lane and every channel send is a blocking HTTP
round trip, so a fast model filled the queue faster than Feishu could post:
readers kept receiving an answer long after the turn had finished.

- share the dispatcher's delta/progress coalescing with the live router and
  keep message order through a pending queue
- merge queued narration and tool hints, which otherwise cost one API call
  each
- retry ordinary messages with the configured budget, but never hold the lane
  behind backoff sleeps for stream frames, which self-heal
- keep the lane alive when a single message fails, and follow a channel
  reload
- stamp publish time on the bus and warn when delivery waits too long, so a
  trailing reply is visible in the logs
2026-09-30 16:24:51 +08:00