166 Commits

Author SHA1 Message Date
greenhand-fjm
a943eb0b1e fix(runtime): add gateway cache breakpoints to the tool loops (#3115)
The research, question and page-index loops (run_labeled_step) and the context explorer call the SDK client directly, so an anthropic/ model on OpenRouter got no cache_control breakpoint and cached nothing on any round. Move the chat loop's check into runtime/agentic/prompt_caching.py and apply it in all three places. Refs #3087.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01J2vr2J41oqPYhmpP8CzSJA
2026-12-01 21:38:18 +08:00
Benjamin Schwing
15489b72cf fix(question): read an uploaded exam paper back from the attachment store (#2949)
Mimic mode never parsed a paper uploaded from the web composer. The turn
executor stores every upload in the attachment store and then clears the
inline base64 of each document it has extracted, so the PDF attachment
reached DeepQuestionCapability with an empty base64. The upload branch was
skipped and the turn fell back to the plain-text "[Attached Documents]"
hint: no exam parsing, no question extraction and no templates.

When the attachment carries no inline bytes, the capability now resolves
the stored file by session and attachment id, the same lookup the chat PDF
parser uses, and parses it as before. Inline base64 is still used when
present.

Signed-off-by: Benjamin Schwing <63053132+BenjiAvH@users.noreply.github.com>
2026-11-30 11:12:14 +08:00
Alex Castillo González
1137a51aff fix: resolve ConfigManager settings from the runtime home (#2773) 2026-11-28 19:42:14 +08:00
lipeh1
803c4a4a35 fix: preserve empty reasoning in quiz tool continuations (#2800)
* fix: preserve empty reasoning in quiz tool continuations

* test: cover empty reasoning in assistant tool messages

---------

Co-authored-by: lipeih <lipeihan@eazytec.com>
2026-11-28 18:22:57 +08:00
Bingxi Zhao (Frank)
fa1edb75a2 fix: reconcile provider branding and locale contracts after PR integration
Register the verified SearchApi favicon with provenance, complete Italian many plurals and translated counts, and review the Italian/Hungarian language endonyms in Portuguese. Align labeled-stream fixtures with preserved Markdown examples and accepted thinking-tag aliases. Keep PDF layout memoization tied to the effective page ratio.
2026-11-14 23:47:30 +08:00
Bingxi Zhao (Frank)
47e4c33c90 Merge PR #2493: fix(runtime): separate indexless streamed tool calls 2026-11-14 23:00:46 +08:00
Bingxi Zhao (Frank)
16cc590b63 Merge PR #2564: feat(chat): per-conversation reasoning-effort selector in the composer (#641) 2026-11-14 23:00:04 +08:00
Bingxi Zhao (Frank)
39239ac1a8 Merge PR #2624: fix: sanitize raw agentic chat replay messages 2026-11-14 22:58:48 +08:00
Bingxi Zhao (Frank)
eea99eddc9 Merge PR #2618: fix(tools): ignore model-supplied connection and output settings 2026-11-14 22:52:56 +08:00
Bingxi Zhao (Frank)
675f44690d Merge PR #2630: fix: time out stalled labeled-step provider streams 2026-11-14 22:52:55 +08:00
Bingxi Zhao (Frank)
afdde4feb6 Merge PR #2667: fix(runtime): make Python provider stream termination persistent 2026-11-14 22:51:15 +08:00
Bingxi Zhao (Frank)
e3d9614247 Merge PR #2528: feat(providers): add Standard Compute as an OpenAI-compatible gateway 2026-11-14 22:49:39 +08:00
mpichini1
64000f8046 fix: reload cached configuration when modification time decreases 2026-11-13 19:36:27 +01:00
stefanielizeth73-art
5ecf3d6b84 fix: make Python provider stream termination persistent 2026-11-13 22:54:43 +08:00
Steven Huang
46a1eb1b91 fix: bound stalled labeled-step provider calls 2026-11-11 23:19:30 +08:00
Adithya
0dd67bb35f test: complete chat SDK doubles and verify wire requests 2026-11-11 15:02:50 +05:30
Adithya
9d8742e994 fix: sanitize raw agentic chat replay messages 2026-11-11 14:07:44 +05:30
Adithya
ec6168a107 fix: keep model tool calls on configured connections and search paths 2026-11-11 12:18:20 +05:30
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
Henrik Bakke Dukefoss
fb187c5ca3 feat(providers): add Standard Compute as an OpenAI-compatible gateway
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 00:33:13 +01:00
KaiChan
fefa6c0437 fix(runtime): isolate indexless streamed tool calls 2026-11-06 19:16:02 +08:00
Bingxi Zhao (Frank)
7948deb5f5 Merge #2349 from rudycelekli 2026-11-06 01:56:24 +08:00
Bingxi Zhao (Frank)
89d6c960b1 Merge #2337 from yertYang 2026-11-06 01:56:24 +08:00
Rudy Celekli
d516269b43 fix(runtime): apply the tool-call id fallback in run_labeled_step
run_labeled_step returned tool calls via the accumulator's raw ordered()
view, which keeps id="" when a provider streams a tool call without an id
delta. The sibling consumers use collected(), which applies the positional
id and arguments fallbacks. Switch to collected() so a tool call made by an
id-less gateway is still correlatable and passes the non-empty-id schema.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-02 01:14:01 -05:00
yert
4e113d0e4f fix(llm): preserve custom headers in Codex OAuth requests 2026-11-02 04:07:25 +00:00
RRFZ
bd5c2854a3 fix(question): let mimic mode parse an uploaded exam PDF on Windows
Mimic mode wrote the uploaded paper into a NamedTemporaryFile with
delete=True and handed its name to the parse service while the handle
was still open. The parse service reopens the file by path to hash it
for the parse cache, and on Windows a file held with delete-on-close
cannot be reopened, so every uploaded paper failed with
PermissionError before any engine ran. The error is not a MinerUError,
so it escaped the capability's handler.

Write the paper into a TemporaryDirectory and close it before parsing.
The directory is removed afterwards, as the temporary file was.
2026-10-31 20:49:41 -04:00
Bingxi Zhao (Frank)
81ab035e03 Merge dev preserving CloudGPU and LLMTR provider integrations 2026-10-31 18:36:30 +08:00
Bingxi Zhao
7db39b4b03 Merge pull request #2142 from 1akashkalita/fix/animation-visual-review-option
Expose opt-in visual review for generated animations
2026-10-31 18:31:15 +08:00
Bingxi Zhao
aaaa7420ac Merge pull request #2156 from knowhycodata/add-llmtr-provider-dev
feat(providers): add LLMTR as an OpenAI-compatible gateway
2026-10-31 18:30:49 +08:00
Bingxi Zhao
88ac6996d8 Merge pull request #2187 from harshdazz/fix/agentic-reasoning-temperature
fix(llm): leave temperature out for gpt-5 and o-series agentic calls
2026-10-31 18:22:15 +08:00
Rudy Celekli
f812c0d5a3 fix(runtime): wake input waiters on their owning loop
Keep the input queue with its event loop and register it before publishing
the prompt. Hand input back through the owning loop, with a protected
listener batch so concurrent cleanup cannot lose another waiter.

AI-assisted: prepared and validated with OpenAI Codex. Maintainer review
is pending.
2026-10-30 23:48:57 -04:00
Harsh
897c210076 fix(llm): drop temperature for bare o-series ids on custom endpoints 2026-10-30 21:11:52 +05:30
Harsh
20d95a9bad fix(llm): leave temperature out for gpt-5 and o-series agentic calls 2026-10-30 15:56:12 +05:30
knowhy
6f63e033db feat(providers): add LLMTR as an OpenAI-compatible gateway 2026-10-29 07:48:11 +00:00
Akash Kalita
6e611fe5df fix: expose opt-in visual review for animations 2026-10-28 21:11:03 -07:00
Cursor Agent
85f5d1c308 feat(providers): add CloudGPU as an OpenAI-compatible gateway
Register the CloudGPU provider spec, settings and runtime tests, and the official site icon.

Co-authored-by: CloudGPU <mrhy7176@users.noreply.github.com>
2026-10-29 00:12:41 +00:00
Bingxi Zhao (Frank)
c1b238c162 Merge pull request #2048 into validated PR integration 2026-10-29 00:56:13 +08:00
Bingxi Zhao (Frank)
80a7dc2b34 test: keep dev CI contracts robust to formatting and worker startup 2026-10-27 22:00:54 +08:00
Bingxi Zhao (Frank)
addb783d2f Merge preview and CI fixes into video lesson branch 2026-10-27 01:40:39 +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
Nirupam Bhowmick
ff28e0eb19 feat(providers): add Runcrate as an OpenAI-compatible gateway 2026-10-24 23:03:20 +01:00
SeleiXi
6b7897a32f feat(video_lesson): register the video lesson capability
`video_lesson` (CLI alias `lesson`) turns a question into a playable
Remotion explainer:

1. code_generation: the lesson writer drafts Lesson.tsx
2. render_check: compile and frame-check it, feeding failures back,
   up to three attempts
3. render_output: write the player page and emit it as an html artifact,
   along with the lesson's summary and source

npm packages are installed on first use while the first LLM call is
still running. The capability reports itself unavailable when node or
npm is missing. Its LLM budget lives under plugins.video_lesson in
agents.yaml (48k tokens by default: a whole lesson comes back in one
reply).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 23:58:03 +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
63621137a4 Merge pull request #1911 from Owaid0723666/feat/add-onomeo-provider
feat(providers): add onomeo as an OpenAI-compatible gateway
2026-10-15 03:23:16 +08:00
yepyhun
755686264d fix(mastery): separate source inspection from assessment delivery 2026-10-13 13:49:35 +02:00
yepyhun
136c41fb71 test(agentic): reproduce schema-valid null rejection 2026-10-13 00:34:53 +02:00
Owaid0723666
bfdfb18e48 feat(providers): add onomeo as an OpenAI-compatible gateway
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 15:54:36 +09:00
Bingxi Zhao (Frank)
6cf793bd86 release: v1.6.14
Ship original-source visual practice, recoverable indexing, unified video
Reading, scientific research tools, managed plugins, and a learning journal
as summarized in assets/releases/ver1-6-14.md.

Improve provider setup and protocol-aware endpoints. Restore missing
localized setup and Ukrainian UI text, keep plugin loading in the plugin
layer, harden research XML parsing, and repair isolated test fixtures and
type-checking errors found by the release gate.

Sync README prose and all eleven translations, bump the package version,
and update the stable release announcement.

Validation: 10180 Python tests and 8 subtests passed (28 skipped); 1303
Node tests passed on Node 22; 24 provider UI tests passed. All pre-commit
hooks, ruff, translation checks, documentation checks, and docs build passed.
2026-10-08 11:34:42 +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