Commit Graph

101 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
2c4769a96f prepare v1.3.8 release
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 02:36:24 +08:00
Bingxi Zhao (Frank)
5c31f0dee6 Merge remote-tracking branch 'origin/main' into multi-user
# Conflicts:
#	deeptutor/knowledge/manager.py
#	deeptutor/services/memory/service.py
#	pyproject.toml
#	requirements/server.txt
#	web/app/(workspace)/agents/page.tsx
2026-05-04 17:12:06 +08:00
Bingxi Zhao (Frank)
93891789fa prepare v1.3.7 release
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-04 16:21:41 +08:00
Bingxi Zhao (Frank)
d23ea03640 Merge remote-tracking branch 'origin/dev' into fix/deepseek-reasoning-content-fallback
# Conflicts:
#	deeptutor/book/blocks/code.py
#	deeptutor/book/blocks/deep_dive.py
#	deeptutor/book/blocks/flash_cards.py
#	deeptutor/book/blocks/timeline.py
2026-05-04 12:07:37 +08:00
Bingxi Zhao
5520e2141e Merge pull request #436 from zuoliangyu/fix/chat-extra-headers
fix(chat): forward extra_headers to all LLM calls in agentic pipeline
2026-05-04 11:53:21 +08:00
Bingxi Zhao (Frank)
eff1c0dff6 prepare v1.3.6 release
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-03 16:35:52 +08:00
truffle
eb3cd9a3fa fix(llm): map max_completion_tokens to max_output_tokens for Responses API
When the Responses API path is selected for newer OpenAI models
(gpt-5.x, o1, o3, o4) and an extra kwarg of `max_completion_tokens`
flows in (typically from `get_token_limit_kwargs(model, n)`), the
OpenAI SDK raises `TypeError` from `responses.create()` before any
HTTP request leaves the client.

`_should_fallback_from_responses_error()` only catches HTTP errors
that carry a `status_code`, so the call is never retried via Chat
Completions; the user just sees a stack trace. The bug exists on
both OpenAICompatProvider and AzureOpenAIProvider, in the chat and
chat_stream paths (4 sites total).

Add `adapt_chat_kwargs_to_responses()` that translates the alias to
`max_output_tokens` and is used at all four merge sites. The helper:
- preserves the existing `None`-drop semantics of the previous
  dict-comprehension merge,
- only applies the alias when `max_output_tokens` is not explicitly
  set by the caller,
- does not mutate the input.

Closes #437.
2026-05-03 02:18:34 +00:00
zuolan
51f82993f5 fix(chat): forward extra_headers to all LLM calls in agentic pipeline
The chat capability silently dropped `extra_headers` from the active
LLM profile because three downstream call sites in `AgenticChatPipeline`
did not forward them:

- `_build_openai_client()` constructed `AsyncOpenAI` /
  `AsyncAzureOpenAI` without `default_headers`, so custom headers
  required by some gateways (e.g. a `User-Agent` override to bypass
  WAF allowlists that block `OpenAI/Python <ver>`) were lost on the
  native-tool-calling path.
- `_stream_messages` and `_run_react_fallback` invoked `llm_stream()`
  with `model`, `api_key`, `base_url`, `binding` but no
  `extra_headers`. The factory's `_resolve_call_config` treats this
  set of caller-provided fields as an explicit override and rebuilds
  `LLMConfig` with empty `extra_headers`, bypassing the catalog value
  loaded by `get_llm_config()`.

Pulls `extra_headers` from `llm_config` once in `__init__` and
forwards it from all three call sites.

Reproduce: configure an OpenAI-compatible gateway whose WAF rejects
the default `OpenAI/Python <ver>` User-Agent; set
`extra_headers: { "User-Agent": "Mozilla/5.0 ..." }` on the active
LLM profile in `model_catalog.json`. Before this change, chat returns
HTTP 403 "Your request was blocked." After, the override reaches the
gateway and chat succeeds.
2026-05-03 00:01:46 +08:00
Bingxi Zhao (Frank)
49661211ce prepare v1.3.5 release
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 20:16:07 +08:00
Bingxi Zhao (Frank)
144c90f3f7 prepare v1.3.4 release
Made-with: Cursor
2026-05-01 13:51:45 +08:00
Xinyu Du
66d0f62a7e fix: apply LLM_REASONING_EFFORT env var via resolver path as well
get_llm_config() prefers the resolver path over .env, so the env var
was silently ignored. Apply it as an override regardless of which path
produced the config.
2026-05-01 04:15:54 +08:00
Xinyu Du
ed9e8106ba fix: use robust JSON parser in book block generators
Replace fragile json.loads() with parse_json_response() in code,
flash_cards, timeline, and deep_dive generators. Handles LLM
responses with markdown fences, preamble text, and malformed JSON.
2026-05-01 04:05:19 +08:00
Xinyu Du
bb5cd2c0d2 feat: support LLM_REASONING_EFFORT env var for controlling thinking mode
- Read LLM_REASONING_EFFORT from environment in config.py
- Pass config.reasoning_effort to chat_with_retry/chat_stream_with_retry
  in both complete() and stream() (was previously dropped)
- Set to "low"/"medium"/"high" to enable thinking, leave empty to use
  automatic detection based on reasoning_model_patterns
2026-05-01 03:07:52 +08:00
Xinyu Du
96070fa51a fix: add reasoning_content fallback in streaming path and align precedence
- Swap reasoning_content/reasoning fallback order in _parse() to match
  the precedence used when extracting reasoning_content (per Copilot review)
- Add reasoning_content → content fallback in _parse_chunks() for both
  provider_core and tutorbot providers
- Fix streaming path in factory.py: when only reasoning chunks are
  emitted (no direct content), fall back to response.content so
  downstream consumers receive non-empty responses
- Harden idea_agent against non-dict JSON payloads
2026-05-01 03:00:50 +08:00
Xinyu Du
cf9d021b0f fix: fallback content to reasoning_content when DeepSeek returns empty content field
DeepSeek models (v4-flash, reasoner, etc.) return the actual response in the
reasoning_content field while leaving content empty when thinking mode is
enabled. The _parse() method only fell back to m.reasoning (DashScope-style),
causing "LLM returned empty response" errors.

Also fix idea_agent to handle LLM responses that are JSON arrays instead of
objects with an "ideas" key.
2026-05-01 02:28:17 +08:00
Bingxi Zhao (Frank)
824bf778df fix: lint & logging system 2026-05-01 01:39:08 +08:00
Bingxi Zhao (Frank)
255738d991 prepare v1.3.3 release
Document v1.3.3 and include the latest Space context, memory, RAG, provider, and session stability updates for release.

Made-with: Cursor
2026-04-30 23:41:58 +08:00
Bingxi Zhao
e720cb1bdb Merge pull request #424 from srinivasrk/srinikul/gemini-embeddings
feat(embedding): add Gemini embedding provider support across runtime
2026-04-30 22:42:34 +08:00
Bingxi Zhao
69078abd67 Merge pull request #421 from wedone/fix/tutorbot-non-string-content
fix: handle non-string message content in TutorBot chat
2026-04-30 22:41:44 +08:00
Bingxi Zhao
193b71b0a6 Merge pull request #420 from zbinxp/feat/nvidia-nim-provider
feat: add NVIDIA NIM provider with streaming support
2026-04-30 22:41:17 +08:00
Bingxi Zhao
20b1f3d266 Merge pull request #419 from voidborne-d/fix/418-promote-status-to-ready-when-index-ready
fix(knowledge): promote stale processing status to ready when index is ready (#418)
2026-04-30 22:40:54 +08:00
Srini
957b3b099f feat(embedding): add Gemini embedding provider support across runtime and setup tour
Register Gemini as a first-class embedding provider with endpoint/env defaults, expose it in start_tour embedding selection, and add regression coverage for runtime resolution and wizard options
2026-04-29 12:35:36 -07:00
WeDone
583e8aa939 fix: handle non-string message content in TutorBot chat
When TutorBot is connected to IM channels (e.g. Feishu, WeChat),
users can send images and other multimedia messages. These messages
are stored with content as an array of content-part objects rather
than a plain string. The frontend assumes content is always a string,
causing React Error #31 (Objects are not valid as a React child)
and rendering the chat page unusable.

Changes:
- Add normalizeMessageContent() utility to safely convert array/object
  content to displayable strings
- Fix BotChatPage history parsing to handle non-string content
- Fix UnifiedChatContext hydrateMessages for non-string content
- Fix last_message display with truncation and type safety in
  SessionList and HistorySessionPicker
- Normalize content to string and strip reasoning_content in backend
  get_bot_history and get_recent_active_bots
2026-04-30 01:32:20 +08:00
Bingxi Zhao (Frank)
a069b6ebf0 chore: prepare v1.3.2 release
Embedding endpoint URLs are now transparent end-to-end: Settings shows the
exact URL DeepTutor will POST to, legacy `/v1`-style bases are migrated to
full `/embeddings` / `/api/embed` URLs, the embedding client rejects
known-provider misconfigurations early, and OpenRouter routes through the
same exact-URL HTTP adapter as other providers.

LlamaIndex RAG now refreshes embedding state before initialize/search/add,
validates persisted vectors before retrieval, and reports invalid indexes
with `needs_reindex: true` instead of raw NumPy/`NoneType` errors.

Memory refresh strips `<think>` / `<thinking>` blocks from reasoning-model
output before writing PROFILE.md / SUMMARY.md, and existing memory files
self-repair on read.

Also fixes a Deep Solve runtime regression where `MainSolver` still passed
a stale `attachments` keyword to `SolverAgent.process()`.

Adds release notes (assets/releases/ver1-3-2.md) and updates README.

Made-with: Cursor
2026-04-29 20:44:05 +08:00
Albert
20357be696 feat: add NVIDIA NIM provider with streaming support
- Add nvidia_nim provider to the registry (is_gateway, detect_by_key_prefix=nvapi-,
  detect_by_base_keyword=api.nvidia.com, default_api_base=https://integrate.api.nvidia.com/v1)
- Add supports_stream_options field to ProviderSpec (defaults True, preserves existing
  provider behavior)
- Set supports_stream_options=False for nvidia_nim — NVIDIA NIM silently hangs when
  stream_options={"include_usage": True} is sent, so we omit it for this provider

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-29 17:30:03 +08:00
voidborne-d
d365926ca8 fix(knowledge): promote stale processing status when ready index exists (#418)
When the persisted ``status`` in ``kb_config.json`` is still a "live"
sentinel (``processing`` / ``initializing``) but a flat ``version-N``
directory on disk is already ready, ``get_info()`` previously returned
``status="processing"`` because the elif chain had no branch to recover
the case. The UI therefore showed a perpetual "Processing…" banner even
though the KB was fully usable.

This typically happens when the progress writer or worker process
crashes after the LlamaIndex version is finalised but before
``update_kb_status(name, "ready")`` rewrites kb_config.json — the
on-disk truth and the persisted status diverge.

Fix: in ``get_info``, after the existing ``effective_needs_reindex``
short-circuit, add a branch that promotes status to ``"ready"`` when:

  - status is currently ``processing`` or ``initializing``,
  - a ready ``version-N`` exists (``has_ready_llamaindex``),
  - and the persisted progress stage is not ``error``.

The ``error`` guard preserves visibility of genuine indexing failures
when an older ready version still exists. The promotion clears the
stale progress banner to match the existing semantic in
``update_kb_status`` (where ready KBs drop progress).

The persistent ``kb_config.json`` is left untouched on read; the next
legitimate ``update_kb_status`` call cleans it up.

7 new tests in ``tests/knowledge/test_manager_get_info_status.py``
cover the headline #418 reproduction, the completed-stage variant, the
``initializing`` variant, and the negative cases (error stage, no ready
version yet, ready-status pass-through, mismatched-signature ->
needs_reindex precedence).
2026-04-29 17:02:35 +08:00
Bingxi Zhao (Frank)
28e225ee0e chore: prepare v1.3.1 release
Stability release after v1.3.0 covering safer RAG/KB routing, stronger
embedding validation, more reliable Docker/TutorBot restarts, Web UX
fixes, and Windows/encoding hardening. See assets/releases/ver1-3-1.md
for the full notes.

Made-with: Cursor
2026-04-28 12:00:11 +08:00
Bingxi Zhao (Frank)
7fce54d98a chore: prepare v1.3.0 release
Made-with: Cursor
2026-04-27 21:09:25 +08:00
Bingxi Zhao (Frank)
162a3f9dc4 fix: missing pip 2026-04-26 21:52:53 +08:00
Bingxi Zhao (Frank)
e53985d7f0 Merge origin/main into multi-user 2026-04-26 11:45:57 +08:00
Bingxi Zhao (Frank)
6428458049 chore: prepare v1.2.5 release 2026-04-25 22:08:44 +08:00
Bingxi Zhao (Frank)
c89a3df8a5 chore: prepare v1.2.4 release 2026-04-25 15:10:55 +08:00
Bingxi Zhao (Frank)
4b7d24d33e release: v1.2.3 — document attachments, thinking blocks, provider core refactor
- Chat document attachments (PDF/DOCX/XLSX/PPTX) with text extraction
- Reasoning model <think> block display as collapsible cards
- Tri-state send_dimensions toggle for embeddings (#368)
- LLM provider_core module refactor + context_window detection
- Soul template editor (PR #373), Co-Writer save-to-notebook
- Knowledge Base drag-and-drop upload, delete resilience (#370),
  progress persistence, supported-file-types endpoint
- Question generation language fidelity via shared prompt directives
- Settings tour redesign, CLI notebook add-md/replace-md
- Bug fixes: CJK bot name slug, I18nProvider init, Skills default off,
  Moonshot base URL, version badge
- Provider registry: custom_anthropic, thinking_style, alias expansion
- +1900 test lines across 15 new/expanded test files

Made-with: Cursor
2026-04-24 22:36:32 +08:00
Bingxi Zhao (Frank)
2c39eb4fc9 feat(embedding): tri-state send_dimensions toggle (UI + env + catalog)
Generalises #368: adds an explicit per-model `send_dimensions` opt-in
exposed as a Settings UI toggle and an EMBEDDING_SEND_DIMENSIONS env var.

Tri-state semantics:
  true   -> always send (user knows their provider supports it)
  false  -> never send  (e.g. Qwen text-embedding-v4 via litellm gateway
                         which returns HTTP 400 when `dimensions` is sent)
  unset  -> fall back to the text-embedding-3* heuristic from #368

Backend:
- Adapter base accepts `send_dimensions`; OpenAI-compatible adapter
  decides via `_should_send_dimensions(model)` (replaces the hardcoded
  startswith check from #368).
- ResolvedEmbeddingConfig / EmbeddingConfig carry the flag through.
- EnvStore reads/writes EMBEDDING_SEND_DIMENSIONS, dropping the line
  entirely when empty so legacy `.env` files keep the Auto behaviour.
- ModelCatalogService syncs the flag from .env back into the catalog.

Frontend:
- Settings page shows a "Send dimensions" checkbox next to Dimension,
  with an instant CSS-only info tooltip (replaces native `title` to
  avoid the browser's ~1s delay). Disabling the toggle greys out the
  Dimension input.
- New models default to send_dimensions=true.
- en/zh i18n strings added.

Tests (46 new cases, including the unit tests #368 marked added but
did not actually ship):
- adapter `_should_send_dimensions` tri-state + parametrized non-3 family
- httpx-mocked payload assertions for all four combinations
- runtime resolver: catalog wins over env, garbage values -> None
- env_store helpers + render_from_catalog + write skip-empty round-trip
- EmbeddingClient propagates the flag to the adapter config dict

Made-with: Cursor
2026-04-23 20:16:08 +08:00
jefflv
bf4f1429a2 fix(embedding): gate dimensions for text-embedding-3 models (#368)
Co-authored-by: jefflrq <jeff.lrq@yungu.org>
2026-04-23 19:38:11 +08:00
Bingxi Zhao (Frank)
77f29cbcc7 fix lint 2026-04-23 19:29:16 +08:00
Bingxi Zhao (Frank)
2f6ac5aa80 release: v1.2.2 — Skills system, input perf, response_format auto-fallback, version badge
- User-authored Skills system (CRUD backend + REST API + chat composer integration)
- Chat input performance overhaul: ComposerInput / SimpleComposerInput state colocation
- response_format auto-fallback & runtime cache for incompatible providers
- LAN remote access fix (resolveBase hostname swap)
- Sidebar version badge with GitHub release comparison + GitHub icon link
- Deep Solve image attachment support via unified Attachment pipeline
- Agentic chat pipeline attachment passthrough in responding + acting stages
- TutorBot WebSocket auto-start, _safe_send, graceful disconnect
- Settings page API key masking with Eye/EyeOff toggle
- Book Library UI with search, status cards, and simplified BookSidebar
- Visualization fullscreen mode for SVG/Mermaid/ChartJS
- Embedding ConnectError retry, RAG None-embedding hardening
- KB delete robustness for orphaned config entries
- CLI parse_json_object whitespace normalization
- answer_now response_format guard
- New tests: TutorBot WS, CLI helpers, route-params, api-resolve-base
- Release notes (ver1-2-2.md) and README update

Made-with: Cursor
2026-04-22 20:45:51 +08:00
Srinivas R Kulkarni
6735adf32c fix : Tutorbot websocket resilience and CLI config parsing edge case (#354)
Handle blank --config-json safely, auto-start bots on websocket connect, guard botId route param usage in UI,
and add regression tests for CLI/router/web param normalization.`
2026-04-22 17:05:51 +08:00
S-A-D-4
568085c8ad fix: add ConnectError to embedding retry exceptions (#353)
The embedding adapter's retry mechanism was missing httpx.ConnectError,
causing immediate failure instead of retry when network connectivity
issues occur (e.g., TLS handshake failures, proxy connection issues).

This fix ensures that transient connection errors are retried with
exponential backoff, improving reliability during knowledge base
initialization.
2026-04-22 17:05:30 +08:00
Bingxi Zhao (Frank)
cb7deebc78 fix: readme, kb-management, book management 2026-04-21 01:20:53 +08:00
Roman Barlos
0f6c81b732 feat(chat): regenerate last response (CLI, WebSocket, Web UI) (#349)
Rebased onto dev (post-#348) and resolved two UI conflicts (`web/app/(workspace)/chat/[[...sessionId]]/page.tsx` drops the now-dead `replaySnapshot` helper; `web/components/chat/home/ChatMessages.tsx` switches the last-assistant action button from the old `RotateCcw`/Retry to `RefreshCcw`/Regenerate). Smoke tests green (199 passed) and all required checks pass.

Merging: adds a `regenerate` capability wired through CLI (`/regenerate` · `/retry`), WebSocket (`type: "regenerate"`), and Web UI (per-message Regenerate button). Backend rolls back the trailing assistant via `SQLiteSessionStore.delete_message`, reuses `start_turn` through `_persist_user_message=False` / `_regenerate=True`, skips `memory_service.refresh_from_turn` on regeneration, and surfaces non-fatal `regenerate_busy` / `nothing_to_regenerate` errors. Also includes empty-response diagnostics in `_stage_responding`. 18 new tests.
2026-04-21 00:14:58 +08:00
Roman Barlos
444b12a6d9 feat(chat): make per-stage token limits and temperature configurable via agents.yaml (#348)
Rebased onto latest dev (post-#352) to pull in the lazy loguru import in `deeptutor/tutorbot/channels/manager.py`, which was the root cause of the smoke-test failures (unrelated to this PR's own diff).

Merging: adds per-stage `max_tokens` and `temperature` knobs under `capabilities.chat` in `agents.yaml`, bumps the `responding`/`answer_now` defaults from 1800 → 8000 to fix mid-sentence truncation on long answers, and keeps safe fallbacks in `_ChatLimits.from_config` for legacy configs. 10 new unit tests covering loader resolution and dataclass coercion.
2026-04-21 00:13:07 +08:00
Octopus
b9c5f5de81 fix: disable json_object response_format for gemma models (#345)
Fixes #344

Gemma models served through LM Studio (and similar local inference
servers) reject response_format={\"type\": \"json_object\"}, returning a
400 error: \"'response_format.type' must be 'json_schema' or 'text'\".

Add supports_response_format: False to the existing 'gemma' MODEL_OVERRIDES
entry so these models are excluded from the json_object path. The
existing extract_json_object utilities in the visualize and math-animator
agents already parse JSON from plain text responses, so all callers
continue to work without further changes.

Co-authored-by: octo-patch <octo-patch@users.noreply.github.com>
2026-04-20 23:50:25 +08:00
Kagura
509d3ec22e fix(rag): guard against None embeddings in LlamaIndex pipeline (#347)
Fixes #346

When an embedding provider returns null for a chunk's embedding vector,
the None value gets stored in the vector index and causes a TypeError
in LlamaIndex's similarity computation (np.dot with NoneType).

Two-layer fix:
1. _extract_embeddings_from_response: use 'or []' instead of
   get(key, default) so explicit None values are caught.
2. CustomEmbedding._get_text_embeddings: validate the batch result
   and replace any None vectors with zero vectors.

Co-authored-by: kagura-agent <kagura-agent@users.noreply.github.com>
2026-04-20 23:50:13 +08:00
Bingxi Zhao (Frank)
b7307e999f fix test 2026-04-20 20:12:33 +08:00
Bingxi Zhao (Frank)
593ddba3fb feat(co-writer): add multi-doc co-writer workspace with backend storage
- Add co-writer storage module and API router for document persistence
- Restructure co-writer page to per-doc routing ([docId]) with sidebar recent list
- Wire CoWriterRecent into sidebar shell and AppShellContext
- Tidy notebook prompts, facade, path service, and builtin tools wiring
- Refresh tests (add missing __init__.py, drop obsolete app_facade test)
- Add favicon/apple-touch-icon assets and minor i18n cleanup

Made-with: Cursor
2026-04-20 19:46:41 +08:00
Bingxi Zhao (Frank)
72a9dc9f3a Merge branch 'guide2.0' into dev: book capability + restructure
Resolved conflicts in:
- deeptutor/agents/notebook/summarize_agent.py
  Kept the YAML-driven record_hints lookup from dev (covers chat,
  co_writer, guided_learning, default), instead of the inline
  dict from guide2.0 which only had chat + co_writer.
- deeptutor/capabilities/visualize.py
  Kept dev's load_answer_now_prompts(...) path so the answer-now
  fast path stays prompt-externalised under
  deeptutor/agents/visualize/prompts/{en,zh}/answer_now.yaml.
- deeptutor/services/prompt/manager.py
  Merged the MODULES list: dropped 'guide' (deleted by guide2.0),
  added 'book' from guide2.0, and kept dev's 'notebook',
  'visualize', 'chat' modules.

Made-with: Cursor
2026-04-20 17:36:43 +08:00
Bingxi Zhao (Frank)
5f29b508e0 refactor(prompts): externalize answer_now/notebook prompts to YAML and tidy capability/UI configs
- Move inline LLM prompts out of capabilities/agents into versioned
  prompt YAMLs under each agent's prompts/{en,zh}/:
  - notebook: analysis_agent, summarize_agent
  - question/research/solve/visualize: answer_now
- Slim down capability modules (_answer_now, deep_question,
  deep_research, deep_solve, visualize) to load prompts via the
  prompt manager instead of hard-coding strings
- Update services/prompt/manager.py to support the new prompt paths
- Refresh web config panels (quiz, research, visualize, math-animator)
  and shared types to align with the new capability options
- Update Mermaid, ChatMessages, TracePanels and settings page,
  plus en/zh locales for the new copy

Made-with: Cursor
2026-04-20 17:34:33 +08:00
Bingxi Zhao (Frank)
2745e8bde9 feat(book): introduce book capability and restructure guide/co_writer modules
- Add new `deeptutor/book/` module with multi-agent pipeline
  (ideation, spine, page planner, source explorer, synthesizer)
  and rich block system (text, code, figure, quiz, flash cards,
  callout, deep dive, timeline, animation, concept graph, etc.)
- Add `/api/routers/book.py` and `deeptutor_cli/book.py` entry points
- Add web UI under `web/app/(workspace)/book/` with sidebar,
  chat panel, page reader, spine editor, progress timeline, and
  block renderers
- Move `deeptutor/agents/co_writer` -> `deeptutor/co_writer` and
  `deeptutor/agents/guide` -> `deeptutor/guide` (then remove guide
  entirely now superseded by book)
- Remove legacy guide UI, hooks, types, and API router
- Update visualize agents/prompts, notebook service, prompt manager,
  session turn runtime, and shared services to support new flows
- Refresh chat composer, sidebar, notebook selector, and locales

Made-with: Cursor
2026-04-20 00:33:33 +08:00
Bingxi Zhao (Frank)
6e00642c2d fix(channels): lazy-import loguru in BaseChannel to unblock CI smoke tests
Release notes condensed for readability.

Made-with: Cursor
2026-04-18 11:41:41 +08:00