Commit Graph

874 Commits

Author SHA1 Message Date
sriv144
ad160faeb2 fix: honor soft archive flags in partner memory snapshots 2026-10-29 12:11:31 +05:30
Bingxi Zhao (Frank)
308d99b167 style(memory): apply repository line length to rebased contribution 2026-10-29 01:38:15 +08:00
Bingxi Zhao (Frank)
15aa6a75ae Merge current rebased head of PR #2112 2026-10-29 01:38:01 +08:00
Bingxi Zhao (Frank)
086ad067c9 fix(integration): complete cancellation, documentation and browser regressions 2026-10-29 01:37:11 +08:00
Bingxi Zhao (Frank)
2c47cc22ce fix(integration): authenticate search and regenerate route contracts 2026-10-29 01:19:18 +08:00
Bingxi Zhao (Frank)
5ad749ac9c Merge pull request #2025: You.com search provider 2026-10-29 01:13:31 +08:00
Bingxi Zhao (Frank)
adf99ad8aa Merge pull request #2122: resend with live model and response language 2026-10-29 01:12:05 +08:00
Bingxi Zhao (Frank)
9269029699 Merge pull request #2086: server folder picker with all supported locales 2026-10-29 01:10:00 +08:00
Bingxi Zhao (Frank)
ebcec14c1d fix(llm): bound Claude session lifecycle and share SDK wire adaptation 2026-10-29 01:09:09 +08:00
Bingxi Zhao (Frank)
b89748200a Merge pull request #2109: Claude Agent SDK provider 2026-10-29 01:07:23 +08:00
Eapp1e
e1c05b8527 fix(memory): size chunk windows by the stride that overlap leaves
Formatting pass with ruff 0.16.0 so the lint job stops asking for a reformat;
no behaviour change: tests/services/memory/test_chunker.py still passes 15/15.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-28 17:06:31 +00:00
Bingxi Zhao (Frank)
df915d178e Merge pull request #2087: SDK discovery with modular source installation 2026-10-29 01:05:37 +08:00
Bingxi Zhao (Frank)
4531e26993 fix(calendar): export UTC-derived transitions through the recurrence horizon 2026-10-29 01:02:35 +08:00
Bingxi Zhao (Frank)
f3710ce0ab Merge pull request #2098: calendar ICS export 2026-10-29 01:01:59 +08:00
Bingxi Zhao (Frank)
9645d81ce1 fix(session): ground rendered selections without erasing semantic text 2026-10-29 01:00:55 +08:00
Bingxi Zhao (Frank)
c4f0438e0a Merge pull request #2093 for Markdown selection grounding 2026-10-29 00:59:07 +08:00
Bingxi Zhao (Frank)
0da5dc4bbe fix(llm): correlate interleaved tool calls through one accumulator 2026-10-29 00:59:07 +08:00
Bingxi Zhao (Frank)
29c52cc15c Merge pull request #2112 for memory chunk budgeting 2026-10-29 00:58:01 +08:00
Bingxi Zhao (Frank)
c98ff63454 Merge pull request #2117 for streamed tool-call validation 2026-10-29 00:58:00 +08:00
Bingxi Zhao (Frank)
c2d2cc8cbc Merge pull request #2029 into validated PR integration 2026-10-29 00:56:14 +08:00
Bingxi Zhao (Frank)
94e5232d4c Merge pull request #2042 into validated PR integration 2026-10-29 00:56:13 +08:00
Bingxi Zhao (Frank)
c1b238c162 Merge pull request #2048 into validated PR integration 2026-10-29 00:56:13 +08:00
Bingxi Zhao (Frank)
465d79e6f5 Merge pull request #2066 into validated PR integration 2026-10-29 00:56:12 +08:00
Bingxi Zhao (Frank)
b9777bda9e Merge pull request #2067 into validated PR integration 2026-10-29 00:56:12 +08:00
Bingxi Zhao (Frank)
480eda2822 Merge pull request #2071 into validated PR integration 2026-10-29 00:56:11 +08:00
Bingxi Zhao (Frank)
dd31a77f58 Merge pull request #2076 into validated PR integration 2026-10-29 00:56:11 +08:00
Bingxi Zhao (Frank)
7b307357dc Merge pull request #2103 into validated PR integration 2026-10-29 00:56:10 +08:00
Bingxi Zhao (Frank)
7513ec10f5 Merge pull request #2113 into validated PR integration 2026-10-29 00:56:10 +08:00
Bingxi Zhao (Frank)
5906e5f94f Merge pull request #2115 into validated PR integration 2026-10-29 00:56:10 +08:00
Bingxi Zhao (Frank)
8f60fa8339 Merge pull request #2121 into validated PR integration 2026-10-29 00:56:09 +08:00
Bingxi Zhao (Frank)
f9a687575f release: v1.7.0
Ship the modular installation profile, refreshed workspace, Learning notebook
with Dito, narrated video lessons, and tutoring/indexing reliability updates.

Synchronize the English README, all 11 translations, and installation guides;
archive older notes and prepare assets/releases/ver1-7-0.md. Include the
formatting fix for the architecture diagram generator reported by CI and
pin the update-cache test fixture so releases do not change its premise.
2026-10-28 22:12:36 +08:00
sjagadee
99303f9df7 fix: use the current model and reply language when editing or resending
Editing a persisted message and resending a saved failed turn both replayed
the failed turn's saved request verbatim, so the new turn silently ran on
the previous model and the previous reply language.

- An edit keeps the original request's context (attachments, references,
  parent, capability, tools, config) but takes the model and the reply
  language from the current session state (#2106).
- A Resend of a saved failed turn sends the current model and reply
  language in the regenerate overrides. The backend already prefers those
  over the saved snapshot, and the recovered model is now written back to
  the conversation, so the choice survives a reload (#2105).
- An unconfirmed submission is still retried with its own parameters: the
  server may already hold that submission id, and a changed request would
  no longer match it.
2026-10-28 09:08:22 -05:00
Alex Castillo
8ed8387710 fix(llm): keep streamed tool calls without an index apart
The OpenAI-compatible stream accumulators defaulted a missing tool-call
index to 0 (or None), so with servers that send none, such as Gemini's and
Mistral's compatible endpoints, parallel tool calls shared one buffer and
their names and arguments were merged into broken JSON. A delta with a new
id now starts the next call and one without an id continues the last;
deltas that carry an index behave as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 07:48:00 -04:00
berce
02f819038c fix: mask code and math spans in one pass before the CJK emphasis repair
Masking fenced code, math and inline code in three passes let the math pattern match $ signs inside inline code, and the inline code pass then wrapped that placeholder in a new one, so a placeholder leaked into the stored answer. Match all three in one left-to-right pass and skip the repair when the text already has a NUL.
2026-10-28 14:17:35 +03:00
Frank-zhu2000
9dbed4b21f fix: do not persist a placeholder theme when settings fail to load
A failed GET /api/settings left Appearance on "system". Applying any
later UI change wrote that placeholder and replaced an explicit local
palette.

Seed the form from the stored preference, and omit theme from Apply
until the server has confirmed one.
2026-10-28 18:33:14 +08:00
sriv144
2f04d33a38 Retain reported usage when reader answer validation fails 2026-10-28 15:20:56 +05:30
sriv144
381e89580c Add isolated native memory snapshot evaluation 2026-10-28 15:17:39 +05:30
quocldce-sys
8b7e15df02 feat: send images to Claude Code so source figures reach the model
The claude_code provider now declares vision support and forwards
`image_url` parts (for example a source figure retrieved by `rag` from a
knowledge base) as Anthropic `image` blocks. Turns with images go to the
CLI as one streamed user message; text-only turns are still sent as plain
strings. In sessions, only the new tail is sent, the same as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 16:35:44 +07:00
quocldce-sys
6cc31b197c feat: list Claude Code models with display names and sync them in settings
- `fetch_claude_code_catalog()` reads the account's model list from the
  Claude Code CLI handshake (`get_server_info`), so no model request is made,
  and returns display names such as "Opus 5.5" and "Fable 5.1". The
  `default` entry is labelled "Default (account setting)" because managed or
  user settings can pin a different model at run time. It falls back to the
  bare aliases when the CLI cannot start.
- `/api/settings/fetch-models` returns those names for `claude_code`.
- Settings UI: `codebuddy` and `claude_code` now share a CLI_LOGIN_BINDINGS
  set. Claude Code gets the same "Sync models" button, auto-sync on provider
  switch, and hidden base URL / API key fields, without the CodeBuddy login
  card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:28:08 +07:00
Eapp1e
45d4cdd0ed fix(memory): size chunk windows by the stride overlap leaves
chunk_with_boundary() documented a hard upper bound of `budget` chunks but
sized the window off len(text) / budget while every cut advances the cursor
by target - overlap. The overlap is spent at each cut, so the default 10%
overlap profile needed 21 chunks for a budget of 20 and one extra LLM call
per consolidation. Derive the window from the distance the budget chunk
really covers and assert the bound in a new regression test.

Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
2026-10-28 08:21:34 +00:00
quocldce-sys
b16b187244 feat: add Claude Code provider backed by the Claude Agent SDK
Adds a `claude_code` LLM provider that runs turns through the local Claude
Code CLI via `claude-agent-sdk`, so DeepTutor can use the account signed in
with `claude /login` (including a Claude subscription) without an Anthropic
API key.

- One long-lived Claude Code process per DeepTutor session, mirroring the
  CodeBuddy SDK provider's owner-task pattern.
- Claude Code's built-in tools, settings, CLAUDE.md and hooks are disabled;
  DeepTutor tools are exposed through an in-process SDK MCP server and tool
  calls are returned to DeepTutor's dispatcher.
- Tool turns end via max_turns=1 and are drained instead of interrupted, so
  the transcript does not record an interrupted request.
- System messages become Claude's real system prompt.
- Optional extra: `pip install deeptutor[claude-code]`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:07:04 +07:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +08:00
Cursor Agent
b53ee768c9 style: put test signature on one line for ruff format
Co-authored-by: Nandana Dileep <nandanadileep@users.noreply.github.com>
2026-10-28 03:10:33 +00:00
nandanadileep
e27735d75c fix: Mastery Path concept objectives can never 2026-10-28 00:16:17 +00:00
Matt Van Horn
9ede0fb10e feat(calendar): export calendars as iCalendar files
Download one calendar or every visible calendar as an RFC 5545 .ics file,
including recurring series, occurrence exceptions, reminders, and a rail
action that fetches the file through the existing authenticated API.
2026-10-27 22:03:37 +00:00
Bingxi Zhao (Frank)
7cb31af807 fix: preserve module entry points in source installs 2026-10-28 01:37:28 +08:00
Bingxi Zhao (Frank)
9aadac3e3b merge: integrate current dev with modular installation 2026-10-28 01:23:48 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00
Bingxi Zhao (Frank)
e9aa022765 test: support Anthropic SDK auth header versions 2026-10-28 00:45:08 +08:00
Bingxi Zhao (Frank)
7d0ba36a70 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-28 00:44:27 +08:00