docling-studio/frontend/src
Pier-Jean Malandrino 77fcb32e7f fix(reasoning): re-scroll PDF when re-clicking the active iteration
The watch-based plumbing from iteration click to PDF scroll relied on a
"flip via null" pattern (assign null then the value) to coerce Vue into
re-firing the watcher. Vue 3 collapses synchronous mutations of the same
ref and only delivers the final value, so the trick was a no-op: a second
click on the same iteration left the document view stuck on the previous
page. The bug only showed when the trace had a single iteration — with
several, the user naturally clicks different ones and the value really
changes.

Replace the watch chain with imperative dispatch. ReasoningPanel now just
emits iterationFocus; ReasoningWorkspace handles it by calling the graph
focus and the new StructureViewer.scrollToFocused method directly. Both
side effects fire on every click regardless of state.
2026-04-27 11:48:32 +02:00
..
app feat(reasoning): reasoning-trace viewer v1 with SQLite-backed graph 2026-04-21 11:30:47 +02:00
features fix(reasoning): re-scroll PDF when re-clicking the active iteration 2026-04-27 11:48:32 +02:00
pages feat(reasoning): reasoning-trace viewer v1 with SQLite-backed graph 2026-04-21 11:30:47 +02:00
shared feat(reasoning): bidirectional PDF ↔ graph focus + DocumentView mode 2026-04-23 22:07:58 +02:00