Commit Graph

349 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
83121eecea fix(web): restore notebook tooltip import and tool hint locale fallback 2026-09-23 10:35:30 +08:00
Bingxi Zhao (Frank)
dadb762744 Merge pull request #1360 from fetw882/feat/grok-cli-connector
feat: add Grok CLI subagent connector
2026-09-23 10:34:26 +08:00
Bingxi Zhao (Frank)
7d330f043c Merge remote-tracking branch 'origin/pr-1503' into codex/merge-pr-1503
# Conflicts:
#	deeptutor/services/session/turns/executor.py
2026-09-23 10:32:28 +08:00
Bingxi Zhao
921160d3f8 Merge pull request #1335 from TaoufikMejri/feat/add-french-translation
feat: add french as supported language
2026-09-23 10:26:44 +08:00
Bingxi Zhao
e8a204f80e Merge pull request #1469 from wumajiehechuan-lab/fix/pdfjs-legacy-bundle
fix(web): 加载带 polyfill 的 PDF.js 构建,让旧版引擎也能渲染
2026-09-23 10:25:39 +08:00
Bingxi Zhao
b05ccdba58 Merge pull request #1408 from AoHanBei/feat/1405-chatgpt-import
feat(imports): add ChatGPT conversation export support
2026-09-23 10:23:40 +08:00
Bingxi Zhao
d44bd8e934 Merge pull request #1339 from evan188199-tech/codex/feat/notebook-edit-discoverability
feat(notebook): expose direct record editing
2026-09-23 10:23:01 +08:00
Bingxi Zhao (Frank)
eabc17d79f release: v1.6.10
Native LightRAG role models: extraction, keyword, query and vision each
resolve their own model, vision indexing pins a vision-capable model
instead of silently degrading, and a knowledge base records which models
and which embedding built it. A published index refuses queries after its
embedding identity changes rather than searching a foreign vector space,
and a rebuild is confirmed against the configuration it will actually
use — a stale confirmation is rejected instead of quietly rebuilding
something else. A failed publication is withdrawn, not left half-written.

PDF attachments follow the parsing engine configured for the workspace,
report the stage they are in, and a truncated answer says it was
truncated with the counters that prove it. Providers are no longer
filtered out of the embedding picker on an unverifiable capability guess:
configure the model and test it. Visualize's temperature and token budget
are settings rather than literals. Notebook evidence no longer depends on
the chat session that produced it.

See assets/releases/ver1-6-10.md for the full notes, and the README
translations for the propagated prose.
2026-09-22 21:36:27 +08:00
Bingxi Zhao (Frank)
ee24f44fa7 fix(ui): unify accessible tooltips (#1526) 2026-09-21 14:51:29 +08:00
Bingxi Zhao (Frank)
9083d5fe3c fix(attachments): surface PDF processing stages (#1523) 2026-09-21 14:50:37 +08:00
Bingxi Zhao (Frank)
1fe74df0ed fix(notebook): decouple evidence from chat sessions (#1519) 2026-09-21 14:50:02 +08:00
Bingxi Zhao (Frank)
3800028fa8 merge: integrate LightRAG roles with embedding compatibility 2026-09-21 13:36:18 +08:00
Bingxi Zhao
9ea95ef0dd Merge pull request #1281 from NoxsMedia/codex/nox-35-standalone-embedding
fix: enforce native LightRAG embedding compatibility
2026-09-21 13:15:09 +08:00
Bingxi Zhao
9cba3bdfaf Merge pull request #1157 from NoxsMedia/fix/codex-luna-none-reasoning
fix(codex): expose Luna none reasoning effort
2026-09-21 13:14:39 +08:00
NoxsMedia
b66bc5743c style(web): retain existing provenance component formatting 2026-09-21 03:42:26 +00:00
NoxsMedia
26a63c76bc fix(lightrag): withdraw failed rebuild publication and align provenance 2026-09-21 03:39:22 +00:00
NoxsMedia
8d2c452ef5 fix: display the bound LightRAG version in index provenance 2026-09-21 03:10:48 +00:00
NoxsMedia
1c8a29d257 fix: retain bound index provenance and embedding-only controls 2026-09-21 03:04:13 +00:00
NoxsMedia
ac8cc4a97d fix: preserve selected embeddings in confirmed LightRAG rebuilds 2026-09-21 02:57:39 +00:00
NoxsMedia
73e062c594 fix: preserve LightRAG compatibility with per-KB embedding bindings 2026-09-21 02:45:23 +00:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
Bingxi Zhao (Frank)
367195b7cf Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	deeptutor/api/routers/reading_extensions.py
#	tests/reading/test_extension_router.py
#	web/locales/en/app.json
#	web/locales/zh/app.json
2026-09-19 16:41:12 +08:00
Bingxi Zhao (Frank)
c74915ab8b style(reading): retain the frontend quotation and semicolon conventions 2026-09-19 16:19:26 +08:00
Bingxi Zhao (Frank)
fe482d64eb fix(assessment): persist reading answers reliably across learning surfaces 2026-09-19 16:16:39 +08:00
Gao-Chenkai
3eb831d108 feat(learning): persist cross-surface Focus-Check in Question Bank
Route Mastery, Book, and Immersive Reading attempts through one review record so reading quizzes are server-graded, retryable, and show the learner's pick next to the reference answer.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 21:21:15 +08:00
flower-moon
93c210f4ab feat(reading): inline embedded pictures at their original position
The marker lines the extractor embeds ([图片 N: image-NN.png]) rendered
as literal text in the body with the pictures collected in a separate
strip below the article, each captioned with its filename. Render the
picture itself at the marker's position instead — the marker text stays
in the DOM under the same HiddenMark pattern every other collapsed
marker uses, so Recogito's char-level selectors still resolve against
the exact text an annotation was saved against. A picture whose media
row is missing keeps its literal marker, and anything the inline
renderer cannot claim falls back to the strip.

Also accept catalog-minted rm_ material ids in the reader's wire
validators (turn state, references, location history, citation
anchors), matching the id shape the store already accepts.
2026-09-17 18:46:28 +08:00
Bingxi Zhao (Frank)
c547a5a31c fix: resolve verified learning, ingestion and delivery regressions
Bind mastery drafts before their opening turn and preserve stored session modes.
Track chat duration from submission through terminal completion. Run async reading
extensions on their event loop and allow retries after cancellable timeouts.
Allow first uploads into empty LlamaIndex knowledge bases, preserve Telegram
thread routing, parse embedding Retry-After dates, and enforce robots rules and
host pacing during documentation crawls, including redirects.

Fixes #1461
Fixes #1458
Fixes #1451
Fixes #1448
Fixes #1392
Fixes #1429
Refs #1435, #1412

Reuses contributions from PRs #1462, #1452 and #1403.

Co-authored-by: sjagadee <srini.jagadeesh@gmail.com>
Co-authored-by: AoHanBei <dongaohan21@gmail.com>
Co-authored-by: Gao-Chenkai <DevChenkai@outlook.com>
2026-09-15 20:06:57 +08:00
Bingxi Zhao (Frank)
debf8a1858 Merge branch 'dev' into worktree-chat-engine-interleaved 2026-09-15 13:25:51 +08:00
Bingxi Zhao (Frank)
42d793839b Merge branch 'dev' into worktree-chat-engine-interleaved 2026-09-15 13:25:06 +08:00
wumajiehechuan-lab
172cae8aa2 fix(web): load the polyfilled PDF.js build so older engines can render
pdfjs-dist ships two builds. The default one is neither transpiled nor
polyfilled: it targets the newest engines and calls recent ECMAScript methods
such as `Map.prototype.getOrInsertComputed` (ES2026; Chrome/Edge 145+,
Firefox 144+) straight off the platform. On any slightly older engine --
including a browser or embedded webview only a few months behind -- the worker
throws

  this._requestsByChunk.getOrInsertComputed is not a function

and the document never renders, silently, because the failure happens inside
the worker where the main thread cannot see it.

Take both the library and its worker from the `legacy` bundle, which carries
core-js and patches those methods in. The two must come from the same bundle,
or PDF.js aborts with an API/Worker version mismatch. The extra weight is paid
only by users who actually open a PDF, since this module loads dynamically.
Pin the choice with a test so it is not "optimised" back.
2026-09-14 20:25:39 -07:00
NoxsMedia
e742628e77 chore: sync PR #1157 with current dev 2026-09-14 11:51:33 +00:00
NoxsMedia
82d4d7d7a3 chore: sync PR #1281 with current dev 2026-09-14 11:51:32 +00:00
NoxsMedia
0dd6912ff1 chore: sync PR #1265 with current dev 2026-09-14 11:51:22 +00:00
Bingxi Zhao (Frank)
897fce52f2 fix(mastery): say which gate a number is being read against
Two surfaces reported quiz accuracy as if it were progress toward a gate that
never reads it.

`mastery_assess` aimed at a quantitative objective is refused outright, naming
the tools that do apply. The mirror direction was silent: posing a question at
a concept objective registered it like any other, so a tutor could work an
objective its questions cannot open and never be told. That direction stays
allowed — a question is a fair way to probe a concept before teaching it — but
it now says what grading the answer will and will not do.

The objective detail panel drew `mastery` as a progress bar for every gate.
On a qualitative one that is quiz accuracy, so an objective could show a full
bar next to an outline dot that was correctly still hollow. A boolean gate now
reads all-or-nothing, and says plainly that practice questions are not what
opens it.
2026-09-14 15:15:54 +08:00
Bingxi Zhao (Frank)
00979bd74b fix(reading): let the outline follow the page the reader is actually on
Turning pages in an EPUB, PDF or Markdown moved the header's counter and left
the outline behind: the sidebar stayed on whichever row was last clicked —
chapter one, for a reader who never clicked one — while the document was
eighty sections further along (#1447).

The workspace owns `activeLocator` because the outline panel is what needs it,
and only the rendered document knows where the reader is. The media stage has
always reported it up through `onLocatorChange`. The document surface had no
such prop: `handleVisibleLocator` set its own state and wrote the viewport,
both of which stay inside `ReaderPane`, so nothing the workspace reads ever
moved. Giving it the same seam the media stage has makes both branches say the
same thing to the same listener.

Scrolling the active row into view is deliberately not part of this. The
highlight being wrong was the defect; a panel that scrolls itself while the
reader is browsing it is a separate decision, and not obviously the right one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 02:08:29 +08:00
Bingxi Zhao (Frank)
afade979b1 fix(web): open a deep book URL on the book, not on the library
Opening a book's URL directly — a bookmark, a new tab, a refresh — drew the
library first: the empty list one level above the book, with "Loading…" inside
it, and then a jump to the reader once the fetch landed. From the reader's side
that reads as a bad route or a missing book, on the URL they had just asked for
(#1440).

The route already knows the answer. `view` started at `list` and only became
`reader` after `loadBookDetail` returned, so one piece of state was answering
two questions: which surface is this, and is its data here yet. A book id in
the path settles the first before any request is made, so the initial view is
now derived from it and `opening` renders the book's own shell — sidebar and
all — while the data is in flight.

That makes a failed load worse than it was, so it is handled here too: it used
to leave the reader on a loaded library, and would now leave them in a shell
that never fills. A load that fails says why and returns them to the library,
URL included.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 02:06:16 +08:00
Gao Chenkai
3192757d45 fix: handle DeepSeek reasoning budget exhaustion (#1331)
* fix: handle DeepSeek reasoning budget exhaustion

* style: satisfy ruff format, the one thing CI was red on

`ruff format --check` on agent_loop.py, the Responses parser and the test
file that came with them. No behaviour change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 01:43:40 +08:00
AoHanBei
efbd2f2373 fix(web): honor explicit retryable flags (#1396)
* fix(web): honor explicit retryable flags

* review: pin every status the retryable fallback claims

The table exercised the fallback arm at 503 only, which is one of four
statuses it answers for — a regression narrowing the set to 5xx would still
have passed. Covers 408, 429, 500 and 503, the set #1395 checked.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 01:43:18 +08:00
AoHanBei
c986215fbe fix(reading): keep material loading during hydration (#1442) 2026-09-14 01:28:54 +08:00
AoHanBei
00e2100adf feat(chat): search full conversation history (#1415) 2026-09-14 01:28:46 +08:00
Bingxi Zhao (Frank)
34d7be0827 fix(chat): keep a just-finished turn's reasoning where the reader left it
Opening the trace on a turn that had only just finished showed its tool rows
with every line of reasoning missing, hitched, and then repainted with them
all present. The duration also read a second longer open than closed.

One cause. A turn settles by trading its events for a compact preview, and
the preview drops ``thinking`` — so the rows the reader had been watching a
second earlier were no longer in memory and had to come back from the server.
The fetch then replaced the message's trace metadata with the page's own,
which carries no span, leaving the duration to be re-derived from whatever
events had arrived: past a rounding boundary, 11s became 12s.

So the compaction is deferred by one turn. The newest turn keeps its events —
the one the reader is most likely to open, for the cost of one turn's events —
and the turn before it is compacted in its place, which is what bounds the
memory. Opening it now costs nothing: no fetch, no repaint, no missing rows.

The span is carried across the fetch as well, so a turn reloaded from the
server keeps one duration too, rather than changing it on the way open.
2026-09-11 22:37:49 +08:00
Bingxi Zhao (Frank)
edb779c1b0 perf(chat): stop a streaming turn re-deriving what has not changed
Two pieces of work ran on every streamed delta without producing a pixel.

The first is the working-out. ``messageSegments`` is rebuilt from scratch
whenever content arrives, so the trace — which stops changing the moment a
turn starts writing its answer — handed React a brand-new element tree on
every frame of that answer, and React cannot skip a subtree whose elements it
has never seen. Profiled over one turn: 2905 renders of the process, against
2 milliseconds total for the answer's own markdown beside it.

It now sits behind a memo keyed on what it holds rather than on the props it
is given, and a turn that has started writing its answer marks the process
above it settled, so even the event counts stop mattering. Measured the same
way afterwards: 346 renders, every remaining one during the thinking phase
where the trace really is still moving.

The second is the reveal rate. A markdown consumer re-parses its whole
document on every render, so a turn costs reveals × length — and revealing
per delta made that quadratic in the answer's own length, which is the shape
of "it streams fine at first and gets choppier the longer it runs". The rate
cap has to be in time rather than characters, because a model sending three
characters at a time sets the pace and there is nothing to reveal ahead of
it. A page-length reply is untouched; a 5KB one reveals at 20fps.

The list also handed every row a fresh onTraceToggle closure, which defeated
the memo on AssistantMessage outright: every message in the conversation
re-rendered on every delta of the turn at the bottom.
2026-09-11 22:00:53 +08:00
Bingxi Zhao (Frank)
9f3990463f fix(chat): let the closing answer stream where it will stay
Where a turn's prose was placed was gated on the same "this round was the
terminal one" signal that decides whether to fold the working-out away. So
the closing answer streamed INSIDE the collapsible process and hopped out of
it once the round finished.

That gate could never have been satisfied in time. A round only reveals
whether it called tools after its prose is complete, so for the whole length
of the answer the reader watched it arrive dressed as reasoning, in a region
whose whole promise is that it holds things not worth reading.

Placement is structural now — whatever is being written is the answer — and
only the fold still waits for the terminal round. That inverts which case
pays: commentary is demoted into the process when its round turns out to
have called a tool, costing one 14px slide at the moment the tool row
appears under it, and the text the reader came for never moves at all.
2026-09-11 18:12:27 +08:00
Bingxi Zhao (Frank)
a37cb93947 feat(chat): fold a turn's working-out away once it reaches the answer
Interleaving the commentary with the steps it introduced made a turn readable
while it ran, and left the finished message carrying its whole working-out
above the answer. Watching the work happen and re-reading it afterwards are
different needs, and only the first is served by keeping it in the flow.

So the two become layers. The working-out streams open, exactly as before,
then folds itself into the activity header the moment a round completes as the
turn's terminal one. The header already times the turn and already is a
disclosure, so it now says what it folded — "2 tool calls · 2 notes" — and one
click brings it all back. Cards are not folded: a question the reader was
asked is part of the exchange, not working-out, so it keeps its place and
breaks the process into runs around itself.

The rhythm inside that layer is fixed too. Markdown carries a bottom margin
and the trace rows carried only a top one, so a row sat 24px under the
sentence that introduced it and flush against the one that followed — reading
as a heading for the next paragraph rather than the step between them. One gap
now governs the column, which hangs from a guide line so it reads as one unit.

A call the reader already sees as a card no longer draws a row of its own: the
card is that call's presentation, and the row landed below the very question
it had asked.
2026-09-11 17:19:02 +08:00
Bingxi Zhao (Frank)
541b7f4f16 feat(chat): let a turn read as a running account instead of an answer with hidden working
Every round already streamed its text to the reader. The loop then took it
back: a round that called tools was marked narration, and the client moved
that prose out of the answer and into a collapsed block pinned to the top of
the message. The reader watched a sentence appear and vanish, and what was
left was an answer with no account of how it was reached.

That behaviour came from one field doing two jobs. ``call_role`` said both
where the turn was and whether the text counted, so "more work follows" and
"hide this" could not be told apart — and three separate exceptions had grown
to say "actually, show this one" for DSML, truncation and mastery.

Split the two facts. ``call_role`` keeps the phase. A new ``answer_visible``
carries visibility, true for every ordinary round, false only where a
capability's finish guard retracts a round it rejected. The three exceptions
disappear with the default they were fighting.

The client then lays the message out in the order it was written: the sentence
that introduced a step, the step's own row beneath it, what the next round
said below that. A settled turn is restored from an event preview that carries
no text, so tool calls now record how much of the answer had been written when
they ran, and the stored body is laid back out around them.

The prompt asks for the commentary this depends on, and says the closing
answer should not replay it.
2026-09-11 16:49:40 +08:00
AoHanBei
d0f4875e2c feat(imports): add ChatGPT conversation export support 2026-09-11 16:46:46 +08:00
NoxsMedia
1f4a1cbcf4 chore: sync Codex reasoning support with dev 2026-09-10 23:36:42 +00:00
NoxsMedia
83c68d2bb9 chore: sync LightRAG role configuration with dev 2026-09-10 23:36:42 +00:00
evan188199-tech
0f8759f730 feat(watching): browse connected Invidious accounts (#1241) 2026-09-11 04:39:34 +08:00
evan188199-tech
72002011a3 fix(watching): preserve note timestamps and add save retry UX (#1350) 2026-09-11 04:39:25 +08:00