Commit Graph

1431 Commits

Author SHA1 Message Date
XZH
32f82dcfb8 feat(knowledge): expose bounded web sources in detail view 2026-08-26 02:26:58 +08:00
XZH
0d8b734a76 feat(knowledge): add web source sync 2026-08-26 02:26:58 +08:00
Bingxi Zhao
18acf75309 Merge pull request #776 from SeleiXi/feat/ask-questions-capability
feat(chat): add AskQuestions mode for contextual clarification
2026-08-26 02:25:05 +08:00
Bingxi Zhao (Frank)
693772a542 fix(chat): integrate guarded output with ask questions 2026-08-26 02:10:58 +08:00
Bingxi Zhao (Frank)
11c0a1ed68 fix(chat): preserve ask-user protocol across fallbacks and history 2026-08-26 02:08:46 +08:00
SeleiXi
213508b526 fix(session): place ask_user clarifications before assistant answer
Resolved ask_user exchanges happened before the assistant produced the
row's answer, so they must precede the row's content in both
_build_history() and format_messages_as_transcript(). The previous order
(assistant content first, clarification second) made later turns see the
answer before the user supplied the missing context, confusing the model
and polluting rolling summaries.

Update the test that had locked in the wrong order.
2026-08-26 02:08:33 +08:00
SeleiXi
81e9830452 fix: rehydrate ask_user answers into later-turn context
get_messages_for_context only loaded role/content, so extract_ask_user_clarifications always saw empty events and the model forgot prior card Q&A.
2026-08-26 02:08:33 +08:00
SeleiXi
5c45c38e4a fix: make ask questions card deterministic 2026-08-26 02:08:33 +08:00
SeleiXi
4c9df02a97 feat: add context-aware ask questions mode 2026-08-26 02:07:39 +08:00
Bingxi Zhao
3b288cdbd0 Merge pull request #1002 from evan188199-tech/codex/fix-mastery-plain-text-quiz
fix(assessment): redirect plain-text mastery quizzes to cards (#941)
2026-08-26 02:07:09 +08:00
Bingxi Zhao (Frank)
ce3532b7f8 fix(mastery): validate guarded finishes before streaming 2026-08-26 01:52:26 +08:00
XZH
b4bbe20e87 fix(mastery): redirect plain-text quizzes to cards 2026-08-26 01:52:26 +08:00
Bingxi Zhao
2620180ea1 Merge pull request #1007 from ZQR1101/fix/mastery-composer-clarifying
fix(mastery): don't freeze choice gates on clarifying composer text
2026-08-26 01:52:16 +08:00
Bingxi Zhao
3016e1575d Merge pull request #772 from KevinXia69/codex/fix-context-compaction-budgets
fix: bound conversation compaction budgets
2026-08-26 01:40:08 +08:00
Bingxi Zhao
d86763af8a Merge pull request #975 from evan188199-tech/codex/fix-mastery-unicode-display
fix(chat): decode dense non-ASCII unicode escapes for display
2026-08-26 01:39:40 +08:00
Bingxi Zhao
e56bc10b3e Merge pull request #977 from aiheluo/fix/kimi-k3-temperature
fix(llm): drop temperature for bare Kimi model ids (k3) on the coding endpoint
2026-08-26 01:39:17 +08:00
Bingxi Zhao
90876c6bc2 Merge pull request #991 from evan188199-tech/codex/upstream-reader-outline
feat(reading): add persistent document outline and in-page heading navigation
2026-08-26 01:34:02 +08:00
Bingxi Zhao (Frank)
8525527836 fix(mastery): require explicit choice answer intent 2026-08-26 01:33:31 +08:00
ZQR1101
85602ca161 fix(mastery): don't freeze choice gates on clarifying composer text
Composer clarifying questions on a choice card were persisted as the formal
answer, after which mastery_grade could never map them to an option and the
gate stalled. Skip unreadable commits and allow a later readable pick to
recover already-stuck interactions.
2026-08-26 01:31:31 +08:00
Kevin Xia
5c6b1d5c8d fix: bound conversation compaction budgets 2026-08-26 01:30:42 +08:00
Bingxi Zhao (Frank)
20f95999c3 fix(chat): strip decoded invisible unicode controls 2026-08-26 01:30:03 +08:00
XZH
40671bfa50 fix(chat): decode dense non-ASCII unicode escapes for display 2026-08-26 01:30:03 +08:00
Bingxi Zhao
437efd5aa2 Merge pull request #1003 from ningkaikok/feat/native-web-search-responses
feat(llm): map web_search to native Responses tools for server-side search
2026-08-26 01:29:52 +08:00
Bingxi Zhao
1db94abc1c Merge pull request #1006 from googio/feat/serply-search
feat(search): add Serply provider with web, news and scholar modes
2026-08-26 01:28:51 +08:00
Bingxi Zhao (Frank)
d80dee48a3 fix(llm): scope bare Kimi model overrides exactly 2026-08-26 01:28:16 +08:00
Bingxi Zhao (Frank)
37f56de042 fix(reading): isolate malformed extension catalogs 2026-08-26 01:27:49 +08:00
aiheluo
2d91e2cc73 fix(agentic): honor provider spec model_overrides in build_completion_kwargs 2026-08-26 01:25:24 +08:00
aiheluo
f30913cce8 fix(llm): drop temperature for bare Kimi model ids (k3) on the coding endpoint 2026-08-26 01:25:24 +08:00
Bingxi Zhao (Frank)
28c0f7d295 fix(reading): preserve annotation offsets around heading anchors 2026-08-26 01:24:22 +08:00
Bingxi Zhao (Frank)
2a8617008f fix(reading): keep heading anchors through highlights 2026-08-26 01:24:22 +08:00
XZH
0e7ccc3ae3 fix(reading): separate outline views and stabilize heading jumps 2026-08-26 01:24:22 +08:00
XZH
1150fcecce feat(reading): add persistent document outline 2026-08-26 01:24:22 +08:00
Bingxi Zhao (Frank)
159edefaac fix(llm): make native web search terminal and model-scoped 2026-08-26 01:22:30 +08:00
宁凯
d9962666a8 feat(llm): map web_search to native Responses tools for server-side search
Providers whose Responses API performs web_search server-side (DeepSeek
V4, #846) declare the tool as {"type": "web_search"} instead of a
function schema, run the search mid-generation, and return web_search_call
output items with url_citation annotations.

- convert_tools(): map the web_search function tool to the native schema
  when the provider spec sets native_web_search
- parsing: synthesize a server_executed-marked web_search ToolCallRequest
  from web_search_call items and url_citation annotations across all three
  consumers (SSE, SDK stream, non-streaming), with tail-merge for
  annotations that stream after the search item completes
- convert_messages(): replay server-executed calls as web_search_call
  items and skip their function_call_output pairing
- assistant_message_with_tool_calls(): keep provider_specific_fields so
  the server_executed marker survives into the conversation history
- tool_dispatch: short-circuit server-executed calls with a stub result
  carrying the citations as sources — the local web_search tool never
  re-runs a search the provider already performed
2026-08-26 01:22:30 +08:00
Bingxi Zhao
22b70c3ab3 Merge pull request #1008 from ZQR1101/fix/tool-schema-fallback-matcher
fix(llm): stop matching bare 'tool' in schema-fallback detector
2026-08-26 01:21:54 +08:00
Bingxi Zhao
6a6dc04cca Merge pull request #970 from evan188199-tech/codex/upstream-reading-extensions
feat(reading): add safe extension protocol and empty toolbar slot
2026-08-26 01:21:44 +08:00
Bingxi Zhao
cc8bd814fc Merge pull request #985 from evan188199-tech/codex/upstream-reader-display
feat(reading): add adjustable text display preferences
2026-08-26 01:15:35 +08:00
Bingxi Zhao (Frank)
57a2631804 fix(search): align Serply requests with documented API 2026-08-26 01:06:36 +08:00
serply
6c1a615ed1 feat(search): add Serply provider with web, news and scholar modes 2026-08-26 01:05:03 +08:00
Bingxi Zhao (Frank)
1f6fe858f1 fix(reading): isolate timed-out extension workers 2026-08-26 01:04:12 +08:00
Bingxi Zhao (Frank)
6d596df19d fix(llm): require schema context for 404 fallback 2026-08-26 01:03:51 +08:00
ZQR1101
ee7cbd7b52 fix(llm): stop matching bare 'tool' in schema-fallback detector
The chat loop silently strips tools whenever a provider 400 mentions
the word tool. Narrow the matcher to schema/parameter rejection phrases
so unrelated errors no longer disable tool calling for the turn.
2026-08-26 01:03:12 +08:00
XZH
88777a4421 fix(reading): bound extension action execution 2026-08-26 01:00:05 +08:00
XZH
27700d4a48 feat(reading): add safe extension protocol 2026-08-26 01:00:05 +08:00
Bingxi Zhao (Frank)
51731719fb fix(reading): scope and fully reset display preferences 2026-08-26 00:59:24 +08:00
XZH
f870d43cfa feat(reading): add adjustable text display preferences 2026-08-26 00:59:09 +08:00
Bingxi Zhao
c16f180661 Merge pull request #974 from evan188199-tech/codex/upstream-reading-recogito
feat(reading): render reflowing annotations with Recogito
2026-08-26 00:58:35 +08:00
Bingxi Zhao
f78ff1abdc Merge pull request #979 from evan188199-tech/codex/epub-bilingual-pairing
feat(reading): add explicit bilingual EPUB pairing
2026-08-26 00:58:08 +08:00
Bingxi Zhao (Frank)
4cf053257c fix(reading): resolve reflowed text selectors consistently 2026-08-26 00:53:32 +08:00
XZH
bb1b3569c8 test(reading): audit W3C annotation rendering 2026-08-26 00:49:58 +08:00