A UI draft staged while GET /api/settings was failing omitted theme.
Retry showed the server theme in the form but Apply still saved that
draft, so localStorage and the document kept the old palette.
Rebuild the pending UI payload with the confirmed theme once the load
succeeds. Regenerate the router index, and correct the System preview
split and the French blurb.
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.
- `fetch_claude_code_catalog()` reads the account's model list from the
Claude Code CLI handshake (`get_server_info`), so no model request is made,
and returns display names such as "Opus 5.5" and "Fable 5.1". The
`default` entry is labelled "Default (account setting)" because managed or
user settings can pin a different model at run time. It falls back to the
bare aliases when the CLI cannot start.
- `/api/settings/fetch-models` returns those names for `claude_code`.
- Settings UI: `codebuddy` and `claude_code` now share a CLI_LOGIN_BINDINGS
set. Claude Code gets the same "Sync models" button, auto-sync on provider
switch, and hidden base URL / API key fields, without the CodeBuddy login
card.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds a `claude_code` LLM provider that runs turns through the local Claude
Code CLI via `claude-agent-sdk`, so DeepTutor can use the account signed in
with `claude /login` (including a Claude subscription) without an Anthropic
API key.
- One long-lived Claude Code process per DeepTutor session, mirroring the
CodeBuddy SDK provider's owner-task pattern.
- Claude Code's built-in tools, settings, CLAUDE.md and hooks are disabled;
DeepTutor tools are exposed through an in-process SDK MCP server and tool
calls are returned to DeepTutor's dispatcher.
- Tool turns end via max_turns=1 and are drained instead of interrupted, so
the transcript does not record an interrupted request.
- System messages become Claude's real system prompt.
- Optional extra: `pip install deeptutor[claude-code]`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new export.ics route needs a regenerated lazy-routing fingerprint.
Move the .ics download helper out of the shared calendar transport so the
workspace reminder runtime does not add blob-saving code to every layout.
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.
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.
Keep learner-facing explanations visible across finish checks, persistence, and replay. Remove mastery prose heuristics and prioritize learner objections.
Coordinate service shutdown and descendant cleanup, and preserve video lesson identity and playable results across chat completion and reload.
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>
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.
Mastery paths previously scheduled with one fixed interval template per knowledge type, which did not fit exam cramming, language drilling, science review, or learner-specific pacing.
Add four built-in strategy presets and custom per-round interval templates with validated persistence, CRUD, duplication, and path bindings. Bound paths keep a frozen strategy snapshot, replay durable evidence when switching, and mastery tools follow the bound path scheduler.
Expose strategy management in the mastery review trail, including custom interval editing and loading, empty, busy, invalid-input, and error states. Regenerate the OpenAPI contract and add focused backend and web regression coverage. Legacy paths without a binding continue to use the previous default scheduler.
A video lesson's turn directory holds the model's source next to the
built page. Only artifacts/lesson.html is added to the public-output
allowlist; Lesson.tsx and anything else in the directory stay private.
The page runs model-written script, so it is served with
"Content-Security-Policy: sandbox allow-scripts allow-popups". It then
runs in an opaque origin even when opened in its own tab, without the
API's cookies or same-origin access.
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.
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.