Commit Graph

77 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
453b06063b Merge PR #1344 Ukrainian locale after conflict resolution 2026-09-23 10:38:18 +08:00
Bingxi Zhao (Frank)
d6825cb695 Merge PR #1344: add Ukrainian language support 2026-09-23 10:34:40 +08:00
Bingxi Zhao (Frank)
dadb762744 Merge pull request #1360 from fetw882/feat/grok-cli-connector
feat: add Grok CLI subagent connector
2026-09-23 10:34:26 +08:00
Bingxi Zhao
921160d3f8 Merge pull request #1335 from TaoufikMejri/feat/add-french-translation
feat: add french as supported language
2026-09-23 10:26:44 +08:00
Bingxi Zhao (Frank)
eabc17d79f release: v1.6.10
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.
2026-09-22 21:36:27 +08:00
Bingxi Zhao (Frank)
ee24f44fa7 fix(ui): unify accessible tooltips (#1526) 2026-09-21 14:51:29 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
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.
2026-09-21 02:30:40 +08:00
Srini Jagadeesh
ecd03c6e6e fix(web): render settings readiness panel for read-only users (#1314)
The SettingsReadinessPanel component returned null whenever its
`enabled` prop was false. The prop is wired to catalogEditable in
SettingsOverview, which means any signed-in user without edit rights on
the model catalog — every learner account, every assigned role on a
multi-user install — saw nothing where the rest of the team saw
"what is ready, what is broken, what is folded away".

Read-only users still benefit from seeing readiness:
  - The data is informational, not actionable.
  - They have the same LLM and same parser behind the scenes, and
    they deserve the same "endpoint is unreachable / misconfigured"
    signal an editor sees, so they can ask an admin to fix it.

Keep `enabled` as the gate on user-facing controls only:
  - The manual refresh button is disabled when !enabled.
  - The "Open" link on each attention row is hidden when !enabled.

This also unblocks the Playwright audit at
tests/e2e/settings-navigation.audit.ts, which mocks
/api/settings/readiness and expects the section to render the mocked
matrix. On dev/CI the catalogEditable path is not reached (no real
backend), so the panel returned null and the audit failed. The same
gate was masking this failure on dev: the previous CI step
(npm run perf:check) exited non-zero before the audit ran, so dev has
been red here since PR #1201 was merged.

Verified locally: typecheck passes (only the unrelated missing-node-
types warning); existing settings-readiness Node tests still pass.
2026-09-10 23:41:54 +08:00
fetw
6b428934fc feat: add Grok CLI subagent connector 2026-09-10 17:12:01 +08:00
Ruslan
4c6498b72a feat(i18n): add Ukrainian as a full interface and output language
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.
2026-09-09 22:16:00 +03:00
TaoufikMejri
32848a6b57 feat: add french as supported language 2026-09-09 15:00:50 +01:00
Bingxi Zhao (Frank)
01615d6c97 fix(codex): let a Docker sign-in finish from the pasted callback address
The provider redirects the browser to a loopback listener. Under Docker
that listener runs inside the container and the standard compose file
publishes only the Web and API ports, so the browser lands on a page it
cannot load while the sign-in waits until it expires. The card treated
localhost as native local execution and offered nothing else: the remote
guidance was gated behind a non-loopback hostname, so the one deployment
that most needs a way back in was the one that never saw it (#1252).

The browser can read that address even when this process cannot receive
it, so pasting it back is the recovery path. It goes to a new
authenticated endpoint on the Web origin, which resolves the caller's
*own* pending operation rather than scanning every login in the process
— the loopback route has to identify itself by OAuth state because it
arrives without a session, and this one does not.

``parse_oauth_callback_url`` is where the address is judged, once: it
must be this login's registered redirect URI down to scheme, host, port
and path, and a repeated OAuth parameter is ambiguous rather than
untidy, so it is refused instead of resolved to one of the two. The
string is parsed and dropped — never fetched, never stored, never
echoed. Past the parse it is ``receive_callback``, so the state check,
PKCE, the registered redirect URI and owner binding are the existing
ones rather than a second implementation of them.

The form now appears whenever a login is waiting, local or remote; the
SSH command stays remote-only, because that advice is.
2026-09-08 09:53:42 +08:00
Bingxi Zhao (Frank)
04040a2c06 release: v1.6.5
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
2026-09-06 13:46:29 +08:00
Bingxi Zhao
269f65dede feat(subagents): add hardened remote Hermes backend (#1213) 2026-09-03 16:24:34 +08:00
Bingxi Zhao (Frank)
93df3d48b7 release: v1.6.4
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
2026-09-03 01:38:54 +08:00
Bingxi Zhao (Frank)
6e6e56aedb release: v1.6.3
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.

Release notes: assets/releases/ver1-6-3.md
2026-09-02 04:09:11 +08:00
Bingxi Zhao (Frank)
fc39543bc0 feat: integrate frontend backend and canonical routes 2026-09-01 22:24:29 +08:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
829be646a1 chore(web): enforce frontend architecture boundaries 2026-09-01 19:55:48 +08:00
Bingxi Zhao (Frank)
3802991e79 refactor(web): split settings into feature-owned sections 2026-09-01 18:44:18 +08:00
Bingxi Zhao (Frank)
ace0bcf316 feat(web): expose safe multi-worker runtime health 2026-09-01 18:31:20 +08:00
Bingxi Zhao (Frank)
58271301b4 Merge pull request #1129 from evan188199-tech/codex/feat-guardian-account-ui
# Conflicts:
#	deeptutor/multi_user/guardians.py
#	deeptutor/multi_user/router.py
#	tests/multi_user/conftest.py
#	tests/multi_user/test_guardians.py
#	web/lib/settings-nav.ts
2026-08-31 22:07:03 +08:00
Bingxi Zhao (Frank)
cc52496e96 Merge pull request #1126 from evan188199-tech/codex/feat-learner-self-profile-v2
# Conflicts:
#	deeptutor/multi_user/identity.py
#	tests/multi_user/test_learner_profile.py
2026-08-31 20:50:37 +08:00
Bingxi Zhao (Frank)
b7abfae652 Merge pull request #1084 from contributor
# Conflicts:
#	web/components/settings/ServiceConfigEditor.tsx
#	web/components/settings/SettingsContext.tsx
#	web/components/settings/SettingsMain.tsx
2026-08-31 18:13:31 +08:00
Bingxi Zhao (Frank)
3dc372f551 release: v1.6.2 — immersive watching and extensible visualizers
Add synchronized YouTube learning, a plugin-driven visualizer catalog, and Hermes, OpenClaw, and DeepSeek agent harnesses. Refresh Reading, Knowledge, Partner status, guided updates, documentation, translations, and release notes for v1.6.2.
2026-08-31 01:13:07 +08:00
Bingxi Zhao (Frank)
f694f204a8 feat: add app updater and unify workspace chat flows 2026-08-30 17:40:47 +08:00
Bingxi Zhao (Frank)
ce7c2dc2dc release: v1.6.1 — one key, one navigator, one sidebar you arrange
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.
2026-08-30 13:19:42 +08:00
Bingxi Zhao (Frank)
a2f124a60d feat(settings): Models/Chat/Agents categories scroll in one page
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).
2026-08-29 23:44:15 +08:00
Bingxi Zhao (Frank)
5218e1da49 feat(settings): the task model is a service, configured like the LLM
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.
2026-08-29 21:46:15 +08:00
Bingxi Zhao (Frank)
5b04fb675d feat(settings): model pages as provider cards you open into models
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.
2026-08-29 21:27:42 +08:00
Bingxi Zhao (Frank)
3867bee523 style(settings): divide with rules and whitespace, not boxes
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.
2026-08-29 21:14:17 +08:00
Bingxi Zhao (Frank)
8ac76a4cec style(settings): rebuild the navigator in the app's own language
The settings column was invented rather than borrowed, and it showed.
Measuring it against `SidebarShell` — the same kind of element, on screen
in the same app, all day — the differences were all in the wrong
direction:

- No icons at all, so a 23-row column was a wall of text with nothing to
  aim at while scanning. Every page already declares an icon in
  `settings-nav.ts`; none of them were being drawn.
- Rows a half-step tighter and smaller than the app's (12.5px/py-1.5/md
  against 13.5px/py-2/lg), which read as cramped rather than compact.
- The active row tinted with `--muted`; the app uses `--accent`.
- Idle rows in `--muted-foreground` while group labels were medium-weight
  at 70% — so the labels were heavier than the pages under them and the
  hierarchy read upside down. Group labels now match the "Recents"
  heading: 11.5px, normal weight, 60%.

Also two measurements off the rest of Settings. The radius scale had five
tiers with `rounded-2xl` used exactly once outside the tour overlay, so
the status strip joins the `xl` tier and the scale is four clean steps.
And the overview's title was 24px where every other settings page is 22px.

Shadows were counted too and left alone: all seven are on controls — a
toggle knob, segmented-control selection, a tooltip — not stacked on
cards, which is the pattern worth removing.
2026-08-29 21:03:44 +08:00
Bingxi Zhao (Frank)
f76c37cf9f fix(settings): restore what the removed hub carried, and the narrow layout
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.
2026-08-29 20:52:23 +08:00
Bingxi Zhao (Frank)
af2c225c73 refactor(settings): persistent navigator, searchable, one click to any page
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.
2026-08-29 20:36:54 +08:00
Bingxi Zhao (Frank)
ed68087fbf fix(settings): make Save draft real, and stop losing edits on navigation
Save Draft and Apply were the same write. Both persisted to the live files
and both invalidated the runtime caches, so nothing but their labels told
them apart — and Save Draft only ever wrote the model catalog, while half
the settings pages (memory, starting points, network, attachments,
document parsing) keep their state outside it.

The result was silent data loss, reproducible in four steps: open Starting
points, change 20 to 44, press Save Draft, read "Draft saved" — the server
still had 20, and navigating away lost the edit with no warning. The
button was enabled, because `hasUnsavedChanges` counted extension state
that `saveCatalog` never touched.

So a draft is now a place rather than a label. One envelope holding the
catalog and a payload per page, stored beside the live settings and read
by nothing else:

    Save draft  → envelope written, runtime untouched
    Apply       → live files written, envelope cleared
    Discard     → envelope dropped, back to what is live

Two other losses closed along the way. Unsaved page state now lives on the
provider instead of the page, so moving around inside Settings keeps it —
a settings page unmounts on every navigation, which is why the edit
vanished. And an edit that exists nowhere else warns before the tab is
closed or reloaded.

The toolbar had no way to say "there is a draft waiting", so a draft saved
yesterday would have sat there unexplained; it now reports which of the
three states you are in. The storage path moved into that line's tooltip —
self-hosted users occasionally want to know which file backs a page, but
it is a developer fact and was on screen for everyone.
2026-08-29 20:27:33 +08:00
Bingxi Zhao (Frank)
b356d49154 feat(settings): open a connection's services on their own profile
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.
2026-08-29 19:22:38 +08:00
wayblink
2ba5e3aa5d feat(llm): support explicit OpenAI wire API selection 2026-08-29 15:02:31 +08:00
Bingxi Zhao (Frank)
a9f67eb3aa feat(settings): connections layer + per-task model pinning
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.
2026-08-29 11:50:10 +08:00
Bingxi Zhao (Frank)
bd80a4d28a release: v1.5.17
Partners stop being a deployment-wide admin resource and become
per-user: three nested rights (manage / use / neither) replace the
blanket admin gate on the router, each member can build and own their
own, and every person's conversations with a partner stay private to
their account. Grants keep working and now offer only admin-managed
partners. Channel runtime state moves from one directory per channel to
one per partner — copied, not moved, and only when its owner is
unambiguous — so two partners can finally run the same channel.

Around that: a knowledge base can track GitHub repositories and re-sync
their Markdown (#903); Antigravity CLI joins My Agents now that Gemini
CLI is retired (#828); personal WeChat signs in from a QR code drawn in
the browser instead of the server log (#951); a chat account can be
linked to a DeepTutor account with /link; containers re-apply the extras
they declare instead of losing them at compose down (#762); and
`deeptutor doctor` answers whether a workspace is ready to run (#959).

Reliability, largely from community PRs: embeddings survive a
rate-limited provider through key rotation, a retry budget and a global
throttle (#962); MinerU parsing and code execution work on Windows
(#844, #964); indexing fails bounded instead of hanging (#946); MinerU
page-layout blocks stop being indexed as content (#949); voice uploads
carry a MIME the transcription API accepts (#945); and reasoning effort
can be overridden per conversation (#641).

Release plumbing: notes in assets/releases/ver1-5-17.md, v1.5.13
archived, __version__ 1.5.17, README Releases row and all eleven
translations synced.

Two defects found by the release gate and fixed here:

- Six partner routes — the four channel-onboarding endpoints and both
  WeChat QR endpoints — kept the _auth-only mount they had inherited
  from the blanket admin gate, so any signed-in account could start a
  QR login for someone else's partner and write a bot token into its
  channel config. All six now declare _MANAGEABLE, and a sweep test
  asserts no {partner_id} route is left ungated.
- A configured api_key became `str | list[str]` when key rotation
  landed, but ten call sites pass it somewhere that takes one key; a
  list would have rendered into an Authorization header verbatim.
  keypool.primary_api_key reduces at each boundary.

Gates: pre-commit (all 15 hooks), ruff check + format, pytest
5276 passed, web 605 node tests, docs build.
2026-08-25 02:24:35 +08:00
Bingxi Zhao (Frank)
7c6bcfaef7 release: v1.5.14
Immersive Reading, self-configuration, and a two-way IMA library.

- Immersive Reading: a new capability that opens a document beside the
  thread. New reading engine (PDF pages / slides / page-sized sections),
  five reading tools, a deterministic locate pre-pass that grounds the
  turn without a second LLM call, /api/v1/reading, and a reader pane with
  selection, highlights, notes, and export to an annotated PDF or Markdown.
- Setup capability: inspect the install, apply a setting, install a
  parsing engine, or request a credential from a chat turn. New settings
  spec table; a candidate value is probed before it is committed, and API
  keys never enter the model's context.
- Tencent IMA: pipeline split into transport/envelope/models/sources/
  notes/media/inventory, an additive capability with five tools, and
  connected libraries that can finally be enumerated (bounded listings
  are reported as a lower bound).
- Retrieval: supports_rag_retrieval() replaces is_connected_kb() for the
  "can I sweep this?" question, so linked / lightrag_server / ima sources
  stop being silently dropped from every book.
- Notebooks: their own console at /notebook, per-notebook locks and atomic
  writes, copy / move / export routes, damaged files surfaced instead of
  dropped, and renaming a record no longer clears its knowledge-base link.
- Settings persistence: one lock and one atomic replace shared by every
  writer of interface.json; the PUT endpoints stop writing the
  defaults-merged view back to disk.

Release notes: assets/releases/ver1-5-14.md
2026-08-19 17:34:52 +08:00
Bingxi Zhao
caa566cf21 fix: protect model catalog secrets in settings API (#857)
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.
2026-08-16 22:43:40 +08:00
Bingxi Zhao (Frank)
23ad80d1bf release: v1.5.12
Web search was rebuilt onto a single spec table and six providers were
added on it — Doubao, Bocha, Zhipu, Firecrawl, Baidu Qianfan, and Aliyun
IQS. Consolidating seven copies of the provider list is what surfaced
three silent defects: Serper's `num` never reached the API, Serper
dropped its proxies, and Jina had no result-count limit. A runtime search
failure now walks the account's other credentialed profiles and finally
DuckDuckGo instead of failing the turn, recording the downgrade under a
top-level `search_fallback` key; a *missing* key still fails loudly for
the six new providers, five of which are China-hosted and cannot reach
the fallback anyway.

Also here, by way of main: LiteParse as a sixth document-parsing engine,
and MCP servers that reconnect when a stored credential is rotated and
report a dead transport as itself rather than as a tool timeout. Plus
CodeBuddy and OrcaRouter model providers, a persisted Codex
reasoning-effort override, and vision on OpenAI Codex.

Notes: assets/releases/ver1-5-12.md

This commit also carries the README prose sync, the ten translated
READMEs (which gain the Open Source Partners section they were missing),
the release-notes archive sweep, and the version bump.
2026-08-13 18:49:48 +08:00
Bingxi Zhao (Frank)
f4f2a73b2a feat(search): rebuild the search provider layer and add six providers
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.
2026-08-13 16:41:39 +08:00
Ching Wing Kwok
8297fc7b7e feat(provider): add codebuddy as a LLM provider (#780)
* 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>
2026-08-13 00:02:42 +08:00
NoxsMedia
104e844b55 feat(codex): persist managed reasoning effort overrides (#789)
* 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
2026-08-12 23:38:15 +08:00
Bingxi Zhao (Frank)
456f9c2422 release: v1.5.11
What happens while the answer is still being written. Prose that shared a
round with a tool call vanished into the trace, a truncated generation read as
the model deciding it had finished, and local indexing sat on the event loop
everything else needed.

- DSML tool calls are stripped from the stream incrementally instead of
  all-or-nothing. Once a round's content channel showed markup, the rest of it
  was diverted to the thinking channel, so any prose around the call left the
  answer. DSMLStreamFilter suppresses only the envelope and the invoke blocks;
  text before, between and after streams and persists (turn_runtime carries
  answer_visible rounds into the assembled answer). An incomplete invoke is
  released verbatim by flush, and a 512-char ceiling stops a stray `<` in
  ordinary prose from making the live stream wait for a closing bracket.
- DSML parameter decoding consults the declared schema. DeepSeek marks
  essentially every parameter string="true", arrays and objects included, so a
  container argument reached the tool as a string of JSON. A parameter the
  schema types array/object is parsed when the payload actually matches; the
  provider's string contract still wins elsewhere. The catalog is kept when a
  provider rejects native `tools` and the loop falls back to DSML — exactly
  when the parser needs it.
- The round budget is three stages: exploration, a bounded settlement window
  (MAX_SETTLEMENT_ROUNDS, tools still available so an already-started
  interaction can finish), then one tool-less hard finish. A `length` finish is
  an incomplete generation, not a decision to stop: the visible prefix is kept
  and a continuation requested, under the same upper bound of exploration + 4.
- Resident memory across the process tree, at GET /api/v1/system/memory and in
  the settings strip. runtime/memory_probe.py walks the tree; psutil is
  imported lazily with a /proc fallback, so a missing wheel costs the strip and
  not the app, and non-admins get {available: false}. The strip drops
  LLM/Embedding/Search, which restated what the Models and Chat pages own.
- Local LightRAG indexing runs on a worker thread's own event loop.
  RAG-Anything's local backends do synchronous graph merging and JSON
  serialization inside async methods, stalling unrelated API and LLM work;
  OwnerLoopBridge forwards LLM, vision and embedding calls back to the
  request's loop with a copy of the caller's contextvars.
- Mastery works from the persisted question. learning/pending.py projects a
  PendingQuestion into the public contract (prompt, type, label/body map) with
  the expected answer server-side; ask_user renders that instead of display
  data the model re-authored, and registration validates the quiz shape rather
  than silently accepting a contradictory one.
- Connected KBs answer honestly about local files (empty listing, explicit 409
  where a local file is required) instead of resolving a raw/ directory that
  does not exist. resolve_public_output_path replaces is_public_output_path so
  the new request-scoped /api/outputs endpoint authorizes and resolves in one
  operation and fails closed with no request user. Visualize iframes measure
  body content so they shrink as well as grow, and the chat page's model list
  is fetched once behind a single-flight hook.

test_forced_finish_still_reports_the_tools_the_turn_carried asserted the old
two-stage budget (exhausted exploration = the next call is the tool-less
finish); it now drives through settlement to reach the real hard finish. Also
syncs the README prose, all ten translations, and the release-notes archive.
2026-08-10 00:47:37 +08:00
Bingxi Zhao (Frank)
712d4137f0 feat: DSML streaming robustness, memory observability, and mastery pending questions
Work in progress carried over from earlier sessions, committed together.

Chat / DSML:
- Tolerate partial and malformed tool-call tags mid-stream, with a character
  ceiling so a stray "<" cannot make the live stream wait forever for its
  closing bracket.
- Narration rounds can now mark their prose as visible, so a DSML round that
  keeps the text surrounding a call has it persisted as part of the answer.

Runtime observability:
- New deeptutor/runtime/memory_probe.py reports resident memory across the
  process tree, exposed at /api/v1/system/memory and surfaced in the settings
  status strip. psutil is a soft dependency, imported lazily with a /proc
  fallback, so a missing wheel costs the strip and not the app.

Mastery:
- New deeptutor/learning/pending.py projects a persisted PendingQuestion into
  the smaller public contract safe to hand the tutor model, and owns the
  multiple-choice translations shared by registration and grading.

LightRAG:
- New pipelines/lightrag/worker.py moves local indexing onto a worker thread's
  own event loop, so RAG-Anything's synchronous graph merging stops stalling
  unrelated API and LLM work.

Also: request-scoped output artifact delivery (api/routers/outputs.py),
partner runtime and path_service adjustments, and CLI chat renderer updates.
2026-08-09 02:31:44 +08:00
Bingxi Zhao (Frank)
4041c75d8e feat(multi-user): let each account sign in to its own Codex (#781)
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.
2026-08-07 21:09:40 +08:00
wayblink
be14c3ef23 feat: separate UI and model response languages (#758)
* feat: separate UI and model response languages

* refactor(settings): keep one owner for the interface.json language rules

The legacy migration — a file written before the UI/response split
inherits its single language into both fields — had been duplicated into
both readers of interface.json, as had the theme/language defaults. Two
copies of a migration rule drift.

Move the rule into resolve_languages() in the module that owns the file,
have the router compose its superset of defaults on top of the service's,
and cover the agreement with a test that reads one legacy file through
both paths. The helper also drops the separate key-presence check:
_normalize_language already falls back to its default for missing, null
and unrecognized values alike.

* fix: keep the language bootstrap single and local-choice-first

Merging dev surfaced three collisions this branch had not seen:

- The new bootstrap fetched /settings/ui unconditionally and overwrote
  writeStoredLanguage on every mount, undoing #730's rule that a choice
  made in this browser is the more specific signal and must win. Folded it
  into the existing guarded effect so one fetch serves both language
  fields and neither can clobber a local selection.
- apiFetch/apiUrl ended up imported twice in AppShellContext, which git
  merged without a conflict and tsc rejects outright.
- Three tests still stubbed get_ui_language at call sites that now ask for
  get_response_language: the question router's stand-in module and two
  mastery_path patches (renamed the zh case to say response language).

* fix(api): include response_language in the pre-session UI read

The bootstrap adopts both languages from this one endpoint, so leaving
response_language out of the projection meant a fresh browser always
inherited the interface locale and never saw the saved output-language
preference. It belongs with the other two: all three are the visitor's
own presentation choices, none describe the deployment.

---------

Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
2026-08-07 03:13:04 +08:00
Dongyu
74004c4125 feat(settings): add a per-model reasoning effort selector (#736)
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.
2026-08-03 20:59:38 +08:00