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.
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.
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>
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.
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#1461Fixes#1458Fixes#1451Fixes#1448Fixes#1392Fixes#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>
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.
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.
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>
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>
* 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>
* 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>
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.
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.
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.
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.
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.