Commit Graph

179 Commits

Author SHA1 Message Date
LIziak112
257c5e62dc fix: make the repository pre-commit checks portable on Windows
Use the hook environment’s Python interpreter and select the supported process, terminal, and locking APIs at their platform boundaries. Keep all existing hook checks enabled and fix the tracked SVG EOF that fails a clean all-files run.
2026-11-25 20:35:27 +08:00
Bingxi Zhao (Frank)
7e61863d4c fix(update): honor configured launcher readiness timeouts
Fixes #2330
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
3166cda206 fix(llm): bound effective progress and recover known responses
Fixes #2538
2026-11-15 01:42:46 +08:00
Bingxi Zhao (Frank)
9233a71cb4 fix(update): bound restart readiness and document legacy recovery 2026-11-15 01:04:25 +08:00
Bingxi Zhao (Frank)
e885120cf6 fix(runtime): preserve live turns owned by another local process
Local dev repairs for #2168, #2631.

Real child-process recovery: 16 tests passed, including queued, running, waiting_input, process exit and PID reuse. Existing coordination/application tests: 65 passed, 10 optional Redis skips.
2026-11-15 00:50: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)
39239ac1a8 Merge PR #2624: fix: sanitize raw agentic chat replay messages 2026-11-14 22:58:48 +08:00
Bingxi Zhao (Frank)
ebd0f11083 Merge PR #2605: fix(mastery): let a new reply supersede an ungraded clarification 2026-11-14 22:58:03 +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)
42d29e38fa Merge PR #2504: fix(runtime): recognize framework Python orphan backends on macOS 2026-11-14 22:49:40 +08: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
9d8742e994 fix: sanitize raw agentic chat replay messages 2026-11-11 14:07:44 +05:30
AleFlyX
1e86d251bd fix(dispatch): reserve _working_brief, an injected flag the list missed
`mastery_status` receives `_working_brief` from the mastery loop
(capabilities/mastery/loop.py:436) and reads it as a trusted switch for
whether to project the working brief (capabilities/mastery/tools.py:915).
It was not in RESERVED_ARGUMENT_NAMES, so a model could send
`_working_brief: false` and the tool would honour it.

Same class as `_learner_message`: an injected name treated as fact while
the model can write it. Caught on a later audit pass rather than by any
test, which is the argument for the follow-up in #2610.
2026-11-11 08:49:06 +08:00
AleFlyX
636f522b43 fix(dispatch): withhold the arguments the runtime owns
`_`-prefixed names reach tools as provenance: `_learner_message` is the
learner's own words, `_sandbox_mounts` is where the turn may write,
`_turn_id` is which turn produced the call. A few of them gate credit or
sandbox access.

Nothing enforced that on the way in. A model emits arbitrary JSON and the
dispatch path never rejected a name it did not expect, so a model could
write `_learner_message` itself and have a built-in tool believe it. That
is how `mastery_grade` came to accept a model-authored answer as grounds
to overwrite a committed learner answer (#2595).

Withhold a fixed list of the names the runtime injects, at bind time,
before the augmenter runs. Adapter arguments outside that list are left
alone, so an MCP server publishing `_id` keeps working.

Also record the filtered arguments rather than the raw JSON. `_rebind`
replays the recording straight into the augmenter, so keeping the raw one
let any round containing a rebinding tool — `ask_user` and
`workspace_export` always qualify — re-admit a forged name the first bind
had already dropped.
2026-11-11 08:28:10 +08:00
Tazeem Mahashin
08fac21468 fix(runtime): pin backend imports to the launcher installation 2026-11-06 13:26:44 -05:00
Tazeem Mahashin
3f1610632b fix(runtime): recognize framework Python orphan backends on macOS 2026-11-06 12:15:10 -05:00
KaiChan
fefa6c0437 fix(runtime): isolate indexless streamed tool calls 2026-11-06 19:16:02 +08:00
Bingxi Zhao (Frank)
60fb3bdfdd release: v1.7.2
Document selected-text speech, model discovery, NVIDIA NIM embeddings,
mastery reliability, Windows improvements, and complete desktop downloads.

Sync all eleven README translations and archive the v1.7.0 release notes.
Add platform-specific typing annotations for Windows APIs without changing
runtime behavior. See assets/releases/ver1-7-2.md for changes and upgrades.

Validation: pre-commit and Ruff passed; 12,782 Python tests passed
(51 skipped), 1,349 Node 22 tests passed, and the docs build passed.
2026-11-06 16:41:21 +08:00
evan188199-tech
857bc6f6ad fix(workspace): conservatively clear dead migration markers (#2390) 2026-11-06 02:27:50 +08:00
Bingxi Zhao (Frank)
79e726efb3 Merge #2435 from mathewgeejo 2026-11-06 02:04:52 +08:00
Bingxi Zhao (Frank)
ebcebd4723 Unify migration locks and plugin environments, and cover compatibility boundaries 2026-11-06 02:04:52 +08:00
Yi-111-a
d5adc0c2a9 fix: add PYTHONSAFEPATH=1 to prevent stale source tree shadowing in detached launcher and update worker (#2447) 2026-11-06 02:04:52 +08:00
Bingxi Zhao (Frank)
b837217cb5 Merge #2357 from Antonio-Faure 2026-11-06 01:56:24 +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
mathewgeejo
b9756c6126 fix: keep detached Windows venv launchers hidden
Use CREATE_NO_WINDOW so the venv redirector interpreter inherits a hidden console. Preserve the separate process group and update the Windows launch regression. Fixes #2421.

Co-Authored-By: Codex <noreply@openai.com>
2026-11-04 23:51:45 +05:30
Antonio-Faure
c7f203d594 fix(update): record a restart that never becomes ready 2026-11-02 09:12:32 +01:00
Antonio-Faure
f39b5d1c1f fix(update): keep installed modules on the target version 2026-11-02 08:44:04 +01: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
yert
edb205369a fix: preserve Redis event JSON arrays and tolerate legacy artifacts 2026-11-02 02:51:36 +00:00
Bingxi Zhao (Frank)
def8bdc8c6 Merge commit '1876207b5c248eb4ee4375e34779ed332a11d284' into codex/validate-reviewed-integration 2026-10-31 18:52: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 (Frank)
4d7090447e Integrate Turkish across complete locale chain, runtime messages and desktop shell 2026-10-31 18:14:34 +08:00
Bingxi Zhao (Frank)
0e84ab77fa Integrate reviewed changes and complete Portuguese translations 2026-10-31 18:04:54 +08:00
Bingxi Zhao (Frank)
3e281ce55b Complete and validate Brazilian Portuguese localization 2026-10-31 17:26:17 +08:00
Bingxi Zhao (Frank)
07db7024a7 Merge dev and refresh the French locale router index 2026-10-31 17:25:02 +08:00
Bingxi Zhao (Frank)
68c025ad66 Merge dev into Portuguese locale contribution 2026-10-31 17:21:05 +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
Antonio-Faure
28d86973a4 fix(i18n): complete the French catalog and follow it for partner replies
- add the 760 English keys missing from the French catalog and translate 229 values still copied from English\n- make a partner's empty reply language (Auto) follow the account model output language instead of hardcoding English\n- label Auto with the configured language and offer every supported response language in the picker\n- localize the Feishu thinking notice for every supported response language\n- add French catalog, picker and partner runtime regression tests
2026-10-30 18:02:55 +01:00
bcfernando
5c99a37096 feat(i18n): add Portuguese (pt) interface localization 2026-10-30 10:17:55 -03:00
Akash Kalita
6e611fe5df fix: expose opt-in visual review for animations 2026-10-28 21:11:03 -07:00
Erhan ÜRGÜN
ff15bf084d feat(i18n): carry Turkish into the CLI, quiz judge, books, partners and voice
Earlier locales stopped at the settings lists, so these surfaces kept answering in English for them: the init wizard labels, quiz feedback, explicit book-language requests, book overview and export scaffolding, the partner and book language pickers, and the voice language list.
2026-10-29 01:05:43 +03:00
Bingxi Zhao (Frank)
b89748200a Merge pull request #2109: Claude Agent SDK provider 2026-10-29 01:07:23 +08:00
Bingxi Zhao (Frank)
e99d632de5 fix: prepare modular installs and align dev documentation 2026-10-28 19:02:44 +08:00
quocldce-sys
b16b187244 feat: add Claude Code provider backed by the Claude Agent SDK
Adds a `claude_code` LLM provider that runs turns through the local Claude
Code CLI via `claude-agent-sdk`, so DeepTutor can use the account signed in
with `claude /login` (including a Claude subscription) without an Anthropic
API key.

- One long-lived Claude Code process per DeepTutor session, mirroring the
  CodeBuddy SDK provider's owner-task pattern.
- Claude Code's built-in tools, settings, CLAUDE.md and hooks are disabled;
  DeepTutor tools are exposed through an in-process SDK MCP server and tool
  calls are returned to DeepTutor's dispatcher.
- Tool turns end via max_turns=1 and are drained instead of interrupted, so
  the transcript does not record an interrupted request.
- System messages become Claude's real system prompt.
- Optional extra: `pip install deeptutor[claude-code]`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:07:04 +07:00
Bingxi Zhao (Frank)
9aadac3e3b merge: integrate current dev with modular installation 2026-10-28 01:23:48 +08:00
Bingxi Zhao (Frank)
fbab59acbf feat: modularize installation and enforce feature dependency boundaries 2026-10-28 01:02:29 +08:00