214 Commits

Author SHA1 Message Date
Ding Junyao
f187580271 fix: add Source Han Fonts in font-family beside Noto Fonts (#2939) 2026-11-30 15:49:22 +08:00
Qiu
506cea9d4f feat(desktop): finish Windows chat file actions (#3051)
Continues #2978 and closes #2887. Includes the original Windows file actions, integrates the changes with dev, and adds an explicit default-app action.

Co-authored-by: Botong Wu <2048400180@qq.com>
2026-11-28 13:09:15 -03:00
Bingxi Zhao (Frank)
20ac8aacf6 fix(chat): restore account-scoped side chat tabs
Fixes #2291
2026-11-15 01:20:52 +08:00
evan188199-tech
e837f0a1d9 fix(chat): never forward an unsupported reasoning-effort override (#641)
A persisted override the selected model no longer supports (e.g. a saved
xhigh after the catalog restricts the model to low/high) could reach the
provider: the selector re-listed the stale value, and the send path
forwarded the restored llm_selection.reasoning_effort unchecked.

- lib/reasoning-effort.ts: supportedReasoningEffortValues() returns the
  model's supported wire values (catalog list, else provider/model tables
  honouring declared_reasoning) without ever re-adding the stored value;
  effectiveReasoningEffort() resolves an override to null when the model
  does not support it; dropUnvalidatedReasoningEffort() strips it from an
  outgoing llm_selection — including when the option is unresolved, where
  the override is omitted (falls back to the configured default) rather
  than forwarded unvalidated.
- ReasoningEffortSelector: computeReasoningOptions uses the helper; a
  stale value is not offered and Auto renders as selected instead.
- ChatComposer: once the model options are loaded, a detected-unsupported
  persisted override is reset through the selector's onChange persist
  path; nothing is cleared while the option is still unresolved.
- ChatStateAdapter: outgoing llm_selection (live send and failed-turn
  resend) is sanitized via the last-known option catalog, which
  listLLMOptions now records (readLastKnownLLMOptions, synchronous).
- tests: helper/selector/restore-path coverage in
  reasoning-effort.test.ts, reasoning-effort-selector.spec.tsx and the
  new reasoning-effort-restore.spec.ts.
2026-11-09 22:36:10 +08:00
evan188199-tech
3b1730d758 feat(chat): per-conversation reasoning-effort selector in the composer (#641)
Carry the #958 service-layer reasoning_effort override through the whole
turn contract: the core TurnRequest LLMSelection accepts the field
(validated against VALID_REASONING_EFFORTS, old two-ID payloads unchanged),
the generated web contracts are regenerated, and ChatStateAdapter's
asLLMSelection restores a legal override instead of dropping it.

The composer gains a selector beside the model picker, offering only the
levels the selected model supports (live supported_reasoning_efforts or
the provider/model tables) narrowed to the wire vocabulary, hidden when
the model has none. The choice persists on the conversation's
llm_selection, so the next send uses it without a backend restart and
other conversations are unaffected; switching models resets the override.
Precedence stays conversation override -> profile/model default ->
provider default, and the context-budget readout reports the effective
effort beside the model when one was used.
2026-11-09 20:47:08 +08:00
Bingxi Zhao (Frank)
d362ecef2d Merge #2288 from remote-controlled-man 2026-11-06 01:56:21 +08:00
Steven Huang
6fd9505891 fix: keep composer tray menus above the input card 2026-11-01 12:10:58 +08:00
Erhan ÜRGÜN
be7b58ee01 fix(i18n): resolve the agent and subagent settings copy through the catalogs
The connected-agents page, the subagent settings editor and the run
transcript toggle picked between inline { zh, en } text, so every other
language saw English. The non-Chinese branch now goes through t(); the
three strings that were template literals become interpolated keys whose
Chinese values are the old inline text. The subagent sync time follows
the interface language instead of zh-CN or en-US.
2026-11-01 05:41:46 +03:00
Bingxi Zhao (Frank)
e2a2b5f27a Merge commit '561c7ddb6ae466ac9bc9c9a3cf75daf0b532805e' into codex/validate-reviewed-integration 2026-10-31 18:52:54 +08:00
Bingxi Zhao (Frank)
6c4218eb89 Merge commit '584472fb427ac84d739d315885da1525832f913c' into codex/validate-reviewed-integration
# Conflicts:
#	web/features/chat/messages/ChatMessageList.tsx
2026-10-31 18:52:47 +08:00
Bingxi Zhao (Frank)
88b45d524d Integrate account typography with shared reply languages and current settings validation 2026-10-31 17:59:13 +08:00
Bingxi Zhao (Frank)
d002053ab9 Merge dev and refresh the API routing index 2026-10-31 17:26:35 +08:00
Bingxi Zhao (Frank)
561c7ddb6a fix(chat): serialize workspace draft transfer and unmount saves 2026-10-31 17:22:06 +08:00
Bingxi Zhao
52665c1a6a Merge pull request #2219 from x-labb/fix-2036-inline-presented-source-page
fix(mastery): show a presented source page at the call that presented it
2026-10-31 17:15:28 +08:00
Bingxi Zhao
1103198107 Merge pull request #2127 from Frank-zhu2000/fix/2053-resource-popover-overflow
fix(web): keep the composer resources popover inside the viewport
2026-10-31 16:50:41 +08:00
Bingxi Zhao
e1ab417bad Merge pull request #2128 from 0x-IHRR/feat/math-animation-file-actions
fix: show file actions for direct exec attachments
2026-10-31 16:50:09 +08:00
Bingxi Zhao (Frank)
da1a63051c fix(composer): preserve early drafts and serialize send cleanup 2026-10-31 16:48:32 +08:00
x-labb
72a5a172a8 feat(web): render right-to-left text correctly with per-block dir=auto 2026-10-30 22:27:33 +01:00
x-labb
6aee33b228 fix(mastery): show a presented source page at the call that presented it 2026-10-30 21:52:29 +01:00
Antonio-Faure
59f2a5d17a fix(chat): autosave unsent composer drafts across page navigation 2026-10-30 19:07:04 +01:00
yuanyyt
67fc8b3317 fix: keep side-chat anchors in sync with the message entry
Detaching a thread from its message cleared only the server preference, so an open tab still sent the old quoted_message_id and filed the thread back under the message. Clear the tab's anchor once the server confirms, unless a newer selection already moved it. A new side chat is matched through its live thread state too: its first send binds a session before the tab records a followupSessionId.

A selection whose message is still optimistic has no persisted id; it now leaves the thread unattached instead of keeping the previous message.
2026-10-30 14:23:28 +08:00
yuanyyt
14292b808f feat: clear or move a tutor thread's source message
quoted_message_id now follows the create_target rule: the key's presence
is authoritative. A value moves the thread, an explicit null clears it,
and omitting the key leaves the stored anchor untouched. A new selection
moves the thread to the passage just asked about.

The message-level popover gains a detach action that clears the anchor
through the organization PATCH without deleting the conversation, and a
deliberate clear also stops the legacy backfill from re-attaching it.
2026-10-30 13:55:30 +08:00
yuanyyt
43b66ac1ad feat: add a message-level Little Tutor entry
Side chats are filed under the message their quoted passage came from:
the turn carries quoted_message_id, the backend stores it as
tutor_source_message_id, and the chat list shows "Little Tutor x N"
under that message with a popover to open or delete each thread.

Threads are read once per conversation and shared with the viewer, only
side-chat turns refresh the session lists, and a turn that omits the
field leaves the stored anchor untouched.

Refs #2118
2026-10-30 13:55:29 +08:00
hongthana
98cfb501a5 feat(web): add account-scoped learning typography 2026-10-30 07:41:44 +07:00
Bingxi Zhao (Frank)
e495fd6002 Merge origin/dev and reconcile creation contracts and replay tests 2026-10-29 18:13:47 +08:00
Bingxi Zhao (Frank)
01d7c0ed55 feat: add conversational creation drafts and refresh local dev UI 2026-10-29 18:11:52 +08:00
0x-IHRR
c097402538 fix: expose actions for exec turn attachments 2026-10-29 02:51:32 +08:00
Bingxi Zhao (Frank)
bee812e6ab refactor(web): share generated-file controls and reset stale asset state 2026-10-29 01:11:05 +08:00
Bingxi Zhao (Frank)
f50ab3afb0 Merge pull request #2050: inspect and clean generated files 2026-10-29 01:10:37 +08:00
Frank-zhu2000
4f1f969c6c fix: keep the composer resources popover inside the viewport
The composer surface is a container query. Firefox 129 treats that as
the containing block for position:fixed, so the resources dialog's
viewport top is applied under the composer and the panel drops below
the window. Portal the overlay to document.body, keep the existing
flip-up and max-height clamp, and count the portaled panel as inside
for outside clicks.
2026-10-28 22:58:58 +08:00
Bingxi Zhao (Frank)
d02fb9850b pre-releas 2026-10-28 21:21:34 +08:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +08:00
0x-IHRR
507ec78780 fix: manage direct chat output attachments 2026-10-28 03:13:05 +08:00
0x-IHRR
25bbc02a3b fix: match generated chat output paths 2026-10-28 02:50:15 +08:00
0x-IHRR
7748e81a20 feat: manage generated chat output files 2026-10-28 02:44:07 +08:00
Bingxi Zhao (Frank)
e347c0c2e0 fix: preserve tutoring replies and stabilize preview runtime
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.
2026-10-27 17:58:46 +08:00
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
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.
2026-10-26 22:13:34 +08:00
Bingxi Zhao (Frank)
9aae961412 Merge PR #1957: separate private source evidence from explicit public presentation 2026-10-19 00:53:44 +08:00
Bingxi Zhao (Frank)
0fd8dc8384 Merge PR #1953: source-bound assessment with portable lexical page lookup 2026-10-19 00:43:33 +08:00
Bingxi Zhao (Frank)
59cdd81170 Merge PR #1943: preserve grouped questions through reviewed outline revisions 2026-10-19 00:40:44 +08:00
Bingxi Zhao
2e1542d2ce Merge pull request #1882 from dajiaohuang/fix/composer-keyboard-admission
fix(web): apply composer admission checks to Enter submissions
2026-10-19 00:27:22 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
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.
2026-10-17 23:15:23 +08:00
Bingxi Zhao (Frank)
d70ab8609a Merge branch 'dev' into dt-exp-idp 2026-10-16 17:25:36 +08:00
Bingxi Zhao (Frank)
6ab4f9a766 feat(web): add classic/modern layout switch with Notion-style modern chrome
- 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.
2026-10-15 23:00:23 +08:00
Bingxi Zhao
e60fb15828 Merge pull request #1906 from idealistichacker/fix/activity-panel-return
fix(web): add visible return from activity panel
2026-10-15 03:30:41 +08:00
Bingxi Zhao
cdc7a11d03 Merge branch 'dev' into fix/chat-composer-empty-kb-option 2026-10-15 02:04:33 +08:00
idealistichacker
93eb69c0e6 fix(web): add visible return from activity panel 2026-10-14 17:20:42 +08:00
yepyhun
755686264d fix(mastery): separate source inspection from assessment delivery 2026-10-13 13:49:35 +02:00