evan188199-tech
f9721b61c4
perf(session): lazily load turn event traces ( #1191 )
...
* perf(session): lazily load turn event traces
* fix(session): bound trace previews at the storage layer
---------
Co-authored-by: XZH <cto@xzh.ai >
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com >
2026-09-03 15:46:04 +08:00
Bingxi Zhao (Frank)
6e6e56aedb
release: v1.6.3
...
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.
Release notes: assets/releases/ver1-6-3.md
2026-09-02 04:09:11 +08:00
Bingxi Zhao (Frank)
02ba56793e
chore: checkpoint backend stabilization workspace
2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
d57d2983ef
feat(mastery): complete v2 learning workflows
2026-08-28 14:58:43 +08:00
Bingxi Zhao (Frank)
308a0606f9
perf(chat): eliminate the post-stream "generating" stall
...
The spinner (and a frozen tab) outlived the LLM stream by seconds and
grew with conversation length:
- DONE now carries the persisted user/assistant message ids so the
frontend reconciles its optimistic ids in place (lib/turn-reconcile)
instead of refetching, re-normalizing, and re-rendering the whole
session after every turn.
- The turn-event workspace mirror writes the whole batch in one append
off the event loop instead of one synchronous open/write per event.
- PocketBase gains a batch append_turn_events that uploads in the
background; the events.jsonl rglob flush in update_turn_status is
gone, and add_message returns the real record id.
- The streaming autoscroll pin is mutation/load-driven instead of an
unconditional 60fps scrollHeight read (forced layout) per frame.
2026-07-24 17:35:19 +08:00
Bingxi Zhao (Frank)
90a2c14c81
chore: backend + frontend follow-ons for v1.4.0-beta
...
Wires the new memory / capability / settings / quiz subsystems into
existing surfaces and finishes the chat-pipeline follow-on work.
Backend:
- Session services pick up the cumulative source inventory + new tool
tags (turn_runtime, sqlite_store, pocketbase_store, protocol,
base_session_manager).
- LlamaIndex RAG pipeline config / document_loader / retrievers
tightened; rag/service.py routed to match.
- Sessions / unified_ws / settings / notebook routers updated for
delete-chat-turn, multi-user, and the new tool surface.
- TutorBot manager + Zulip channel + openai_compat_provider follow-on
fixes layered on top of the v1.3.10 SSL/Zulip sweeps.
- runtime/{banner, launcher, orchestrator}, services/setup/init,
prompt/manager, json_parser refined for the runtime-settings
rewrite.
Frontend:
- Co-Learn pages and session-surfaces removed (folded into chat).
- Chat composer / messages / trace / session panels, sidebars,
common modals, markdown renderers, and i18n updated for the new
ask_user / write_note / source-inventory flow.
- Admin, agents, co-writer, playground, book pages picked up the
shared updates.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-21 18:08:22 +08:00
Bingxi Zhao (Frank)
1596807242
refactor chat capability & RAG pipeline(llamaindex)
2026-05-13 21:36:07 +08:00
Bingxi Zhao (Frank)
3d5c3a1eb5
improve chat
2026-05-12 02:20:30 +08:00
Bingxi Zhao (Frank)
72bcdd77d8
prepare v1.3.9 release
2026-05-09 02:53:14 +08:00
xor_xe
6ca2ecd64f
feat: add optional PocketBase integration for auth and session storage
...
Introduces PocketBase as an optional sidecar for authentication and
session/KB storage, activated only when POCKETBASE_URL is set in .env.
Falls back to the existing SQLite/JSON backend when not configured.
Backend:
- SessionStoreProtocol (typing.Protocol) + get_session_store() factory
- PocketBaseSessionStore: JSONL write-ahead buffer, batch-flush on turn end
- pocketbase_client.py: singleton admin client, 60s in-memory token cache
- auth.py: additive PocketBase path (email-based login/register)
- CORS: explicit origins instead of wildcard (wildcard+credentials fails)
- WebSocket: validate token at connect time when AUTH_ENABLED
Infrastructure:
- docker-compose: pocketbase service with healthcheck + depends_on
- scripts/pb_setup.py: idempotent PocketBase collection bootstrap
- requirements/server.txt: pocketbase>=0.12.0
Frontend:
- Register/login: username field -> email field for PocketBase mode
- auth.ts: normalise FastAPI 422 errors to plain strings
- agents page: guard bots.map() against non-array responses
- settings page: graceful fetch error handling
- *.env.local added to .gitignore
Docs: README PocketBase sidecar setup section added
2026-04-17 21:42:29 +04:00