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.
Adds "Video Lesson" to the capability picker. A video_lesson result is
shown as its player page in an iframe sandboxed to allow-scripts only,
with the summary underneath, a link to open it in a tab, the lesson's
length and the Remotion source behind a disclosure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
- Settings → General gains a classic/modern layout choice; classic is a frozen
snapshot of dev's sidebar and learning dashboard, modern keeps iterating.
Variants differ only through slots, tokens and per-variant CSS on
<html data-ui-layout>; the preference lives in localStorage.
- Modern chrome: warm neutral tokens, WorkspaceMenu header, ⌘K command palette
and keyboard shortcuts, PageBar location strip, swipeable PartnerRoster.
- Remove dead HomeShortcuts, WorkspaceSwitcher and the inline sidebar search
query chain.
Bind original visual sources and keys to supported tasks; verify accepted model pixels, preserve cues/assistance and canonical attempts, keep uncertainty ungraded, expose challenge/repair, and separate required visual evidence from generic text mastery.
Adapted the migration foundation from PR #1384 while preserving current workspace, caption and turn-admission safeguards.
Co-authored-by: XZH <cto@xzh.ai>
* fix(session): delete a message's own turn and refuse active-turn deletion
Resolve the owning turn via `turns.assistant_message_id` for assistant rows
and the user row's `metadata.turn_id`, falling back to the last turn created
at or before the user row for legacy data. The previous `created_at >=` match
selected the *next* turn, because a turn row is always written before its user
row (`begin_turn` -> `add_message`); deleting a completed turn's message could
therefore destroy a later `waiting_input` turn's record while its task still
held the session lease.
Refuse the delete whenever the resolved turn is in `ACTIVE_TURN_STATUSES`
(queued/running/waiting_input) instead of only "running"; the API answers 409
with "running or waiting for input".
* fix(chat): resubscribe a parked turn on load so its ask_user card survives a reload
A `waiting_input` turn keeps the session lease while it waits, and its
ask_user card exists only in the live event stream: no assistant row is
persisted until the turn settles. Loading a session only resubscribed
"running" turns, and through `sendThroughRunner`, whose retry gate drops a
non-streaming session -- so after a reload the card was unreachable while the
turn kept waiting, and the conversation could neither be answered nor used.
Parked turns now subscribe through the client's durable command queue (sent
once the socket opens), once per turn per tab. The replayed stream rebuilds
the card so it can be answered.
* test(chat): align the loader-gate assertion with the parked-turn resubscribe
The source-shape assertion pinned the previous loader line
(`if (loadedStatus === "running" && (activeTurn?.turn_id || activeTurn?.id))`).
The parked-turn resubscribe extracts `activeTurnId` first and adds a
`waiting_input` branch, so update the assertion to the new gate and cover the
parked branch's status check as well.
- Normalize MinerU API URL and endpoint trailing slashes in normalizeDraft
- Prevent browser credential autofill on MinerU API token field with autoComplete='new-password'
- Add toggleable visibility for MinerU API token with Eye/EyeOff icons
- Reset dirty flags on mounted extensions in clearPending after successful apply
- Add tests covering MinerU cloud credentials application in unified draft
Co-authored-by: 李晨 <lichen@lichendeMac-Mini.local>
Editing an early message forks the transcript and the visible path jumps
to the newest sibling, so the pre-edit history disappears from view. The
only way back — the BranchNavigator under the forked user message — was
gated behind the hover-only action row, so readers who never hovered that
one bubble saw "chat history lost, only the latest few messages remain".
Keep the single action row: the BranchNavigator renders beside Copy/Edit
and stays visible without hovering, while only Copy/Edit keep the
hover/focus reveal. No data was ever lost — rows, read path, and Memory
L1 behaviour are untouched.
Related to #1410
Co-authored-by: XZH <cto@xzh.ai>
Ship the reading, listening, question-bank, parsing, and provider updates
summarized in assets/releases/ver1-6-13.md.
Make speech timeouts configurable, report actionable synthesis failures,
and keep chat attachments discoverable in their selected workspace while
preserving earlier uploads and URLs. Keep reply playback cancellation and
single-audio ownership intact.
Sync README prose and all eleven translations, update the stable install
note, and archive release notes older than one week. Repair stale reading
test fixtures and spawned test imports, and clear the Partner type error.
Validation: 9252 Python tests and 8 subtests passed (28 skipped); 518 web
unit tests, 1253 Node tests, and 62 browser audits passed. Pre-commit, ruff,
typecheck, contracts, architecture, i18n, production build, route budgets,
and the docs build passed.