68 Commits

Author SHA1 Message Date
欧八同学
a345d44aef fix: remember the selected consult partner per chat (#2775) 2026-11-29 14:52:34 +08:00
Benjamin Schwing
648443b5dd fix(chat): don't open the quiz settings sheet when a quiz session loads (#2950)
* fix(chat): open quiz settings only when the learner picks the mode

The Activity panel auto-open watched the active capability, so loading or
reloading a session that was already in Quiz / Visualize / Research mode
counted as a switch into that mode. On a phone the panel is a full-screen
sheet, so every reopened quiz session started covered by its settings.

Open the config card from handleSelectCapability instead, the only path
for an explicit mode change (composer picker, slash command, launch
intent). Session hydration no longer opens it; restored per-session
settings are untouched.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>

* test(chat): record viewer panel props through a spy

Assigning to the hoisted fixture inside the forwardRef stub trips
react-hooks/immutability; capture the props with a mock call instead.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>

* fix(quiz): translate question badges and the German mimic label

The quiz card header printed the raw question type (short_answer,
fill_in_blank) and difficulty ids instead of the labels the quiz
settings already use, and the German catalog left "Mimic Paper"
untranslated.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>

---------

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-29 14:52:18 +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)
719e2a8e30 fix(chat): inherit ready workspace knowledge bases for untouched sessions 2026-11-15 01:00:49 +08:00
Bingxi Zhao (Frank)
af403550ce Merge PR #2639: fix: explain missing LLM access in chat
Retain admission error text and localized model-access guidance; allow explicit retry to revalidate access instead of permanently blocking stored messages. No automatic retry on reload. Backend tests and both manual retry paths passed.
2026-11-14 23:19:09 +08:00
dach-a
09f2de1b1f fix: admission rejections carry the server's text into the submission banner
A start_turn_rejected terminal error already carries the server's own
explanation ("No LLM model is assigned to your account. Please contact
an administrator.", #2637; "This learning account cannot use this
mode...", the mastery case in #2638). The client toasted it for ten
seconds and then dispatched STREAM_END without it, so the persistent
composer-adjacent banner — the text users actually read — hardcoded the
transport copy "Couldn't reach the server..." for every rejection.

Carry the server text onto the flagged unsent row
(failedSubmissionMessage) and render it in the banner, falling back to
the connection copy only when the server provided no text. The toast
stays; the unsent row + Resend semantics from #1594 are unchanged.

Not persisted across reload: a reloaded unsent row shows the generic
fallback (its durable record keeps the exact request for retry); a
follow-up can extend the durable record if wanted.
2026-11-13 11:20:50 +00:00
Junlin Li
560a80a17f fix: explain missing LLM access in chat 2026-11-12 16:58:52 +08:00
FSOTM
70031420a6 feat(voice): read selected passages in chat, mastery and reading 2026-11-01 22:52:30 +08:00
Bingxi Zhao (Frank)
def8bdc8c6 Merge commit '1876207b5c248eb4ee4375e34779ed332a11d284' into codex/validate-reviewed-integration 2026-10-31 18:52:30 +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
yuanyyt
19760d5ded fix: refresh tutor threads after deleting a source message
Return the detached thread ids from deleteMessage and have deleteTurn
notify the session-change bus, so useSessionThreads and the viewer refresh
immediately instead of keeping a stale marker.

ChatWorkspace clears only the tabs still pointing at one of the deleted
message rows; a newer passage selected but not yet sent survives the delete.
2026-10-30 23:15:37 +08: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
hongthana
8246b84d79 fix(web): prevent chat titles from overlapping header actions 2026-10-29 18:07:00 +07:00
Bingxi Zhao (Frank)
01d7c0ed55 feat: add conversational creation drafts and refresh local dev UI 2026-10-29 18:11:52 +08:00
Bingxi Zhao (Frank)
d02fb9850b pre-releas 2026-10-28 21:21:34 +08:00
Bingxi Zhao (Frank)
e99d632de5 fix: prepare modular installs and align dev documentation 2026-10-28 19:02:44 +08:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +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)
583bdfc714 Merge PR #1945: fence edited submissions and isolate recovery by account and backend support 2026-10-19 01:03:40 +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 (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +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
Mrmo072
adcf7dfa25 fix(chat): resolve browser-local unsent submission recovery 2026-10-15 14:41:46 +08:00
yepyhun
f986774b87 fix(chat): durably replace uncertain submissions and isolate recovery owners 2026-10-13 12:07:47 +02:00
yepyhun
bffd1c8187 fix(chat): allow safe dismissal of unsent message copies 2026-10-12 21:30:10 +02:00
Bingxi Zhao (Frank)
fd8f108178 fix: restore lighter page styling with subtle navigation refinements 2026-10-13 03:21:51 +08:00
yepyhun
c3301c0055 feat(mastery): support independently graded question groups 2026-10-12 21:03:14 +02:00
Bingxi Zhao (Frank)
1c735c75ea feat: unify page chrome and refine DeepTutor navigation 2026-10-13 00:14:50 +08:00
Bingxi Zhao (Frank)
2358b8d407 fix: retain navigation while refining partner and learning sidebars 2026-10-12 20:28:57 +08:00
Bingxi Zhao (Frank)
90c070d77b feat: integrate Dito navigation with existing learning and partner workflows 2026-10-12 19:58:02 +08:00
Bingxi Zhao (Frank)
2350ea2dba feat(mastery): complete source-grounded visual practice and evidence (#1611)
Bind original visual sources and keys to supported tasks; verify accepted model pixels, preserve cues/assistance and canonical attempts, keep uncertainty ungraded, expose challenge/repair, and separate required visual evidence from generic text mastery.
2026-10-08 05:25:05 +08:00
Bingxi Zhao (Frank)
8986c31580 feat(reading): complete Watching convergence with safe legacy migration (#1378)
Adapted the migration foundation from PR #1384 while preserving current workspace, caption and turn-admission safeguards.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 02:48:50 +08:00
Bingxi Zhao (Frank)
f8be756906 Integrate saved user workspace changes with reviewed dev updates 2026-10-07 20:37:55 +08:00
Bingxi Zhao (Frank)
ed3f9e9b4e fix(chat): distinguish unconfirmed replies from expired questions (#1648) 2026-10-04 18:14:40 +08:00
Bingxi Zhao
6ed3b0c1a0 Merge pull request #1618 from Chanson4/feature/chat-question-bank-bulk-select
feat: bulk select question bank entries in chat
2026-10-04 14:28:21 +08:00
XZH
8079dd8def fix(chat): label sent-message KB references with catalog names
The reference chips under a sent message printed the stored
request-snapshot entry verbatim, so workspace-owned knowledge bases
showed their qualified ref (workspace:<id>:kb:<name>) instead of the
readable name the composer shows for the same selection.

Thread the catalogs' ref-to-name resolution into ChatMessageList/
UserMessage and use it for the Knowledge chip label, keeping the
qualified ref as identity and fallback. Wired from the chat workspace
catalog and Mastery study topic sources, with a regression test for
both the resolved label and the fallback.

Fixes #1647

Co-authored-by: multica-agent <github@multica.ai>
2026-09-29 11:14:09 -07:00
Chanson4
c73f4206ed feat: bulk select question bank entries in chat 2026-09-28 17:16:54 +08:00
Bingxi Zhao (Frank)
ccf1129dea fix(chat): replace native title hints with shared tooltips (#1526) 2026-09-27 05:06:30 +08:00
Bingxi Zhao (Frank)
348176291e fix(web): preserve failed chat submissions across retries and storage races 2026-09-27 04:14:19 +08:00
Bingxi Zhao (Frank)
0a116bce22 fix(web): preserve unsent repeated text and quota fallback 2026-09-27 03:03:11 +08:00
XZH
ae0daa9a48 fix(web): keep failed chat submissions recoverable and retryable (#1594)
A submission that never reached the server looked like an ordinary sent
message, its connection error rendered as if it were an assistant reply,
and both vanished after a reload because nothing was persisted.

- Mark the optimistic user row "Not sent" when the transport never
  connected; drop the empty assistant placeholder so the failure cannot
  read as an errored reply. The connection error now surfaces in a
  banner next to the composer with a Resend action.
- Persist the last unproven submission of each session locally and
  restore it after a reload as an unsent, retryable row. The record is
  cleared by any evidence the server took the turn over (done, terminal
  error, cancel), or when the server transcript already holds the text.
- Server-accepted-but-disconnected turns keep the existing reconcile-
  before-resend path; drafts can now retry without a server session.
2026-09-26 06:35:23 -07:00
Bingxi Zhao (Frank)
28f335c50d feat(chat): pick the conversation's reply language with /language
The per-conversation reply language moves out of the chat header into
the composer: typing /language opens a picker (account default plus
each language) next to /persona, with keyboard navigation. The slash
popup now lists every matching command instead of only /persona.

Also fills two missing French strings (Chat history, Question bank).
2026-09-23 19:37:19 +08:00
Bingxi Zhao (Frank)
f363e5f119 fix(chat): persist explicit reply language per conversation 2026-09-23 13:07:39 +08:00
Bingxi Zhao (Frank)
c824124f6d perf(web): split session viewer from chat and mastery route scripts 2026-09-23 11:53:42 +08:00
Bingxi Zhao (Frank)
2ff3e7544b Merge PR #1394: chat message resend
# Conflicts:
#	web/features/chat/messages/ChatMessageList.tsx
#	web/locales/en/app.json
#	web/locales/zh/app.json
2026-09-23 10:27:04 +08:00
Bingxi Zhao (Frank)
9083d5fe3c fix(attachments): surface PDF processing stages (#1523) 2026-09-21 14:50:37 +08:00