Commit Graph

14 Commits

Author SHA1 Message Date
evan188199-tech
0f232b2c36 test: keep token-encoding and summarize-path tests hermetic on CI
CI run 42532087495 failed on Python 3.11-3.14 for test-hermeticity
reasons, not contract violations:

- test_fifo/cold-cache: in a full-suite run, another test's
  tiktoken.get_encoding leaves a resident cl100k_base in tiktoken's
  in-process registry, and the acquisition correctly adopts it without
  touching the filesystem -- so the FIFO/cold paths under test were
  silently bypassed. Empty the registry via the existing
  registry_free_tiktoken fixture so these tests always exercise the
  paths their names claim.
- test_concurrent_warm_calls_yield_one_encoding: its fixed 0.5s
  observation window conflated publish latency with sharing; on slower
  runners nothing was observed in the window (CI: len(every_seen)==0).
  Each caller now churns until it personally observes the encoding
  (bounded deadline), and the assertions strengthen to require every
  caller to see the same single instance.
- summarize-path tests: count boundaries were tuned for exact counts,
  but #2522 keeps cold caches on the chars/4 heuristic, flipping the
  rebuild/fold-in decision. Pin count_tokens on a deterministic exact
  word counter (same idiom as the PR's own count_tokens tests) so the
  budget-path logic stays deterministic on every machine; all original
  assertions are unchanged.

No production changes: registry adoption, offline acquisition and
non-blocking callers are working as designed.
2026-11-09 08:58:03 +08:00
Adithya
4dd10949b7 fix: add chat context summary prompt resources 2026-11-02 22:06:17 +05:30
ZQR1101
436028e0ab fix(session): name the reply language in the compaction instruction
The rolling summary is replayed as a system row on every later turn, so the
language it happens to be written in keeps steering the answer long after the
turns it condensed have scrolled out. The summarizer meta-prompt never stated
a language, so a session held in a language other than the prompt's own came
back to en/zh at the first compaction — #1511's "drifts after a few rounds".

Both the English and Chinese meta-prompt now say which language the summary
body itself must use, via the same language_label() the reply directive uses.
2026-09-21 22:47:56 +08:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
XZH
a32a9a98a1 fix(llm): persist DeepSeek reasoning across turns 2026-08-28 03:09:00 -07: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
4c9df02a97 feat: add context-aware ask questions mode 2026-08-26 02:07:39 +08:00
Kevin Xia
5c6b1d5c8d fix: bound conversation compaction budgets 2026-08-26 01:30:42 +08:00
Bingxi Zhao (Frank)
46093e5e2b update msg 2026-06-11 20:03:34 +08:00
WeDone
6c2751c86c fix(tests): update context_window assertion after MAX_EFFECTIVE_CONTEXT_WINDOW ceiling raise
The test hardcoded 65536 as the expected effective context window,
but after raising MAX_EFFECTIVE_CONTEXT_WINDOW to 1_000_000 the
explicit context_window=128000 is no longer truncated. Update the
assertion to match the new correct behavior.
2026-05-05 11:42:33 +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)
77f29cbcc7 fix lint 2026-04-23 19:29:16 +08:00
Bingxi Zhao (Frank)
9544075d60 v1.1.0-beta
URL-based chat routing, Snow theme, WebSocket heartbeat & auto-reconnect,
ChatComposer perf optimization, embedding provider registry overhaul,
Serper search provider, streaming idle timeout, and expanded test suite.

Made-with: Cursor
2026-04-14 22:11:48 +08:00