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.
Adds `uk` alongside `en` and `zh`: a complete `web/locales/uk/app.json`
(4009 keys), a Ukrainian CLI label set (102 keys), a Ukrainian quiz-judge
prompt, and the language directive that tells the model to answer in it.
Most of the diff is not the translation — it is the six independent
places that each decided, on their own, which languages exist. Every one
of them collapsed an unknown code to English *silently*, so picking
Ukrainian in Settings produced an English UI, English AI feedback and an
English chat reply, with nothing logged anywhere:
* `services/settings/interface_settings._normalize_language` — the
canonical normalizer; `interface.json` stored `uk`, the API returned
`en`, and it looked like the setting had failed to save.
* `agents/loop/prompt_blocks` — conflated two different things in one
attribute: which prompt ASSETS exist (yaml ships `en`/`zh` only) and
which language to ANSWER in (any). Split into `language` and
`output_language`; the directive now takes the latter.
* `api/routers/quiz_judge` — the supported set is now derived from
`_JUDGE_SYSTEM_PROMPTS`, so a language cannot be advertised without a
prompt or shipped without being advertised.
* `web/i18n/init` — `normalizeLanguage`/`ensureLanguage`, plus a new
exported `APP_LANGUAGES` that every picker maps over. The Settings
toggle inlined `["en", "zh"]`, so a new locale was invisible there
even once it existed.
* `web/context/app-shell-storage` — held a second, private copy of the
`AppLanguage` union; re-exported from `i18n/init` instead.
* `runtime/banner` and `services/config/settings_spec` — the CLI wizard
labels and the Settings language list.
Tool hints stay a per-language map from the API where only `en` is
guaranteed, so `ToolsSettingsSection` falls back instead of indexing a
missing key. Backend prompt yaml is still `en`/`zh`; Ukrainian uses the
English scaffolding with a Ukrainian output directive, which is what the
directive is for.
`tests/i18n/test_ukrainian_locale.py` pins each seam — locale key parity,
placeholder integrity, judge/prompt/normalizer coverage, and that the
Settings toggle maps over `APP_LANGUAGES` rather than a literal — so the
next language fails in CI rather than quietly in the UI.
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.
Release notes: assets/releases/ver1-6-4.md
Model configuration was one layer replicated seven times: every service
stored its own profile with its own credentials, so a single OpenRouter
key had to be pasted into five separate pages. This release splits that
in two — a **connection** holds one vendor credential and links it down
to every service that vendor can serve, and a **task model** takes the
calls nobody asks for (naming a conversation, writing the composer's
starting points) off the model picked for actual reasoning. Both are
opt-in; existing per-service profiles resolve exactly as before.
Around that: Settings drops the card grid for a persistent searchable
navigator whose landing page answers "what state am I in" instead of
repeating the directory; Mastery Path files study conversations under
their topic and opens them in the tutor rather than dropping them on
/home; the sidebar folds features into More and reorders by drag; the
reading companion is rebuilt from /home's own chat components; and the
LightRAG engine talks to the SDK directly, so its extra no longer drags
MinerU in transitively.
Also back-merges PR #1041 (Anthropic SDK 1.x temperature via extra_body)
and PR #741 (owner-only auth secret/token files), which had been merged
straight into main and never flowed back to dev.
Release notes: assets/releases/ver1-6-1.md
Gates: pre-commit 15/15, ruff clean, pytest 5802 passed, web 450 node
tests, eslint 0 errors, docs build clean.
Promotes the three multi-leaf settings categories (Models, Chat,
Partners & Agents) to a continuously-scrolling page each, Feishu-style:
the category itself becomes a top-level nav row and its leaves become
a collapsible sub-list whose links are same-page anchors instead of
separate routes, so switching between them scrolls instead of
remounting. The category root pages (models/chat/agents) now render
every leaf stacked via a new CategoryScroll component with rect-based
scrollspy (no IntersectionObserver, per prior findings that it does
not reliably fire in this app's render surfaces).
Three things from a look at the new model pages.
The next section's rule was drawn on top of the cards: the grid and the
panels below it were siblings, so the container's spacing never applied
between them.
Cards that open now look like it — a chevron in the lower right that
shifts on hover, a border and tint that lift, a press that registers.
They read as panels that happened to be clickable, which is the same as
not clickable. Search cards draw no chevron, because they have no models
to open into, so the two kinds are told apart before you click.
And the task model was wrong twice over. It asked which model should
name conversations and which should write the starting points, as if
anyone would answer those differently — both are short, frequent, and
want the same small fast model. It is one setting now. It also asked for
that model through a flat dropdown, when it is the same kind of thing as
the LLM and deserves the same shape: the catalog carries a `task`
service, so the whole provider/model editor applies to it unchanged, and
a provider already set up for chat can be brought over instead of typed
again. Empty stays the default and the common case — both calls then
resolve the LLM exactly as before, and the page says so and shows which
model that currently is.
Two tests stopped hardcoding the list of services and derive it, so the
next one to be added needs only its own test written.
A model page opened on a form. Which provider it was editing lived in a
sticky list beside it, the provider's models were a row of chips above
their own fields, and clicking anything in either one also changed what
the app was running on — the page had no way to show you a provider
without adopting it.
It is two levels of cards now. The page lists the providers configured
for its service; opening one drills into its models; each card expands in
place to edit what it holds. Adding and deleting live where the thing
being added belongs, and a back row names where you are.
The move needed browsing and using to come apart, which is the fix I said
last week was too big to reach for. The context's mutators take an
optional profile/model id and keep their old meaning without one, so no
existing caller changed; the editor binds them to whatever is on screen,
which is why ~300 lines of field editors moved between levels untouched.
"In use" is now stated on the card that has it and offered on every other
one, instead of being whatever you clicked last.
That also retires the warning strip from the connections deep link. It
had to exist because following the link adopted the profile it landed on;
now it just opens that provider's panel and changes nothing.
Search keeps one level — it has no models to drill into — and its cards
say so by not being openable.
Every section was a bordered, tinted panel wrapping rows that already
separated themselves with hairlines — the same content divided twice, and
the densest concentration of boxes anywhere in the app. The rest of
DeepTutor divides with hairlines and whitespace; Settings now does too.
`SettingSection` drops the panel for a single top rule, which is also
what keeps sections holding custom content (theme tiles, previews) from
coming apart. The model pages' two main panes become titled sections with
the same underline, so a page reads as three sections rather than three
stacked cards. Rows tighten from py-4 to py-3.5 and lose the padding the
box used to require.
Boxes that survived are the ones that are meant to interrupt: the
"opened from Connections" notice, the add-connection panel, the Codex
sign-in card, the network status block. The profile list keeps a
container because it is a navigator, not content — retinted to the same
accent the app sidebar uses.
Auditing the refactor against the old surface turned up one thing it had
genuinely dropped and several it had thinned out.
The navigator is hidden below `md`, and the breadcrumb went with the
refactor — so on a phone, landing on a settings page left no way to reach
any other one. A compact native select now carries the same map there.
Three things the deleted hub and sub-hub grids used to show came back:
- Each model service's state. The sub-hub tiles had a four-way chip —
test passed / test failed / configured / not set — and only "failed"
survived, as a dot in the navigator. The overview lists all seven
services with that chip plus what each one actually resolves to, which
is more than the tiles said.
- The browser-facing API base, previewed on the old Network card. It is
the first thing to check on a Docker or LAN install.
- The one-line description under each page name, now the row's tooltip.
The tour copy still described blocks on a hub that no longer exists.
Also fixes a pre-existing break the audit surfaced rather than caused:
the profile list and the editor beside it were a hard two-column grid
with no breakpoint, so every model settings page overflowed its container
on a phone with fields cut off mid-input. They stack now.
Settings was a folder tree. The hub listed seven categories, four of them
opened a second grid, and the page you wanted was the third click — then
changing something in another category meant climbing back to the root,
because a breadcrumb was the only navigation on the page. Two dozen pages
and no search.
Now there is one persistent column listing every page, with the current
one marked, and a filter over it. Every comparable product — VS Code,
Slack, GitHub, Stripe, Dify, Open WebUI — keeps the map on screen; this
one hid it behind the route you happened to be on.
Consequences:
- The three sub-hubs (models, chat, agents) were grids that only repeated
those links, so they redirect to their first page. The routes stay
bookmarkable.
- The breadcrumb is gone: the column shows where you are, and a trail
ending in the page title directly above the page title said one thing
twice.
- `/settings` was a directory of the seven categories. It answers "what
state am I in" instead: how many model services are set up, what needs
attention (a draft waiting, a service that failed its last test), what
is actually in use, and what is still unconfigured.
- The guided tour walked the hub blocks, which no longer exist; it walks
the navigator, which is present on every route.
Two things surfaced along the way. Antigravity CLI is a supported
subagent everywhere else — backend kind, icon, label, its own settings
page — but was missing from the nav, so that page was reachable only by
typing the URL; Gemini CLI is retired and this is what replaced it.
And deleting a provider profile took its key and every model under it
with no confirmation, from a control sitting one hairline below the list
you click through to switch profiles; it asks first now.
Three changes to how Connections hands off to the service pages.
Task models sits next to LLM in the Models grid rather than at the end —
it configures the same thing, so it belongs beside it.
The services a connection supplies are now links, not labels, and each
carries the profile it feeds (`?profile=<id>`). A service with several
providers configured would otherwise open on whichever one happened to be
selected, which is not where the click was aimed.
Selecting a profile in the service editor is also what puts it in use, so
arriving from a connection announces the switch instead of making it
quietly: a strip says applying will adopt this profile, with one click
back to the one that was selected before. Landing on a profile that is
already the active one says nothing and changes nothing.
Also fixes a latent race the deep link surfaced: the mount effect depends
on `loadSettings`, which closes over `t`, whose identity changes once i18n
resolves — so settings loaded a second time a moment after mount and
re-cloned `draft` from the server, discarding anything edited in that
window. Guarded to run once; `reloadSettings` stays the deliberate re-read.
Model configuration was one layer replicated seven times: every service
stored its own profile with its own credentials, so a single OpenRouter
key had to be pasted into five separate pages. Every comparable product
(Dify, Open WebUI, Cherry Studio, RAGFlow) splits this in two — a
credential entered once, then a per-purpose assignment — so this adds
that split without disturbing what already works.
Connections
A connection holds one vendor credential (api_key / api_version /
extra_headers, plus an optional endpoint override). Linking creates one
ordinary profile per service that can use it, and the credential is
mirrored down on save rather than resolved on read — so every consumer
of the catalog keeps reading self-contained profiles and a linked
profile resolves exactly like a hand-typed one. Rotating the key in one
place reaches every linked profile; deleting a connection unlinks
rather than wipes. Anyone wanting a different key per service simply
never makes a connection.
Which services a vendor can serve is derived from the six provider
tables that already exist (new `connection_targets` in GET /settings),
so the web app keeps no second copy and adding a vendor to a service
table is enough to make it connectable.
Task models
Naming a conversation and writing the three home-screen starting points
are LLM calls nobody asked for — short, frequent, and fine on a small
fast model. Both can now be pinned to their own configured model from
Settings > Models > Task models. Unpinned is the default and a true
no-op: the title still follows the turn's own model and the starters
the active one, exactly as before. A pin at a deleted profile reverts
to inheriting rather than stranding the call.
Redact credentials from catalog responses and diagnostic streams, restore masked placeholders server-side, and resolve saved credentials for model discovery without returning them to the browser.
Two pieces of work land together because the second is built on the
first: the provider layer was consolidated onto one spec table, then six
new providers were registered against it.
Layer overhaul
- Converge seven separate provider lists (backend registry, runtime
config, settings router, CLI wizard, frontend catalog, i18n, tests)
onto a single SEARCH_PROVIDERS spec table; every consumer derives from
it instead of keeping its own copy.
- Fix three silent defects: serper's `num` never reached the API (it was
swallowed by **kwargs, so max_results did nothing), serper dropped its
proxies, and jina had no result-count limit at all.
- A runtime failure (rate limit, timeout, unreachable network) no longer
fails the whole turn. The request walks the user's other credentialed
search profiles and finally DuckDuckGo, recording the downgrade under
a top-level `search_fallback` key so the trace shows what happened.
- Drop three provider modules that were never registered (exa, baidu,
openrouter). They stay in the deprecated list, so a stale config reads
as outdated rather than as a misspelled name.
Six new providers
doubao, bocha, zhipu, firecrawl, qianfan, aliyun_iqs — selectable under
Settings > Catalog > Search with their credential fields derived from the
spec table, and offered by `deeptutor init`. All six set
`soft_fallback=False`: five are China-hosted and the DuckDuckGo fallback
is unreachable on those networks, so a missing API key has to fail
loudly instead of silently timing out somewhere else.
Baidu returns as `qianfan` on the official Qianfan API; the old `baidu`
key stays deprecated.
* feat: add codebuddy provider
* fix: treat codebuddy as login-backed provider
* feat: sync codebuddy account models
* fix: ignore no-key placeholder for codebuddy
* feat: add codebuddy web login
* fix: streamline codebuddy settings and latency
* fix: support switching codebuddy accounts
* fix: preserve codebuddy sessions and tool calls
* feat: use CodeBuddy HTTP provider over Agent SDK
Chat with CodeBuddy over plain HTTP by reusing the login state that the
IDE plugin / CLI stores on disk, instead of bundling the ~130MB Agent SDK.
- add codebuddy_http_provider (OpenAI-compatible /chat/completions on
<endpoint>/v2) with codebuddy_credentials for local OAuth session reuse
- provider_factory picks HTTP transport whenever a login state or API key
is available; Agent SDK stays as fallback for CLI agent features
- demote codebuddy-agent-sdk from core deps to optional codebuddy extra
- default model codebuddy/default -> codebuddy/hy3
- update auth card UX and locales for SDK-less sign-in flow
* chore: label codebuddy provider as codebuddy/workbuddy in the dashboard
* style: apply pre-commit formatting after upstream merge
* chore: capitalise codebuddy provider label as CodeBuddy/WorkBuddy
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
* feat(codex): persist managed reasoning effort overrides
* fix(codex): protect managed catalog refresh state
* feat(codex): allow user reasoning overrides
Expose only owner-scoped managed Codex model metadata and validate updates against provider-supported reasoning levels. Add ordinary-user settings controls without granting model catalog or provider administration access.
* fix(codex): bind reasoning overrides to OAuth account
Persist only a one-way account binding on managed Codex profiles. Hide and reject stale or legacy-unbound reasoning controls until a successful catalog refresh, and do not carry overrides across account switches.
* fix(codex): reject stale cross-account overrides
* fix(codex): isolate account switches at runtime
A Codex token authorizes one person's ChatGPT plan, so the profile is
correctly never grantable — but the OAuth endpoints were admin-only too,
which left ordinary users unable to reach Codex by any route: they could
neither be given the administrator's profile nor sign in for themselves.
What made per-user sign-in unsafe was where the profile landed:
``get_model_catalog_service()`` resolves a non-admin to the ADMIN catalog, so
a user's sync would have published their profile into the shared one. A
sign-in now publishes into the owner's own catalog, keyed by the same owner
resolution as the credential store, so a login and its profile can never
land in different places. Ordinary users get
``data/users/<uid>/settings/model_catalog.json``; an administrator gets the
shared catalog exactly as before.
``redacted_model_access`` — the one place grants are resolved — gains those
personal rows (source="personal") for the caller's OWN id only, so the
option list, the capability gate, and selection validation agree without
three separate merges, and an administrator inspecting somebody's grants
still sees only what they assigned. The resolution path merges the same
profiles so a personal selection resolves to a real profile, with the
owner's copy winning over a shared profile of the same managed id (the ids
are per-provider constants, and the administrator's copy lists their models,
not the user's).
Runtime token ownership needed no change: the provider already reads the
token per owner. Endpoint gating is narrower rather than absent — a partner
is refused, since it is a synthetic user whose owner is a real account and
admitting one would mean acting on that person's login, sign-out included.
The restricted-user Settings → LLM page grows the connect/refresh/sign-out
card (no catalog, no credentials), and a sign-in now drops the cached model
options so a freshly connected account does not keep seeing the old list.
Models → LLM now exposes a per-model reasoning-effort default, persisted on the catalog entry and honored by the existing ResolvedLLMConfig path. Options are provider- and family-specific because the adapters do not share one enum, and a value already stored stays listed even when the table excludes it, so a profile sending a rejected value can be reset to Auto.
Also fixes two Anthropic request-building bugs the selector would have made reachable: an off-sentinel effort (`none`/`minimal`) used to fall through to the budget branch and turn thinking ON on pre-4.7 families, and `adaptive` was offered to families that only accept enabled+budget_tokens.
Closes#735.
Maintenance release on top of v1.5.4, with two new ways to bring a model.
- OpenAI Codex is a first-party OAuth provider (#690): browser sign-in
against your own ChatGPT plan replaces the API-key fields, credentials
stay in <user-root>/private/openai-codex/ with owner-only permissions,
and the managed profile is owner-bound so it is never handed out through
grants or made active over an already-configured LLM.
- Eden AI joins as the 35th LLM binding (#671), an OpenAI-compatible
gateway addressed as <provider>/<model>.
- Knowledge bases answer from a real document inventory instead of
guessing from retrieval hits: a per-KB inventory rides the system prompt
and a new kb_files tool enumerates on demand with glob/substring
filters, mounted under rag's gate and deniable per partner.
- The rag tool cites the chunks, entities, and reports retrieval actually
returned (#694) rather than an echo of its own query; the local LightRAG
pipeline still surfaces nothing to cite.
- GraphRAG indexing runs on a worker thread with its own asyncio loop
(#695), so UVICORN_LOOP=asyncio is no longer needed, and two config
faults that broke the first run are fixed (#699).
- Assorted: unique optimistic message ids (#698, a v1.5.4 regression that
dropped the assistant reply from the visible thread), partner-chat
manual scrolling respected (#704), claude-opus-5 recognized as
effort-based (#703), Kimi models omit temperature outright, and
deeptutor start keeps relaying logs on legacy Windows code pages (#702).
- Typing: narrow the loopback callback server to asyncio.Server and gate
the msvcrt lock path on sys.platform so it type-checks off Windows.
Release notes: assets/releases/ver1-5-5.md
Replaces the oauth_cli_kit indirection with DeepTutor's own PKCE loopback
sign-in, an account-scoped live model catalog, and a Settings card that exposes
only the OAuth surface. Credentials live in `<user-root>/private/openai-codex/`
with owner-only permissions, atomic writes, and a generation guard that stops a
late refresh from resurrecting a signed-out session; `~/.codex` is never read or
modified. A CLI path shares the same service.
A Codex token authorizes one person's ChatGPT plan, so credentials anchor to the
signing-in account's own root and the managed profile is marked `owner_bound`:
`redacted_model_access` drops it for every caller, and it is not offered as an
assignable model. Signing in publishes the profile but only activates it when no
LLM is configured yet, so it never repoints a deployment that already has one.
Also from review: reschedule the status poll so one dropped response cannot
strand the card on "waiting"; defer the catalog reload when the operator has
unsaved edits instead of discarding them; log the real cause behind the generic
provider error; stop promising a retry when the token refresh actually failed;
bind both loopback stacks since `localhost` may resolve to either; and drop the
provider metadata fields nothing consumed.
A broad consolidation release across four product surfaces.
- Learning Space: Space becomes a learning dashboard; My Agents imports
local Claude Code / Codex chat history into resumable agents (with an
objective explore_context briefing so the tutor never role-plays the
user); Memory is promoted to a top-level /memory route; Partner
conversations flow into Memory; EduHub skills install inline.
- Knowledge Center: /knowledge rebuilt as a console with per-engine
detail pages; GraphRAG / PageIndex / LightRAG engines join LlamaIndex;
linked-KB read-only mounts; Obsidian live-vault capability.
- Settings: pluggable document parsing (MinerU / Docling / MarkItDown)
with a content-addressed cache and MinerU cloud/local backends; voice
TTS/STT; image & video generation; rebuilt settings navigation.
- Platform: per-user capability gating by assigned model; Solve rebuilt
on the chat loop with a per-step gate and mid-run failure fallback;
username login + inline errors; CLI skill publish/update; picker
polish; math-before-citation render fix.
Docs were split out to a standalone site, so site/ is now landing-page
only. Bumps __version__ to 1.4.6 and adds assets/releases/ver1-4-6.md.
Folds in mypy fixes surfaced by pre-commit (mineru/local Path typing,
knowledge/manager no-redef, explore_context token kwargs, CLI
set_dist_tag capability probe) plus prettier reformatting of
previously-committed web files.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Security: lock down the TutorBot tool sandbox (shell exec is opt-in, all
filesystem/shell access confined to the bot workspace) and isolate per-user
resources, closing #518, #517, #516, #515, #514 and #506 (first hardened in
#507).
Bug fixes: chat input disabled after the first turn (#520), KB embedding
failure on long documents (#521 / #509), profile creation under Docker
(#512 / #513), Qwen reasoning models failing native tool calling (#527 / #528),
the GPT-5 init-wizard token parameter (#508), and oversized session-event
truncation (#524).
Features: HTTP/SSE API for multi-turn chat with a specific TutorBot (#511),
multimodal image fallback for vision-capable providers without a capability
entry, safe ZIP knowledge upload, and a /settings/network page with model
fetching (community PRs #522 and #523 reimplemented locally).
Also bumps __version__ to 1.4.1, adds the v1.4.1 release notes, updates the
README Releases section, and ships the Astro + Starlight docs site under site/.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
When the LLM/Embedding/Search settings page has no profiles configured, the UI displayed 'No profiles configured. Add a profile to start.' but provided no button to actually add one. The add-profile button was only visible inside the profile editor, which never rendered when the list was empty - creating a dead end for new users.
Add a '+ Profile' button in the empty-state view, matching the existing button style used in the profile editor.
Closes#512, Closes#505
Capability infrastructure:
- New capabilities/_shared.emit_capability_result helper fills the
result envelope (label, summary, payload, render hints, UsageTracker
totals) consistently across modes.
- StatusI18n loads capability status copy from
capabilities/prompts/{en,zh}/<name>.yaml; legacy main.yaml strings
removed.
- New capabilities_settings router + service-config module power the
/settings/capabilities admin page (live capability list, defaults,
per-capability overrides).
Visualize + Animator merge:
- Visualize's AnalysisAgent now picks one of six render_types:
svg / chartjs / mermaid / html (text pipeline) or manim_video /
manim_image (Manim subprocess). The result envelope carries
render_type so the frontend delegates to the right viewer.
- math_animator capability is folded behind Visualize; the standalone
MathAnimatorConfigPanel.tsx is removed. The Animator sidebar entry
is gone, but Manim outputs and existing records remain unaffected.
Settings UI:
- /settings page split into appearance / capabilities / embedding /
llm / mcp / memory / search / status / tools tabs with a shared
layout and items index.
- New /settings/tools page lists chat-mountable tools and surfaces
availability (e.g. gh for github_query) via a new tools router.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>