Commit Graph

361 Commits

Author SHA1 Message Date
meconopscsh
877606fc2f feat: let learners turn off the chat composer's next-message hint
After each reply the chat composer shows a predicted next line as its
placeholder, and Tab accepts it. When the assistant has just asked a
question, such as a quiz in chat, the likeliest next line is the answer,
so the hint gives it away. There was no way to turn it off.

Add an `ask_hint_enabled` switch to the per-user starter settings
(Settings -> Conversation -> Composer), on by default. When it is off,
`get_ask_hint` returns an empty hint before reading the session or the
cache, so no LLM call is made and no line cached while it was on leaks
through.

A PUT that omits the field keeps the stored value, so an older client or
a settings draft saved before this change cannot turn the hint back on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 12:18:54 +09: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)
f50ab3afb0 Merge pull request #2050: inspect and clean generated files 2026-10-29 01:10:37 +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)
aabf8d3a99 Merge pull request #2099: Anki flashcard export 2026-10-29 01:02:52 +08:00
Bingxi Zhao (Frank)
f3710ce0ab Merge pull request #2098: calendar ICS export 2026-10-29 01:01:59 +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)
28ca8ed0b7 Merge pull request #2065 into validated PR integration 2026-10-29 00:56:12 +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)
1ea7df1554 docs: consolidate developer and agent handbook 2026-10-29 00:36:18 +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
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
Frank-zhu2000
9a04808c33 fix: follow the OS theme until the user picks one
The first visit stored the detected palette and never listened for
prefers-color-scheme changes, so the theme stopped tracking the OS and
Settings had no System choice.

Do not write that fallback. Subscribe while the preference is missing or
"system", and add a System option in Appearance. New accounts default to
system so Apply does not freeze the snow palette.
2026-10-28 16:31:49 +08:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +08:00
Matt Van Horn
7f061c5675 feat(notes): export flashcards for Anki
Add a tab-separated Anki import from a note page and from the review
queue so learners can File -> Import cards into a deck named after the
note. Re-importing uses stable card GUIDs and does not include review
scheduling.
2026-10-27 22:07:06 +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
0x-IHRR
507ec78780 fix: manage direct chat output attachments 2026-10-28 03:13:05 +08:00
0x-IHRR
25bbc02a3b fix: match generated chat output paths 2026-10-28 02:50:15 +08:00
0x-IHRR
7748e81a20 feat: manage generated chat output files 2026-10-28 02:44:07 +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
c89a8f9c5f Merge pull request #2039 from cgycorey/fix/vision-capability-declared-provider
fix(settings): let a declared vision model drive image description
2026-10-27 23:54:39 +08:00
Bingxi Zhao (Frank)
66ccc3646a Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:41:44 +08:00
Bingxi Zhao (Frank)
ed13b6c045 Merge remote-tracking branch 'origin/dev' into HEAD 2026-10-27 21:41:01 +08:00
yh wang
98d2bddb92 feat(workspace): add a server-side folder picker for project workspaces 2026-10-27 12:32:45 +08:00
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08:00
Rudy Celekli
3119cf2c5d fix(api): strip control chars from Content-Disposition ASCII fallback
content_disposition neutralized quotes and backslashes in the ASCII
filename= fallback but left C0 control characters untouched. A filename
containing CR/LF produced a header value with a raw newline — a malformed
header / response-splitting shape that the ASGI server rejects (500). Strip
control chars like the sibling partners.helpers.safe_filename already does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-26 10:40:14 -04:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
Remove course pages, APIs and the course_study capability. Add anchored note
threads and reviewed learning-block generation, queued and withdrawable chat
messages, quote attachments, side chats, and the calendar/favorites/navigation
updates.

Keep preview's existing backend architecture. Wire the new features through
its Python application and existing chat engine, retain legacy selected-text
requests, persist mid-turn messages in replay, and restore note context when
regenerating. Leave stored user data intact.

Validate frontend contracts, dependency boundaries, types, 1290 node tests,
840 rendered tests, lint, localization and the production build. Exercise
session/notes/API regressions, 53 chat-engine tests and 20 Python/native
integration tests with isolated runtime data.
2026-10-26 22:13:34 +08:00
0x-IHRR
38cf3979d3 feat: add Math Animator output paths and render-file cleanup 2026-10-26 00:50:41 +08:00
Nirupam Bhowmick
ff28e0eb19 feat(providers): add Runcrate as an OpenAI-compatible gateway 2026-10-24 23:03:20 +01:00
cgycorey
0cbfaca2eb fix(settings): expose effective vision support in llm-options (#2037)
The Image description model dropdown filters /api/settings/llm-options on
supports_vision, but the endpoint only emitted declared_vision, which no
frontend code reads, so the list was always empty.

Emit supports_vision per model, preferring the catalog's own capability
declaration and falling back to supports_vision(provider, model) for the
provider/MODEL_OVERRIDES defaults. The declaration has to win here: the
process-global override table only refreshes on the next runtime
resolution, so reading it alone left a freshly declared model hidden in a
newly started process -- the same asymmetry the issue reports. This is the
rule lightrag/roles.py already applies.

Signed-off-by: cgycorey <cgycorey@users.noreply.github.com>
2026-10-23 19:08:19 +01:00
dajiaohuang
3ce2937c82 fix: keep mastery review within the gate 2026-10-22 12:44:45 +08:00
Bingxi Zhao (Frank)
a509ec2362 fix(settings): explain denied catalog writes without losing drafts (#1984) 2026-10-19 02:10:06 +08:00
Bingxi Zhao (Frank)
9aae961412 Merge PR #1957: separate private source evidence from explicit public presentation 2026-10-19 00:53:44 +08:00
Bingxi Zhao
1aed52fd0d Merge pull request #1814 from dajiaohuang/fix/quiz-judge-attachments
fix(api): materialize saved quiz answer attachments
2026-10-19 00:22:53 +08:00
Bingxi Zhao
b82439042a Merge pull request #1812 from dajiaohuang/fix/co-writer-http-errors
fix(api): preserve Co-Writer model-selection HTTP errors
2026-10-19 00:22:28 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions.

Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo.

Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
2026-10-17 23:15:23 +08:00
Renn F
53fa3627d9 fix(api): disable the ssrf category and qualify guard behaviour notes
Browsers send the page URL as Referer, and guard-core 4.4.0 flags
localhost and LAN addresses in it as ssrf, which returned 400 for every
UI request. Pass every detection category except ssrf, with tests for
local-address Referers (200) and an attack pattern in a Referer (400).

Say that system.json gains the disabled security_guard block on the next
load instead of claiming nothing changes, document the IPv4-mapped peer
caveat of guard-core 4.4.0 with the mapped-form workaround, fix the
session handoff line citation, and drop the launch-flag test that
duplicates tests/runtime/test_uvicorn_launch_flags.py.

Add tests for the mapped-form workaround and for the access log
recording a guard rejection through the real application stack.
2026-10-16 17:21:34 +02:00
Renn F
86b3633ca2 feat(api): exempt loopback from the guard rate limit by default
The bundled frontend proxy drops X-Forwarded-For and does not add the
browser address, so every browser reaches the backend as loopback and
would share one rate-limit bucket. Add `security_guard.exempt_ips`
(default 127.0.0.1 and ::1, DEEPTUTOR_GUARD_EXEMPT_IPS) passed to
SecurityConfig. It skips the rate limit only; the denylist, bans and the
attack-pattern scan still apply, and loopback requests that carry
X-Forwarded-For are still limited as the forwarded client.

Document that an allowlist must list loopback for the bundled frontend,
and qualify engine behaviour statements with the engine versions they
were verified on.
2026-10-16 16:38:15 +02:00
Renn F
dbd270cfdb feat(api): add opt-in fastapi-guard request screening
Add an off-by-default `security_guard` setting (system.json, with
DEEPTUTOR_GUARD_* deployment overrides) that mounts fastapi-guard's
pure-ASGI middleware in front of the routers: per-address rate limit,
IP allow/deny lists, ban list and an attack-pattern scan of path, query
and headers. Request bodies, WebSocket handshakes, Redis, CORS and
security headers are left alone.

The guard is added before the access-log and CORS middlewares so CORS
stays outermost and 429/403 responses carry CORS headers. When disabled
the package is never imported. When enabled without the package the
backend fails at startup with an install hint. fastapi-guard ships as
the optional `guard` extra (requirements/guard.txt, DEEPTUTOR_EXTRAS).
2026-10-16 16:24:52 +02:00
Bingxi Zhao
63621137a4 Merge pull request #1911 from Owaid0723666/feat/add-onomeo-provider
feat(providers): add onomeo as an OpenAI-compatible gateway
2026-10-15 03:23:16 +08:00
Bingxi Zhao
cedd060ac1 Merge branch 'dev' into feat/add-onomeo-provider 2026-10-15 02:03:57 +08:00
Bingxi Zhao
b9397ae6e8 Merge branch 'dev' into fix/workspace-kb-file-delete-not-found 2026-10-15 02:03:46 +08:00
yepyhun
b8fccb92b2 fix(mastery): validate visual hints and select original source excerpts 2026-10-13 17:24:37 +02:00
Bingxi Zhao (Frank)
3cbecb2479 feat(workspaces): add scoped instructions and refine learning UI 2026-10-12 19:29:47 +08:00
Owaid0723666
bfdfb18e48 feat(providers): add onomeo as an OpenAI-compatible gateway
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:54:36 +09:00
李晨
7948cd0f2e fix(knowledge): resolve workspace-scoped knowledge base files during deletion 2026-10-08 21:18:06 +08:00
dajiaohuang
29332160bf Merge commit '6cf793bd868ba5ecbe64722936d4be8fab5a01df' into fix/co-writer-http-errors 2026-10-08 12:40:42 +08:00
dajiaohuang
4650bf5394 fix(co-writer): preserve model selection HTTP errors 2026-10-08 12:40:42 +08:00